You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
3 years ago
|
export default {
|
||
|
props: {
|
||
|
// 最小可选值
|
||
|
min: {
|
||
|
type: [Number, String],
|
||
|
default: uni.$u.props.slider.min
|
||
|
},
|
||
|
// 最大可选值
|
||
|
max: {
|
||
|
type: [Number, String],
|
||
|
default: uni.$u.props.slider.max
|
||
|
},
|
||
|
// 步长,取值必须大于 0,并且可被(max - min)整除
|
||
|
step: {
|
||
|
type: [Number, String],
|
||
|
default: uni.$u.props.slider.step
|
||
|
},
|
||
|
// 当前取值
|
||
|
value: {
|
||
|
type: [Number, String],
|
||
|
default: uni.$u.props.slider.value
|
||
|
},
|
||
|
// 滑块右侧已选择部分的背景色
|
||
|
activeColor: {
|
||
|
type: String,
|
||
|
default: uni.$u.props.slider.activeColor
|
||
|
},
|
||
|
// 滑块左侧未选择部分的背景色
|
||
|
inactiveColor: {
|
||
|
type: String,
|
||
|
default: uni.$u.props.slider.inactiveColor
|
||
|
},
|
||
|
// 滑块的大小,取值范围为 12 - 28
|
||
|
blockSize: {
|
||
|
type: [Number, String],
|
||
|
default: uni.$u.props.slider.blockSize
|
||
|
},
|
||
|
// 滑块的颜色
|
||
|
blockColor: {
|
||
|
type: String,
|
||
|
default: uni.$u.props.slider.blockColor
|
||
|
},
|
||
|
// 是否显示当前的选择值
|
||
|
showValue: {
|
||
|
type: Boolean,
|
||
|
default: uni.$u.props.slider.showValue
|
||
|
}
|
||
|
}
|
||
|
}
|