le-date-picker

1.0.1 • Public • Published

le-date-picker

A Vue.js project

Build Setup

# install dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

使用说明

未写成自动注册 需在自己写的vue组件中引入

import leDatePicker from 'le-date-picker'

...
  componens: {
    leDatePicker
  },..
...
食用方法:
 <le-date-picker ref="leDatePicker"
  format="YYYY-MM-DD HH:mm:ss" :divi="{mm: 15}"
  :show="leDatePickerShow"
  initTime="1994/10/01"
  startTime="1984/10/01"
  endTime="1999/10/01"
  startYear="1992"
  endYear="2020"
  @change="changeHandler"
  @confirm="confirmHandler"
  @cancel="cancelHandler"></le-date-picker>

  @params divi
  刻度差 以对象方式传入 {YYYY:2, mm:15}
  即得到 [2018, 2020, 2022 ...] [0, 15, 30...] 等slot数组
  @params format
  picker的显示格式化
  eg: YYYY-MM-DD YYYY MM DD YYYY年MM月DD日
  @params initTime startTime endTime
  可取值[Number, String, Object, Date]

/le-date-picker/

    Package Sidebar

    Install

    npm i le-date-picker

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    203 kB

    Total Files

    12

    Last publish

    Collaborators

    • fadein