A very simple but useful hotel date picker for Vue.js
npm install another-vue-hotel-date-picker --save
import AnotherVueHotelDatePicker from 'another-vue-hotel-date-picker';
export default {
components: {
AnotherVueHotelDatePicker,
},
}
<AnotherVueHotelDatePicker
:trigger="`J-hotel-picker-trigger`"
:start="`2018-01-02`"
:end="`2018-12-31`"
format="YYYY-MM-DD"
@success="onSuccess"/>
- Type:
String
- Required:
true
, - Default:
undefined
The Element's id for getElementById
which will trigger the picker
- Type:
Date
orString
ordayjs Object
- Required:
true
, - Default:
undefined
The start view date.
- Type:
Date
orString
ordayjs Object
- Required:
true
, - Default:
undefined
The start end date.
- Type:
String
- Required:
false
, - Default:
undefined
The date format string.
- Type:
Function
- Required:
false
, - Default:
undefined
The callback function when user selected both the check in and check out date
1.1.0 2018-07-27
-
[Bug]
: Component style depends on reset.css or normalize.css. -
[Bug]
: The control buttons can trigger Calendar hide event. -
[Bug]
: Click the selectedcheck in
date second time will select thecheck out
date as the same date.