pet/uni_modules/uview-next/components/u-circle-progress/props.js

49 lines
1.2 KiB
JavaScript
Raw Permalink 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: {
// 圆环进度百分比值
percent: {
type: Number,
default: ()=> uni.$u.props.circleProgress.percent,
// 限制值在0到100之间
validator: val => {
return val >= 0 && val <= 100;
}
},
// 底部圆环的颜色(灰色的圆环)
inactiveColor: {
type: String,
default: ()=> uni.$u.props.circleProgress.inactiveColor,
},
// 圆环激活部分的颜色
activeColor: {
type: String,
default: ()=> uni.$u.props.circleProgress.activeColor,
},
// 圆环线条的宽度单位rpx
borderWidth: {
type: [Number, String],
default: ()=> uni.$u.props.circleProgress.borderWidth
},
// 整个圆形的宽度单位rpx
width: {
type: [Number, String],
default: ()=> uni.$u.props.circleProgress.width
},
// 整个圆环执行一圈的时间单位ms
duration: {
type: [Number, String],
default: ()=> uni.$u.props.circleProgress.duration
},
// 主题类型
type: {
type: String,
default: ()=> uni.$u.props.circleProgress.type
},
// 整个圆环进度区域的背景色
bgColor: {
type: String,
default: ()=> uni.$u.props.circleProgress.bgColor
}
}
}