Skip to content

TimePicker 时间选择器

组件来源:Hamlet-Web
https://cloud.tineco.com/hamlet/web/component/time-picker/

示例

API

属性名说明类型可选值默认值
disabled是否禁用booleanfalse
editable文本框可输入booleantrue
clearable是否显示清除按钮booleanfalse
isRange是否为时间范围选择booleanfalse
placeholder非范围选择时的占位内容string
startPlaceholder范围选择时开始日期的占位内容string
endPlaceholder范围选择时结束日期的占位内容string
format显示在输入框中的格式string
size输入框尺寸stringlarge/default/smalldefault
arrowControl是否使用箭头进行时间选择booleanfalse
popperClassTimePicker 下拉框的类名string
rangeSeparator选择范围时的分隔符string'-'
disabledHours禁止选择部分小时选项(role: string, comparingDate?: Dayjs) => number[]
disabledMinutes禁止选择部分分钟选项(hour: number, role: string, comparingDate?: Dayjs) => number[]
disabledSeconds禁止选择部分秒选项(hour: number, minute: number, role: string, comparingDate?: Dayjs) => number[]