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);