iter(g145): 滑块支持刻度标注
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user