Skip to content

TimePicker 时间选择器 ​

AuTimePicker 用于选择本地时、分、秒。

基础用法 ​

当前时间:09:30:00;短格式:14:45

Attributes ​

属性说明类型默认值
modelValue当前时间string / Date / number''
valueType输出类型auto / string / date / timestampauto
valueFormat字符串模型格式string随 showSeconds
displayFormat显示与手动输入格式string随 showSeconds
showSeconds是否显示秒booleantrue
hourStep / minuteStep / secondStep各时间单位步长number1
minTime / maxTime时间边界string / Date / numbernull
disabledTime禁用函数(date) => booleannull
size尺寸small / default / largedefault
placeholder占位文字string选择时间
disabled / readonly禁用 / 只读booleanfalse
editable / clearable可输入 / 可清空;有值时清除按钮原位替换时间图标booleantrue
invalid外部错误状态booleanfalse
placement浮层方位stringbottom-start
teleported / appendTo / zIndex浮层挂载与层级boolean / string | Element / numbertrue / body / 1200

Events ​

事件名说明参数
update:modelValue确认后的值更新(value)
change有效时间提交(value, date, event)
clear清空(event)
focus / blur输入框焦点变化(event)
visible-change浮层显隐变化(visible)
invalid-input输入无法解析或不可用(text, event)

Aurora Plus · Vue 3 Component Library