1.0.11 • Published 5 years ago

vue2-datepicker-infinite v1.0.11

Weekly downloads
12
License
ISC
Repository
github
Last release
5 years ago

vue-datepicker-infinite

easy datepicker of a vue 2.0 component

install

npm install vue2-datepicker-infinite --save

how to use

template:
	<transition  name="slide" >
		<DatePicker @select="calendar.select" :start="calendar.start"  :last="calendar.last" :beginDate="calendar.begin" :endDate="calendar.end" :monthLength="calendar.monthLength"  v-show="calendar.show" ></DatePicker>
	</transition>

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
1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago