mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 19:21:53 +08:00
55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
|
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
|
|||
|
},
|
|||
|
// 禁用状态
|
|||
|
disabled: {
|
|||
|
type: Boolean,
|
|||
|
default: uni.$u.props.slider.disabled
|
|||
|
},
|
|||
|
// 是否显示当前的选择值
|
|||
|
showValue: {
|
|||
|
type: Boolean,
|
|||
|
default: uni.$u.props.slider.showValue
|
|||
|
}
|
|||
|
}
|
|||
|
}
|