ant-design/components/slider/demo/mark.md

17 lines
668 B
Markdown
Raw Normal View History

## zh-CN
2015-11-19 14:21:58 +08:00
使用 `marks` 属性标注分段式滑块,使用 `value` / `defaultValue` 指定滑块位置。当 `included=false` 时,表明不同标记间为并列关系。当 `step=null`Slider 的可选值仅有 `marks` 标出来的部分。
2015-07-13 08:00:31 +08:00
## en-US
2019-05-07 14:57:32 +08:00
Using `marks` property to mark a graduated slider, use `value` or `defaultValue` to specify the position of thumb. When `included` is false, means that different thumbs are coordinative. when `step` is null, users can only slide the thumbs onto marks.
2016-11-29 13:17:08 +08:00
<style>
#components-slider-demo-mark h4 {
margin: 0 0 16px;
}
#components-slider-demo-mark .ant-slider-with-marks {
margin-bottom: 44px;
}
</style>