Narrow startup common ui imports
This commit is contained in:
@@ -5,14 +5,16 @@
|
||||
|
||||
import type { Component } from 'vue';
|
||||
|
||||
import type { BaseFormComponentType } from '@vben/common-ui';
|
||||
import type { BaseFormComponentType } from '@vben-core/form-ui';
|
||||
import type { Recordable } from '@vben/types';
|
||||
|
||||
import { defineAsyncComponent, defineComponent, h, ref } from 'vue';
|
||||
|
||||
import { ApiComponent, globalShareState } from '@vben/common-ui';
|
||||
import { globalShareState } from '@vben-core/shared/global-state';
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
import { ApiComponent } from '@vben/common-ui/es/api-component';
|
||||
|
||||
const ElButton = defineAsyncComponent(() =>
|
||||
import('element-plus/es/components/button/index').then((res) => res.ElButton),
|
||||
);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type {
|
||||
VbenFormSchema as FormSchema,
|
||||
VbenFormProps,
|
||||
} from '@vben/common-ui';
|
||||
} from '@vben-core/form-ui';
|
||||
|
||||
import type { ComponentType } from './component';
|
||||
|
||||
import { setupVbenForm, useVbenForm as useForm, z } from '@vben/common-ui';
|
||||
import { setupVbenForm, useVbenForm as useForm, z } from '@vben-core/form-ui';
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
async function initSetupVbenForm() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { createApp, watchEffect } from 'vue';
|
||||
|
||||
import { registerAccessDirective } from '@vben/access';
|
||||
import { registerLoadingDirective } from '@vben/common-ui';
|
||||
import { preferences } from '@vben/preferences';
|
||||
import { initStores } from '@vben/stores';
|
||||
import '@vben/styles';
|
||||
@@ -43,12 +42,6 @@ async function bootstrap(namespace: string) {
|
||||
|
||||
setupElementPlus(app);
|
||||
|
||||
// 注册Vben提供的v-loading和v-spinning指令
|
||||
registerLoadingDirective(app, {
|
||||
loading: false, // Vben提供的v-loading指令和Element Plus提供的v-loading指令二选一即可,此处false表示不注册Vben提供的v-loading指令
|
||||
spinning: 'spinning',
|
||||
});
|
||||
|
||||
// 国际化 i18n 配置
|
||||
await setupI18n(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user