iter(g145): 滑块支持刻度标注

This commit is contained in:
HIsheR
2026-10-26 15:41:22 +08:00
parent 99214ff867
commit af09500238
8 changed files with 64 additions and 8 deletions
+1
View File
@@ -422,6 +422,7 @@ const content = h(
{ class: 'row' },
slider({ value: volume, min: 0, max: 100, step: 5, onChange: (v) => toast.info(`音量 ${v}`) }),
slider({ value: volume, disabled: locked }),
slider({ value: volume, marks: [{ value: 0, label: '静音' }, { value: 50, label: '中' }, { value: 100, label: '最大' }], onChange: (v) => toast.info(`音量 ${v}`) }),
),
),
section(