For AI agents: the complete documentation index is available at /apps-plugin/docs/llms.txt, the full documentation bundle is available at /apps-plugin/docs/llms-full.txt, and this page is available as Markdown at /apps-plugin/docs/components/form/slider.md.

slider

滑块组件,支持在指定范围内选择连续或离散数值。

扫码预览

扫码预览 slider

Props

属性名类型默认值必填说明
classNamestring-否组件类名。
disabledbooleanfalse否是否禁用
keystring | number | null-否React key 属性
maxnumber100否最大值
minnumber0否最小值
onChange(value: number) => void-否数值变化的回调
showValuebooleantrue否是否展示数值
styleCSSProperties-否组件样式。
valuenumber-是当前数值(必填,只支持受控用法)