iter(g216): 时间选择支持清空

This commit is contained in:
HIsheR
2026-10-26 19:57:20 +08:00
parent 050534a07f
commit 17da5618f5
6 changed files with 67 additions and 4 deletions
+1 -1
View File
@@ -1066,7 +1066,7 @@ const content = h(
h(
'div',
{ class: 'row' },
timePicker({ value: atTime, minuteStep: 15, onChange: (t) => toast.success(`定在 ${t}`) }),
timePicker({ value: atTime, minuteStep: 15, clearable: true, onChange: (t) => toast.success(t ? `定在 ${t}` : '已清空时间') }),
timePicker({ placeholder: '禁用态', disabled: true }),
h('span', { class: 'out' }, () => `当前时间:${atTime() || '未选'}`),
),