feat(icons): 添加 Lucide 图标组件并集成到首页

添加 Lucide Vue 图标库依赖,创建 AppIcon 基础组件用于统一管理图标
移除 .npmrc 文件并更新 pre-commit 钩子使用 npm 替代 pnpm
This commit is contained in:
houakang
2026-04-10 15:19:12 +08:00
parent 2d1fe95be0
commit 0b11680aea
6 changed files with 99 additions and 53 deletions

View File

@@ -6,14 +6,16 @@ import 'element-plus/dist/index.css';
import router from './router';
import App from './App.vue';
import './style.css';
import AppIcon from './components/base/AppIcon.vue';
const app = createApp(App);
// 注册所有 Element Plus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
// 注册自定义图标组件
app.component('AppIcon', AppIcon);
app.use(createPinia());
app.use(router);
app.use(ElementPlus);