iter(g222): 时间选择支持高度档位
This commit is contained in:
@@ -80,7 +80,7 @@ export function timePicker(props: TimePickerProps): HTMLElement {
|
||||
'button',
|
||||
{
|
||||
type: 'button',
|
||||
class: 'ua-timepicker-trigger',
|
||||
class: `ua-timepicker-trigger${props.size && props.size !== 'md' ? ` is-${props.size}` : ''}`,
|
||||
'aria-haspopup': 'dialog',
|
||||
'aria-expanded': () => String(open()),
|
||||
disabled: props.disabled, // 布尔或信号禁用,h() 直接透传
|
||||
|
||||
@@ -671,6 +671,7 @@ export interface TimePickerProps {
|
||||
minuteStep?: number; // 分钟步长;缺省 5,超过 30 按 30 处理
|
||||
placeholder?: string; // 未选时占位文案;缺省「请选择时间」
|
||||
clearable?: boolean; // 显示清空按钮 ×(有值时才出现);缺省 false,键盘 Delete / Backspace 等价
|
||||
size?: 'sm' | 'md' | 'lg'; // 触发器高度档位,与 textField / select 同口径;缺省 md
|
||||
disabled?: boolean | Signal<boolean>; // 禁用触发器
|
||||
onChange?: (time: string) => void; // 写回回调(选时也会触发,分默认落到首个步长值)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user