mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-17 22:32:01 +08:00
移除 `@iconify/icons-flat-color-icons/folder`、`@iconify/icons-material-symbols/menu` 和 `@iconify/icons-mdi/button-pointer` 的显式导入与离线图标包装导出。将树组件和菜单视图中的图标使用方式从组件实例更改为CSS类(例如 `icons-[flat-color-icons--folder]`)。这消除了对特定离线图标包的依赖,使图标管理更统一并可能减少打包体积。
@vben/icons
用于多个 app 公用的图标文件,继承了 @vben-core/icons 的所有能力。业务上有通用图标可以放在这里。
用法
添加依赖
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/icons
使用
import { X } from '@vben/icons';