Datepicker component for Vue.js, Same as input(type=date) or input(type=datetime)
The datePicker can be automatically append to body element, So it have no staking level problem and you just write like this :
<input type="date" is="date" />
<input type="date" is="date" />
OR
<input type="datetime" is="datetime" />
npm install vuejs-date-picker
- date : It have no input box of time, It accept String type
- datetime : It have input box of time, It accept String type
If it is empty, Vuejs-date-picker will set a default date for it
The default mode is not in utc, Set true make date in UTC mode
If type prop is date, It will Apply this format, The default format is 'YYYY-MM-DD'
If type prop is datetime, It will Apply this format, The default format is 'YYYY-MM-DD HH:mm'
It requires a reference to be positioned as the origin, It accepts HTMLElement and String types
Same as native name property
Same as native required property
When this value is true, It will get the focus, otherwise, It will lose focus, It accept Boolean type
When this value is true, It will lose the focus, otherwise, It will get focus, It accept Boolean type
No event data
It will be triggered when the datePicker will open
No event data
It will be triggered after the datePicker opens
event data :
- date : The date of the current choose
It will be triggered after the input value is changed
event data :
- date : The date of the current choose
- isChanged : Means whether the date has been changed
It will be triggered when the datePicker will close
event data :
- date : The date of the current choose
- isChanged : Means whether the date has been changed
It will be triggered after the datePicker is closed
No event data
It will be triggered when the datePicker is flipped
event data :
- date : The date of the current choose
- isChanged : Means whether the date has been changed
It will be triggered when the datePicker will be destroyed
event data :
- date : The date of the current choose
- isChanged : Means whether the date has been changed
It will be triggered after the datePicker is destroyed
event data :
- date : The date of the current choose
- isChanged : Means whether the date has been changed
It will be triggered when the input will be destroyed
No event data
It will be triggered after the input is destroyed