From 4f71408684b2116c7ed98e1ec8b88c06d23d329e Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 11 七月 2025 10:18:31 +0800
Subject: [PATCH] feat(web-antd): 全局注册 ant-design-vue 组件- 在 bootstrap.ts 中导入并注册 Antd - 此修改确保 ant-design-vue 组件可在整个应用中使用
---
eims-ui/apps/web-antd/src/bootstrap.ts | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/eims-ui/apps/web-antd/src/bootstrap.ts b/eims-ui/apps/web-antd/src/bootstrap.ts
index f842021..f5c310c 100644
--- a/eims-ui/apps/web-antd/src/bootstrap.ts
+++ b/eims-ui/apps/web-antd/src/bootstrap.ts
@@ -14,6 +14,7 @@
import { initComponentAdapter } from './adapter/component';
import App from './app.vue';
import { router } from './router';
+import Antd from 'ant-design-vue';
async function bootstrap(namespace: string) {
// 鍒濆鍖栫粍浠堕�傞厤鍣�
@@ -36,6 +37,9 @@
// 閰嶇疆璺敱鍙婅矾鐢卞畧鍗�
app.use(router);
+ // 鍏ㄥ眬娉ㄥ唽 antd 缁勪欢
+ app.use(Antd);
+
// 鍔ㄦ�佹洿鏂版爣棰�
watchEffect(() => {
if (preferences.app.dynamicTitle) {
--
Gitblit v1.9.3