fix: Vue2 到 Vue3 迁移兼容修复
- 修复 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)
This commit is contained in:
@@ -1,107 +1,108 @@
|
||||
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-价格,phone-手机号,name-姓名,date-日期,link-超链接
|
||||
// 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮?
|
||||
// text-鏅€氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺?
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.mode
|
||||
},
|
||||
// mode=link下,配置的链接
|
||||
// mode=link涓嬶紝閰嶇疆鐨勯摼鎺?
|
||||
href: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.href
|
||||
},
|
||||
// 格式化规则
|
||||
// 鏍煎紡鍖栬鍒?
|
||||
format: {
|
||||
type: [String, Function],
|
||||
default: uni.$u.props.text.format
|
||||
},
|
||||
// mode=phone时,点击文本是否拨打电话
|
||||
// mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽
|
||||
call: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.text.call
|
||||
},
|
||||
// 小程序的打开方式
|
||||
// 灏忕▼搴忕殑鎵撳紑鏂瑰紡
|
||||
openType: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.openType
|
||||
},
|
||||
// 是否粗体,默认normal
|
||||
// 鏄惁绮椾綋锛岄粯璁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
|
||||
// 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙€夊€?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
|
||||
},
|
||||
// 文本对齐方式,可选值left|center|right
|
||||
// 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊€糽eft|center|right
|
||||
align: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.align
|
||||
},
|
||||
// 文字换行,可选值break-word|normal|anywhere
|
||||
// 鏂囧瓧鎹㈣锛屽彲閫夊€糱reak-word|normal|anywhere
|
||||
wordWrap: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.wordWrap
|
||||
|
||||
Reference in New Issue
Block a user