0.2.4 • Published 2 years ago

vue-infinite-date-picker v0.2.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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'
          }
        }
     }
     ...

Image text

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

See Configuration Reference.

0.2.4

2 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago