dykj-outsource-12123/uni_modules/uview-plus/components/u-divider/props.js

46 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-06-28 14:18:30 +08:00
import defProps from '../../libs/config/props.js';
export default {
props: {
// 是否虚线
dashed: {
type: Boolean,
default: () => defProps.divider.dashed
},
// 是否细线
hairline: {
type: Boolean,
default: () => defProps.divider.hairline
},
// 是否以点替代文字优先于text字段起作用
dot: {
type: Boolean,
default: () => defProps.divider.dot
},
// 内容文本的位置left-左边center-中间right-右边
textPosition: {
type: String,
default: () => defProps.divider.textPosition
},
// 文本内容
text: {
type: [String, Number],
default: () => defProps.divider.text
},
// 文本大小
textSize: {
type: [String, Number],
default: () => defProps.divider.textSize
},
// 文本颜色
textColor: {
type: String,
default: () => defProps.divider.textColor
},
// 线条颜色
lineColor: {
type: String,
default: () => defProps.divider.lineColor
}
}
}