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:
2026-09-06 19:36:36 +08:00
parent a68bf43112
commit 99c139d6ce
126 changed files with 1223 additions and 1080 deletions
+21 -20
View File
@@ -1,107 +1,108 @@
import '@/common/uview-init.js'
export default {
props: {
// 标题
// 鏍囬
title: {
type: [String, Number],
default: uni.$u.props.cell.title
},
// 标题下方的描述信息
// 鏍囬涓嬫柟鐨勬弿杩颁俊鎭?
label: {
type: [String, Number],
default: uni.$u.props.cell.label
},
// 右侧的内容
// 鍙充晶鐨勫唴瀹?
value: {
type: [String, Number],
default: uni.$u.props.cell.value
},
// 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
// 宸︿晶鍥炬爣鍚嶇О锛屾垨鑰呭浘鐗囬摼鎺?鏈湴鏂囦欢寤鸿浣跨敤缁濆鍦板潃)
icon: {
type: String,
default: uni.$u.props.cell.icon
},
// 是否禁用cell
// 鏄惁绂佺敤cell
disabled: {
type: Boolean,
default: uni.$u.props.cell.disabled
},
// 是否显示下边框
// 鏄惁鏄剧ず涓嬭竟妗?
border: {
type: Boolean,
default: uni.$u.props.cell.border
},
// 内容是否垂直居中(主要是针对右侧的value部分)
// 鍐呭鏄惁鍨傜洿灞呬腑(涓昏鏄拡瀵瑰彸渚х殑value閮ㄥ垎)
center: {
type: Boolean,
default: uni.$u.props.cell.center
},
// 点击后跳转的URL地址
// 鐐瑰嚮鍚庤烦杞殑URL鍦板潃
url: {
type: String,
default: uni.$u.props.cell.url
},
// 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
// 閾炬帴璺宠浆鐨勬柟寮忥紝鍐呴儴浣跨敤鐨勬槸uView灏佽鐨剅oute鏂规硶锛屽彲鑳戒細杩涜鎷︽埅鎿嶄綔
linkType: {
type: String,
default: uni.$u.props.cell.linkType
},
// 是否开启点击反馈(表现为点击时加上灰色背景)
// 鏄惁寮€鍚偣鍑诲弽棣?琛ㄧ幇涓虹偣鍑绘椂鍔犱笂鐏拌壊鑳屾櫙)
clickable: {
type: Boolean,
default: uni.$u.props.cell.clickable
},
// 是否展示右侧箭头并开启点击反馈
// 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣?
isLink: {
type: Boolean,
default: uni.$u.props.cell.isLink
},
// 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
// 鏄惁鏄剧ず琛ㄥ崟鐘舵€佷笅鐨勫繀濉槦鍙?姝ょ粍浠跺彲鑳戒細鍐呭祵鍏nput缁勪欢)
required: {
type: Boolean,
default: uni.$u.props.cell.required
},
// 右侧的图标箭头
// 鍙充晶鐨勫浘鏍囩澶?
rightIcon: {
type: String,
default: uni.$u.props.cell.rightIcon
},
// 右侧箭头的方向,可选值为:left,up,down
// 鍙充晶绠ご鐨勬柟鍚戯紝鍙€夊€间负锛歭eft锛寀p锛宒own
arrowDirection: {
type: String,
default: uni.$u.props.cell.arrowDirection
},
// 左侧图标样式
// 宸︿晶鍥炬爣鏍峰紡
iconStyle: {
type: [Object, String],
default: () => {
return uni.$u.props.cell.iconStyle
}
},
// 右侧箭头图标的样式
// 鍙充晶绠ご鍥炬爣鐨勬牱寮?
rightIconStyle: {
type: [Object, String],
default: () => {
return uni.$u.props.cell.rightIconStyle
}
},
// 标题的样式
// 鏍囬鐨勬牱寮?
titleStyle: {
type: [Object, String],
default: () => {
return uni.$u.props.cell.titleStyle
}
},
// 单位元的大小,可选值为large
// 鍗曚綅鍏冪殑澶у皬锛屽彲閫夊€间负large
size: {
type: String,
default: uni.$u.props.cell.size
},
// 点击cell是否阻止事件传播
// 鐐瑰嚮cell鏄惁闃绘浜嬩欢浼犳挱
stop: {
type: Boolean,
default: uni.$u.props.cell.stop
},
// 标识符,cell被点击时返回
// 鏍囪瘑绗︼紝cell琚偣鍑绘椂杩斿洖
name: {
type: [Number, String],
default: uni.$u.props.cell.name