An open API service indexing awesome lists of open source software.

https://github.com/leepyng/vue-datepicker-infinite

easy datepicker of a vue 2.0 component
https://github.com/leepyng/vue-datepicker-infinite

Last synced: 8 months ago
JSON representation

easy datepicker of a vue 2.0 component

Awesome Lists containing this project

README

          

# vue-datepicker-infinite
easy datepicker of a vue 2.0 component

Coverage Status

# install

npm install vue2-datepicker-infinite --save

# how to use
template:




script:
//import
import DatePicker from './../common/datePicker/datePicker.vue'
//define
components:{
DatePicker
},
//set default data
data(){
return{
calendar:{
monthLength:6,
show:false,
start:'2019-08-01',
last:'2019-08-03',
begin:'2019-08-01',
end:'2019-12-01',
select:(begin,end)=>{
this.calendar.show=false;
this.calendar.begin=begin;
this.calendar.end=end;
}
},
}
}


# props description
monthLength:max month lenght
beginText:begin text name
endText:end text name
isReverseAllow:allow to reverse date when select,
start:the calendar's begining date
last:the calendar's last date
beginDate: begin of the select
endDate:end of the select