Supports Vue 2.x
Test Version is 0.1.x
##Usage
props:{
minDate: {
type: Date
},
maxDate: {
type: Date
},
checkedDate: {
type: Date,
},
}
<template>
<div>
<deali-month
:minDate="minDate"
:maxDate="nowDate"
:checkedDate="checkedDate"
@clickDate="getDate">
</deali-month>
</div>
</template>
<script>
import dealiMonth from 'deali-month-picker';
export default {
components:{
dealiMonth
},
data(){
return{
minDate: new Date('2019-1'),
nowDate : new Date(),
checkedDate: new Date(),
}
},
methods:{
getDate(payload){
console.log(payload);
}
}
}
</script>