Skip to content

时间


image

介绍

基本表单组件,用于用户选择时间。

API

Props

参数名描述类型默认值
status状态'default' |'disabled'| 'hide'| 'readonly''default'
title标题string'时间选择'
showLabel显示标题booleantrue
name数据字段string${组件编码}_${长度为8的随机字符串}
value默认值string-
placeholder占位提示string请选择
width字段占比'25%'|'50%'|'75%'|'100%''100%'
labelWidth标签宽度string-
format格式'HH:mm:ss'|'HH:mm'|'HH''HH:mm:ss'
use12Hours12小时制booleanfalse
allowClear清除按钮booleantrue
hourStep小时选择间隔number1
minuteStep分钟选择间隔number1
secondStep秒数选择间隔number1
disabledHours禁用的小时选项string[][]
disabledMinutes禁用的分钟选项string[][]
disabledSeconds禁用的秒数选项string[][]
hideDisabledOptions隐藏禁止选择的选项booleanfalse
disabledConfirm禁用确认步骤 ,开启后直接点选时间不需要点击确认按钮booleanfalse
baseStyle自定义样式string-
customClass类名绑定string-
boxStyle盒模型 , margin,border,padding设置BoxStyle-
uniqueKey唯一标识 , 组件的唯一标识string-
position弹出框弹出位置'top'|'tl'|'tr'|'bottom'|'bl'|'br''bl'
extra补充说明string-
tip气泡提醒string-
validate校验Validate-
loop循环, 循环渲染设置Loop-

Events

事件名描述参数
onChange值发生改变时ctx
params: {value: string}
loop:LoopParams
onClear点击清除按钮时ctx
loop:LoopParams