fix(vue3): 修复 Vue3 兼容问题

1) user/list.vue: \ 改为 Proxy 直接赋值(官方 2.5.1 仍存在该 bug,3.0.0 才修复)2) uni-menu-item/uni-sub-menu: destroyed→unmounted 3) show-info: 移除已废除的 .native 修饰符
This commit is contained in:
12914
2026-09-06 20:05:19 +08:00
parent 6e224e285f
commit e408cd0a3e
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<view style="position: relative;">
<uni-icons @mouseenter.native="mouseenter" @mouseleave.native="showStableInfo = false"
<uni-icons @mouseenter="mouseenter" @mouseleave="showStableInfo = false"
style="padding:0 10px;color: #a8a8a8;cursor: pointer;" type="info" />
<view v-if="showStableInfo" class="show-stable" :style="{top:`${top}px`,left:`${left}px`,width:`${width}px`}">
<text>{{content}}</text>
+1 -1
View File
@@ -49,7 +49,7 @@
created() {
this.init()
},
destroyed() {
unmounted() {
if (this.$menuParent) {
const menuIndex = this.$menuParent.itemChildrens.findIndex(item => item === this)
this.$menuParent.itemChildrens.splice(menuIndex, 1)
+1 -1
View File
@@ -60,7 +60,7 @@
created() {
this.init()
},
destroyed() {
unmounted() {
// 销毁页面后,将当前页面实例从数据中删除
if (this.$menuParent) {
const menuIndex = this.$menuParent.subChildrens.findIndex(item => item === this)