meituan-beibuwan-h5/uni_modules/uview-ui/components/u-slider/props.js

55 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}
}
}