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,38 +1,39 @@
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 控制打开或者关闭
|
||||
// 鎺у埗鎵撳紑鎴栬€呭叧闂?
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swipeActionItem.show
|
||||
},
|
||||
// 标识符,如果是v-for,可用index索引值
|
||||
// 鏍囪瘑绗︼紝濡傛灉鏄痸-for锛屽彲鐢╥ndex绱㈠紩鍊?
|
||||
name: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.swipeActionItem.name
|
||||
},
|
||||
// 是否禁用
|
||||
// 鏄惁绂佺敤
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swipeActionItem.disabled
|
||||
},
|
||||
// 是否自动关闭其他swipe按钮组
|
||||
// 鏄惁鑷姩鍏抽棴鍏朵粬swipe鎸夐挳缁?
|
||||
autoClose: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swipeActionItem.autoClose
|
||||
},
|
||||
// 滑动距离阈值,只有大于此值,才被认为是要打开菜单
|
||||
// 婊戝姩璺濈闃堝€硷紝鍙湁澶т簬姝ゅ€硷紝鎵嶈璁や负鏄鎵撳紑鑿滃崟
|
||||
threshold: {
|
||||
type: Number,
|
||||
default: uni.$u.props.swipeActionItem.threshold
|
||||
},
|
||||
// 右侧按钮内容
|
||||
// 鍙充晶鎸夐挳鍐呭
|
||||
options: {
|
||||
type: Array,
|
||||
default() {
|
||||
return uni.$u.props.swipeActionItem.rightOptions
|
||||
}
|
||||
},
|
||||
// 动画过渡时间,单位ms
|
||||
// 鍔ㄧ敾杩囨浮鏃堕棿锛屽崟浣峬s
|
||||
duration: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.swipeActionItem.duration
|
||||
|
||||
Reference in New Issue
Block a user