kang
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
components/slider/index.zh-CN.md
|
|
@ -34,6 +34,7 @@ demo: |
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 | 版本 | |
|
|
|
| --- | --- | --- | --- | --- | |
|
|
|
| autoFocus | 自动获取焦点 | boolean | false | | |
|
|
|
| allowClear | 支持清除, 单选模式有效 | boolean | false | | |
|
|
|
| defaultValue | 设置初始取值。当 `range` 为 false 时,使用 number,否则用 \[number, number] | number \| \[number, number] | 0 \| \[0, 0] | | |
|
|
|
| disabled | 值为 true 时,滑块为禁用状态 | boolean | false | | |
|
|
@ -51,6 +52,9 @@ demo: |
|
|
|
| vertical | 值为 true 时,Slider 为垂直方向 | boolean | false | | |
|
|
|
| onAfterChange | 与 `onmouseup` 触发时机一致,把当前值作为参数传入 | (value) => void | - | | |
|
|
|
| onChange | 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入 | (value) => void | - | | |
|
|
|
| trackStyle | Slider 滑动条轨道样式 (选中范围内) | CSSProperties | - | | |
|
|
|
| railStyle | Slider 滑动条轨道样式 (背景) | CSSProperties | - | | |
|
|
|
| handleStyle | Slider 滑动滑块样式 | CSSProperties | - | | |
|
|
|
|
|
|
|
### range |
|
|
|
|
|
|
|