68 lines
1.2 KiB
JavaScript
68 lines
1.2 KiB
JavaScript
export default {
|
||
props: {
|
||
// 显示的值
|
||
text: {
|
||
type: String,
|
||
default: ''
|
||
},
|
||
// 是否粗体,默认normal
|
||
bold: {
|
||
type: Boolean,
|
||
default: false
|
||
},
|
||
// 是否块状
|
||
block: {
|
||
type: Boolean,
|
||
default: false
|
||
},
|
||
// 文本显示的行数,如果设置,超出此行数,将会显示省略号
|
||
lines: {
|
||
type: [String, Number],
|
||
default: ''
|
||
},
|
||
// 文本颜色
|
||
color: {
|
||
type: String,
|
||
default: '#A7ABB0'
|
||
},
|
||
// 字体大小
|
||
size: {
|
||
type: [String, Number],
|
||
default: '28rpx'
|
||
},
|
||
// 文字装饰,下划线,中划线等,可选值 none|underline|line-through
|
||
decoration: {
|
||
tepe: String,
|
||
default: 'none',
|
||
},
|
||
// 外边距,对象、字符串,数值形式均可
|
||
margin: {
|
||
type: [Object, String, Number],
|
||
default: 0
|
||
},
|
||
// 文本行高
|
||
lineHeight: {
|
||
type: [String, Number],
|
||
default: ''
|
||
},
|
||
// 文本对齐方式,可选值left|center|right
|
||
align: {
|
||
type: String,
|
||
default: 'left'
|
||
},
|
||
// 文字换行,可选值break-word|normal|anywhere
|
||
wordWrap: {
|
||
type: String,
|
||
default: 'normal'
|
||
},
|
||
className: {
|
||
type: String,
|
||
default: ''
|
||
},
|
||
width: {
|
||
type: [String,Number],
|
||
default: ''
|
||
}
|
||
}
|
||
}
|