uview-plus
Version:
零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。
36 lines (35 loc) • 1.14 kB
JavaScript
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
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
}
}
})