refactor: 富文本/上传同步改为异步组件导入
This commit is contained in:
parent
3e7a2336b0
commit
1c2e27613c
@ -22,10 +22,20 @@ import { $t } from '@vben/locales';
|
|||||||
|
|
||||||
import { notification } from 'ant-design-vue';
|
import { notification } from 'ant-design-vue';
|
||||||
|
|
||||||
import { Tinymce as RichTextarea } from '#/components/tinymce';
|
|
||||||
import { FileUpload, ImageUpload } from '#/components/upload';
|
|
||||||
import { FileUploadOld, ImageUploadOld } from '#/components/upload-old';
|
import { FileUploadOld, ImageUploadOld } from '#/components/upload-old';
|
||||||
|
|
||||||
|
const RichTextarea = defineAsyncComponent(() =>
|
||||||
|
import('#/components/tinymce/index').then((res) => res.Tinymce),
|
||||||
|
);
|
||||||
|
|
||||||
|
const FileUpload = defineAsyncComponent(() =>
|
||||||
|
import('#/components/upload').then((res) => res.FileUpload),
|
||||||
|
);
|
||||||
|
|
||||||
|
const ImageUpload = defineAsyncComponent(() =>
|
||||||
|
import('#/components/upload').then((res) => res.ImageUpload),
|
||||||
|
);
|
||||||
|
|
||||||
const AutoComplete = defineAsyncComponent(
|
const AutoComplete = defineAsyncComponent(
|
||||||
() => import('ant-design-vue/es/auto-complete'),
|
() => import('ant-design-vue/es/auto-complete'),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user