- 修复 uni-popup-dialog/uni-data-picker keypress.js 中 $once 在 H5 端报错(改用生命周期钩子清理监听) - main.js 补 $delete globalProperties polyfill(z-paging 自动高度逻辑依赖) - App.vue onLaunch 补设备信息初始化,修复 X-Device-Id 恒为 unknown - 68 处 ::v-deep、/deep/ 旧深度选择器替换为 :deep()(含 login-page.scss) - zetank-personalpage 组件 .sync 修饰符改为 v-model:xxx(Vue3 已移除 .sync) - vite.config.js HBuilderX 路径支持 HBUILDERX_HOME 环境变量覆盖 - 根 package.json 清理 image-grid 插件遗留元数据 - 收录此前未提交的 uView Vue3 兜底补丁(common/uview-init.js 及各组件 props.js)
112 lines
3.4 KiB
JavaScript
112 lines
3.4 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 涓婚棰滆壊
|
|
type: {
|
|
type: String,
|
|
default: uni.$u.props.text.type
|
|
},
|
|
// 鏄惁鏄剧ず
|
|
show: {
|
|
type: Boolean,
|
|
default: uni.$u.props.text.show
|
|
},
|
|
// 鏄剧ず鐨勫€?
|
|
text: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.text.text
|
|
},
|
|
// 鍓嶇疆鍥炬爣
|
|
prefixIcon: {
|
|
type: String,
|
|
default: uni.$u.props.text.prefixIcon
|
|
},
|
|
// 鍚庣疆鍥炬爣
|
|
suffixIcon: {
|
|
type: String,
|
|
default: uni.$u.props.text.suffixIcon
|
|
},
|
|
// 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮?
|
|
// text-鏅€氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺?
|
|
mode: {
|
|
type: String,
|
|
default: uni.$u.props.text.mode
|
|
},
|
|
// mode=link涓嬶紝閰嶇疆鐨勯摼鎺?
|
|
href: {
|
|
type: String,
|
|
default: uni.$u.props.text.href
|
|
},
|
|
// 鏍煎紡鍖栬鍒?
|
|
format: {
|
|
type: [String, Function],
|
|
default: uni.$u.props.text.format
|
|
},
|
|
// mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽
|
|
call: {
|
|
type: Boolean,
|
|
default: uni.$u.props.text.call
|
|
},
|
|
// 灏忕▼搴忕殑鎵撳紑鏂瑰紡
|
|
openType: {
|
|
type: String,
|
|
default: uni.$u.props.text.openType
|
|
},
|
|
// 鏄惁绮椾綋锛岄粯璁ormal
|
|
bold: {
|
|
type: Boolean,
|
|
default: uni.$u.props.text.bold
|
|
},
|
|
// 鏄惁鍧楃姸
|
|
block: {
|
|
type: Boolean,
|
|
default: uni.$u.props.text.block
|
|
},
|
|
// 鏂囨湰鏄剧ず鐨勮鏁帮紝濡傛灉璁剧疆锛岃秴鍑烘琛屾暟锛屽皢浼氭樉绀虹渷鐣ュ彿
|
|
lines: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.text.lines
|
|
},
|
|
// 鏂囨湰棰滆壊
|
|
color: {
|
|
type: String,
|
|
default: uni.$u.props.text.color
|
|
},
|
|
// 瀛椾綋澶у皬
|
|
size: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.text.size
|
|
},
|
|
// 鍥炬爣鐨勬牱寮?
|
|
iconStyle: {
|
|
type: [Object, String],
|
|
default: uni.$u.props.text.iconStyle
|
|
},
|
|
// 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙€夊€?none|underline|line-through
|
|
decoration: {
|
|
type: String,
|
|
default: uni.$u.props.text.decoration
|
|
},
|
|
// 澶栬竟璺濓紝瀵硅薄銆佸瓧绗︿覆锛屾暟鍊煎舰寮忓潎鍙?
|
|
margin: {
|
|
type: [Object, String, Number],
|
|
default: uni.$u.props.text.margin
|
|
},
|
|
// 鏂囨湰琛岄珮
|
|
lineHeight: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.text.lineHeight
|
|
},
|
|
// 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊€糽eft|center|right
|
|
align: {
|
|
type: String,
|
|
default: uni.$u.props.text.align
|
|
},
|
|
// 鏂囧瓧鎹㈣锛屽彲閫夊€糱reak-word|normal|anywhere
|
|
wordWrap: {
|
|
type: String,
|
|
default: uni.$u.props.text.wordWrap
|
|
}
|
|
}
|
|
}
|