mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/node_modules/uview-plus/components/u-text/props.js

112 lines
3.1 KiB
JavaScript
Raw Permalink Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// 主题颜色
type: {
type: String,
default: defprops.text.type
},
// 是否显示
show: {
type: Boolean,
default: defprops.text.show
},
// 显示的值
text: {
type: [String, Number],
default: defprops.text.text
},
// 前置图标
prefixIcon: {
type: String,
default: defprops.text.prefixIcon
},
// 后置图标
suffixIcon: {
type: String,
default: defprops.text.suffixIcon
},
// 文本处理的匹配模式
// text-普通文本price-价格phone-手机号name-姓名date-日期link-超链接
mode: {
type: String,
default: defprops.text.mode
},
// mode=link下配置的链接
href: {
type: String,
default: defprops.text.href
},
// 格式化规则
format: {
type: [String, Function],
default: defprops.text.format
},
// mode=phone时点击文本是否拨打电话
call: {
type: Boolean,
default: defprops.text.call
},
// 小程序的打开方式
openType: {
type: String,
default: defprops.text.openType
},
// 是否粗体默认normal
bold: {
type: Boolean,
default: defprops.text.bold
},
// 是否块状
block: {
type: Boolean,
default: defprops.text.block
},
// 文本显示的行数,如果设置,超出此行数,将会显示省略号
lines: {
type: [String, Number],
default: defprops.text.lines
},
// 文本颜色
color: {
type: String,
default: defprops.text.color
},
// 字体大小
size: {
type: [String, Number],
default: defprops.text.size
},
// 图标的样式
iconStyle: {
type: [Object, String],
default: defprops.text.iconStyle
},
// 文字装饰,下划线,中划线等,可选值 none|underline|line-through
decoration: {
tepe: String,
default: defprops.text.decoration
},
// 外边距,对象、字符串,数值形式均可
margin: {
type: [Object, String, Number],
default: defprops.text.margin
},
// 文本行高
lineHeight: {
type: [String, Number],
default: defprops.text.lineHeight
},
// 文本对齐方式可选值left|center|right
align: {
type: String,
default: defprops.text.align
},
// 文字换行可选值break-word|normal|anywhere
wordWrap: {
type: String,
default: defprops.text.wordWrap
}
}
}