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,76 +1,77 @@
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 键盘弹起时,是否自动上推页面
|
||||
// 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰
|
||||
adjustPosition: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.adjustPosition
|
||||
},
|
||||
// 最大输入长度
|
||||
// 鏈€澶ц緭鍏ラ暱搴?
|
||||
maxlength: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.codeInput.maxlength
|
||||
},
|
||||
// 是否用圆点填充
|
||||
// 鏄惁鐢ㄥ渾鐐瑰~鍏?
|
||||
dot: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.dot
|
||||
},
|
||||
// 显示模式,box-盒子模式,line-底部横线模式
|
||||
// 鏄剧ず妯″紡锛宐ox-鐩掑瓙妯″紡锛宭ine-搴曢儴妯嚎妯″紡
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.codeInput.mode
|
||||
},
|
||||
// 是否细边框
|
||||
// 鏄惁缁嗚竟妗?
|
||||
hairline: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.hairline
|
||||
},
|
||||
// 字符间的距离
|
||||
// 瀛楃闂寸殑璺濈
|
||||
space: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.codeInput.space
|
||||
},
|
||||
// 预置值
|
||||
// 棰勭疆鍊?
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.codeInput.value
|
||||
},
|
||||
// 是否自动获取焦点
|
||||
// 鏄惁鑷姩鑾峰彇鐒︾偣
|
||||
focus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.focus
|
||||
},
|
||||
// 字体是否加粗
|
||||
// 瀛椾綋鏄惁鍔犵矖
|
||||
bold: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.bold
|
||||
},
|
||||
// 字体颜色
|
||||
// 瀛椾綋棰滆壊
|
||||
color: {
|
||||
type: String,
|
||||
default: uni.$u.props.codeInput.color
|
||||
},
|
||||
// 字体大小
|
||||
// 瀛椾綋澶у皬
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.codeInput.fontSize
|
||||
},
|
||||
// 输入框的大小,宽等于高
|
||||
// 杈撳叆妗嗙殑澶у皬锛屽绛変簬楂?
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.codeInput.size
|
||||
},
|
||||
// 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
|
||||
// 鏄惁闅愯棌鍘熺敓閿洏锛屽鏋滄兂鐢ㄨ嚜瀹氫箟閿洏鐨勮瘽锛岄渶璁剧疆姝ゅ弬鏁颁负true
|
||||
disabledKeyboard: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.disabledKeyboard
|
||||
},
|
||||
// 边框和线条颜色
|
||||
// 杈规鍜岀嚎鏉¢鑹?
|
||||
borderColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.codeInput.borderColor
|
||||
},
|
||||
// 是否禁止输入"."符号
|
||||
// 鏄惁绂佹杈撳叆"."绗﹀彿
|
||||
disabledDot: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.codeInput.disabledDot
|
||||
|
||||
Reference in New Issue
Block a user