vue-infinite-date-picker
vue-infinite-date-picker
Project setup
yarn add vue-infinite-date-picker
Usage and configuration
<div class="hello">
<InfiniteDatePicker v-model="currentDate" :options="dateOptions" @change="dateChange"/>
</div>
import {InfiniteDatePicker} from 'vue-infinite-date-picker'
export default {
components: {
InfiniteDatePicker
},
data () {
return {
currentDate: '2021-08-20 11:26',
dateOptions: {
step: 5,
itemHeight: 40,
formatter: ['YYYY', 'MM', 'DD', 'HH', 'mm'],
type: 'datetime'
}
}
}
...
dateOptions
{
step: 5, //时间跨度,仅支持分钟列
itemHeight: 40, //默认时间行高
formatter: ['YYYY', 'MM', 'DD', 'HH', 'mm'], //各列时间format,遵循moment.js
type: 'datetime', //可选参数 year-month-day year-month moth-day day-hour-minute ...
}
Lints and fixes files
yarn lint
Customize configuration
Related Packages
vue-date-range
A vue component for choosing dates and date ranges. Uses Moment.js for date oper...
5,383
36
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.4 | ^2.6.11 | ||
| 0.2.3 | ^2.6.11 | ||
| 0.2.2 | ^2.6.11 | ||
| 0.2.1 | ^2.6.11 | ||
| 0.2.0 | ^2.6.11 | ||
| 0.1.9 | ^2.6.11 | ||
| 0.1.8 | ^2.6.11 | ||
| 0.1.7 | ^2.6.11 | ||
| 0.1.6 | ^2.6.11 | ||
| 0.1.4 | ^2.6.11 | ||
| 0.1.3 | ^2.6.11 | ||
| 0.1.2 | ^2.6.11 | ||
| 0.1.1 | ^2.6.11 | ||
| 0.1.0 | ^2.6.11 |