nuke-biz-time-picker
v1.0.1
Published
time-picker
Downloads
7
Readme
NukeBizTimePicker
何时使用
输入时间。
仅千牛端内可用
API
TimePicker.show(options,onNotify,onCancel)
- options 参数
| 参数 | 说明 | 类型 | 默认值 |
| :------ | :---------------------------- | :------------------------- | :----- |
| title | 标题 | string | |
| type | 枚举 date
,time
,datetime
| string | date
|
| default | 默认值 | 日期字符串,如'2016/10/21' | 无 |
- onNotify:TimePicker 确认触发的事件
- onCancel:TimePicker 取消触发的事件
tnpm install nuke-biz-time-picker --save
TimePicker.show(
{
title: 'select',
default: '11:11:00',
range: ['08:00:00','14:00:00'],
type: 'time',
locale: {
confirm: 'OK',
cancel: 'Cancel'
}
},
e => {
console.log('select date ', e);
},
e => {
console.log('canceled', e);
}
);