naive-ui/demo/documentation/components/timePicker/zhCN/index.md
2020-03-14 18:12:47 +08:00

745 B

时间选择器 Time Picker

就像一块数码表。

演示

basic
size
disabledTime
format

V-model

prop event
value change

Props

名称 类型 默认值 说明
theme 'light' | 'dark' null
placeholder string '请选择时间'
value number null
format string 'HH:mm:ss'
is-hour-disabled (hour: number) => boolean () => false
is-minute-disabled (minute: number, hour: number) => boolean () => false
is-second-disabled (second: number, minute: number, hour: number) => boolean () => false
size 'small' | 'medium' | 'large' 'medium'

Events

名称 参数 说明
change (value: number | null)
blur (value: number | null)