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,81 +1,82 @@
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
|
||||
// 閿洏鐨勭被鍨嬶紝number-鏁板瓧閿洏锛宑ard-韬唤璇侀敭鐩橈紝car-杞︾墝鍙烽敭鐩?
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.mode
|
||||
},
|
||||
// 是否显示键盘的"."符号
|
||||
// 鏄惁鏄剧ず閿洏鐨?."绗﹀彿
|
||||
dotDisabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.dotDisabled
|
||||
},
|
||||
// 是否显示顶部工具条
|
||||
// 鏄惁鏄剧ず椤堕儴宸ュ叿鏉?
|
||||
tooltip: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.tooltip
|
||||
},
|
||||
// 是否显示工具条中间的提示
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉′腑闂寸殑鎻愮ず
|
||||
showTips: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showTips
|
||||
},
|
||||
// 工具条中间的提示文字
|
||||
// 宸ュ叿鏉′腑闂寸殑鎻愮ず鏂囧瓧
|
||||
tips: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.tips
|
||||
},
|
||||
// 是否显示工具条左边的"取消"按钮
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉″乏杈圭殑"鍙栨秷"鎸夐挳
|
||||
showCancel: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showCancel
|
||||
},
|
||||
// 是否显示工具条右边的"完成"按钮
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉″彸杈圭殑"瀹屾垚"鎸夐挳
|
||||
showConfirm: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showConfirm
|
||||
},
|
||||
// 是否打乱键盘按键的顺序
|
||||
// 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴?
|
||||
random: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.random
|
||||
},
|
||||
// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
|
||||
// 鏄惁寮€鍚簳閮ㄥ畨鍏ㄥ尯閫傞厤锛屽紑鍚殑璇濓紝浼氬湪iPhoneX鏈哄瀷搴曢儴娣诲姞涓€瀹氱殑鍐呰竟璺?
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.safeAreaInsetBottom
|
||||
},
|
||||
// 是否允许通过点击遮罩关闭键盘
|
||||
// 鏄惁鍏佽閫氳繃鐐瑰嚮閬僵鍏抽棴閿洏
|
||||
closeOnClickOverlay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.closeOnClickOverlay
|
||||
},
|
||||
// 控制键盘的弹出与收起
|
||||
// 鎺у埗閿洏鐨勫脊鍑轰笌鏀惰捣
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.show
|
||||
},
|
||||
// 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
|
||||
// 鏄惁鏄剧ず閬僵锛屾煇浜涙椂鍊欐暟瀛楅敭鐩樻椂锛岀敤鎴峰笇鏈涚湅鍒拌嚜宸辩殑鏁板€硷紝鎵€浠ュ彲鑳戒笉鎯宠閬僵
|
||||
overlay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.overlay
|
||||
},
|
||||
// z-index值
|
||||
// z-index鍊?
|
||||
zIndex: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.keyboard.zIndex
|
||||
},
|
||||
// 取消按钮的文字
|
||||
// 鍙栨秷鎸夐挳鐨勬枃瀛?
|
||||
cancelText: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.cancelText
|
||||
},
|
||||
// 确认按钮的文字
|
||||
// 纭鎸夐挳鐨勬枃瀛?
|
||||
confirmText: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.confirmText
|
||||
},
|
||||
// 输入一个中文后,是否自动切换到英文
|
||||
// 杈撳叆涓€涓腑鏂囧悗锛屾槸鍚﹁嚜鍔ㄥ垏鎹㈠埌鑻辨枃
|
||||
autoChange: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.autoChange
|
||||
|
||||
Reference in New Issue
Block a user