chore: 调整组件导出方式

This commit is contained in:
dap
2024-09-12 08:31:47 +08:00
parent f2c627b51e
commit 4d67c99f2b
6 changed files with 6 additions and 206 deletions

View File

@@ -1,8 +1,4 @@
import { withInstall } from '#/utils';
import cropperImage from './src/cropper.vue';
import avatarCropper from './src/cropper-avatar.vue';
export { default as CropperImage } from './src/cropper.vue';
export { default as CropperAvatar } from './src/cropper-avatar.vue';
export type { Cropper } from './src/typing';
export const CropperImage = withInstall(cropperImage);
export const CropperAvatar = withInstall(avatarCropper);

View File

@@ -1,7 +1,3 @@
import { withInstall } from '#/utils';
import description from './src/description.vue';
export { default as Description } from './src/description.vue';
export * from './src/typing';
export { useDescription } from './src/useDescription';
export const Description = withInstall(description);

View File

@@ -1,5 +1 @@
import { withInstall } from '#/utils';
import dictTag from './src/index.vue';
export const DictTag = withInstall(dictTag);
export { default as DictTag } from './src/index.vue';

View File

@@ -1,5 +1 @@
import { withInstall } from '#/utils';
import tenantToggle from './src/index.vue';
export const TenantToggle = withInstall(tenantToggle);
export { default as TenantToggle } from './src/index.vue';

View File

@@ -1,5 +1 @@
import { withInstall } from '#/utils';
import tinymce from './src/editor.vue';
export const Tinymce = withInstall(tinymce);
export { default as Tinymce } from './src/editor.vue';