dykj-outsource-12123/uni_modules/uview-plus/components/u-line/props.js
2024-06-28 14:18:30 +08:00

35 lines
1.1 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.

import defProps from '../../libs/config/props.js';
export default {
props: {
color: {
type: String,
default: () => defProps.line.color
},
// 长度竖向时表现为高度横向时表现为长度可以为百分比带px单位的值等
length: {
type: [String, Number],
default: () => defProps.line.length
},
// 线条方向col-竖向row-横向
direction: {
type: String,
default: () => defProps.line.direction
},
// 是否显示细边框
hairline: {
type: Boolean,
default: () => defProps.line.hairline
},
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
margin: {
type: [String, Number],
default: () => defProps.line.margin
},
// 是否虚线true-虚线false-实线
dashed: {
type: Boolean,
default: () => defProps.line.dashed
}
}
}