vue-mobcal
Example
Install
npm install vue-mobcal --save
# or
yarn add vue-mobcal
Global Registration
import Vue from 'vue'
import VueMobCal from 'vue-mobcal'
import 'vue-mobcal/dist/vue-mobcal.css'
Vue . use ( VueMobCal )
Local Registration
import { VueMobCal } from 'vue-mobcal'
import 'vue-mobcal/dist/vue-mobcal.css'
export default {
components : {
VueMobCal
}
}
CDN
">
< link rel ="stylesheet " href ="https://unpkg.com/vue-mobcal/dist/vue-mobcal.css "/>
< script type ="text/javascript " src ="path/to/vue.min.js "> script >
< script type ="text/javascript " src ="https://unpkg.com/vue-mobcal/dist/vue-mobcal.umd.min.js "> script >
< div id ="app ">
< vue-mob-cal v-model ="currentDate " :mode.sync ="mode ">
vue-mob-cal >
div >
< script type ="text/javascript ">
new Vue ( {
el : '#app' ,
data : {
mode : 'month' ,
currentDate : new Date ( )
}
} )
script >