Files
xk-doctor-wx/components/d-text/props.js
2024-09-19 12:57:55 +08:00

68 lines
1.2 KiB
JavaScript
Raw 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: {
// 显示的值
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: ''
}
}
}