fix(im): 迁移 Element UI 图标并修复 Vue 3 兼容问题

- 新增 migrate-legacy-icons 脚本,批量将旧图标替换为 legacy-el-icon 组件
- 多个组件中将 <i class="el-icon-*"> 统一改为 <legacy-el-icon name="el-icon-*">
- 将 size="mini"/"medium" 调整为 Element Plus 的 small/default
- 新增 legacy-el-icon 全局组件及图标映射逻辑
This commit is contained in:
田香琪
2026-07-22 13:36:44 +08:00
parent 12291ad4d5
commit 4bcaf14bad
39 changed files with 329 additions and 115 deletions

View File

@@ -1,4 +1,5 @@
import { createApp, h, onMounted, onUnmounted } from "vue";
import LegacyElIcon from "@/components/global/LegacyElIcon.vue";
let activeMenu = null;
@@ -99,7 +100,7 @@ function renderMenuItem(item, close) {
},
},
[
item.icon ? h("i", { class: item.icon }) : null,
item.icon ? h(LegacyElIcon, { name: item.icon }) : null,
h("span", item.label),
]
);