data | dataSource | EnumList[] | (required) |
activeKey | The currently selected key | string | -- |
handSlidingComplete | value change completed callback | (key: string, index: number) => void | -- |
handValueChange | value change callback | (key: string, index: number) => void | -- |
sliderDotSize | Size of dot on scroll bar | number | -- |
sliderDotColor | The color of the dot to the right of the value | string | -- |
activeSliderDotColor | The color of the dot to the left of the value | string | -- |
style | Outer container Style | StyleProp | -- |
icon | icon svg path | string | -- |
iconSize | icon size | number | cx(24) |
iconBgSize | icon background size | number | cx(50) |
showIconBg | Whether to display icon background | boolean | true |
iconColor | icon color | string | #fff |
iconBgColor | icon background color, only rgb、rgba or hex | BackgroundType | #158CFB |
iconBgRadius | icon background radius | number | cx(50) |
sliderProps | Slider props, Doc:https://panel-docs.tuyacn.com/docs/data-entry/slider | SliderProps | -- |
titleStyle | Title container Style | StyleProp | -- |
titleTextStyle | Title text Style | StyleProp | -- |
contentStyle | Content container Style | StyleProp | -- |
thumbStyle | Slider thumb Style | StyleProp | -- |
theme | SliderProps.theme Doc:https://panel-docs.tuyacn.com/docs/data-entry/slider | Record | -- |
backgroundColor | Component background color | string | -- |
radius | Component background radius | number | -- |
trackStyle | Sliding groove pattern | StyleProp | -- |
value | Slider value | number | -- |
unit | Value unit | string | -- |
hasControl | Whether the slider is controlled | boolean | false |
canTouchTrack | Whether the value can be changed by touching the track. | boolean | false |
disabled | Whether to disable or not | boolean | -- |
type | Type of the slider: parcel: type of the parcel | "parcel" | "normal" | normal |
renderMinimumTrack | Custom rendering of the tracks less than the current value. | () => ReactElement> | -- |
renderTitle | Custom rendering Title | (value: number) => ReactElement> | -- |
padding | Outer container Padding [top, right, bottom, left] | number[] | -- |
width | -- | number | -- |
title | Title | string | -- |
showTitle | Show title or not | boolean | true |
titleFontColor | Title font color | string | -- |
titleFontSize | Title font size | number | -- |
titleFontWeight | Title font weight | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | -- |
valueFontColor | Value font color | string | -- |
valueFontSize | Value font size | number | -- |
valueFontWeight | Value font weight | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | -- |
sliderBgColor | Slider background color | string | -- |
sliderGrooveBgColor | Sliding groove background color | string | -- |
sliderThumbColor | Slider thumb color | string | -- |
sliderThumbSize | Slider thumb size | number | -- |
sliderThumbRadius | Slider thumb radius | number | -- |
bottomPromptTexts | Bottom left and right prompt text | [string, string] | -- |
bottomPromptTextFontSize | Button prompt text font size | number | -- |
bottomPromptTextFontColor | Button prompt text font color | string | -- |
bottomPromptTextFontWeight | Button prompt text font weight | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | -- |
bothSideIcons | ICONS on both sides of the slider | [IconItem, IconItem] | -- |
bothSideIconSize | Size of ICONS on both sides of the slider | number | -- |
bothSideIconColor | Color of ICONS on both sides of the slider | string | -- |
renderValue | Custom value rendering | (value: number) => ReactNode | -- |
iconIsImage | Whether the card icon is a picture | boolean | false |