le-date-picker
A Vue.js project
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm 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]