feat: v-loading support for element plus (#5008)

This commit is contained in:
Netfan
2024-12-04 21:42:48 +08:00
committed by GitHub
parent e23486dbc6
commit fccbe44cf7
2 changed files with 56 additions and 44 deletions

View File

@@ -7,6 +7,7 @@ import '@vben/styles';
import '@vben/styles/ele';
import { useTitle } from '@vueuse/core';
import { ElLoading } from 'element-plus';
import { $t, setupI18n } from '#/locales';
@@ -19,6 +20,9 @@ async function bootstrap(namespace: string) {
await initComponentAdapter();
const app = createApp(App);
// 注册Element Plus提供的v-loading指令
app.directive('loading', ElLoading.directive);
// 国际化 i18n 配置
await setupI18n(app);