chore: split function call (#8424)
This commit is contained in:
@@ -103,5 +103,4 @@ ImagePreview.install = (app: App) => {
|
||||
app.use(withInstall<typeof VanImagePreview>(VanImagePreview));
|
||||
};
|
||||
|
||||
export default ImagePreview;
|
||||
export { ImagePreview };
|
||||
@@ -0,0 +1,5 @@
|
||||
import { ImagePreview, ImagePreviewOptions } from './function-call';
|
||||
|
||||
export default ImagePreview;
|
||||
export { ImagePreview };
|
||||
export type { ImagePreviewOptions };
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { createApp } from 'vue';
|
||||
import { ImagePreview } from '..';
|
||||
import { ImagePreview } from '../function-call';
|
||||
import ImagePreviewComponent from '../ImagePreview';
|
||||
|
||||
test('should expose ImagePreviewComponent in ImagePreview.Component', () => {
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
triggerDrag,
|
||||
mockGetBoundingClientRect,
|
||||
} from '../../../test';
|
||||
import { ImagePreview } from '..';
|
||||
import { ImagePreview } from '../function-call';
|
||||
import ImagePreviewComponent from '../ImagePreview';
|
||||
|
||||
const images = [
|
||||
|
||||
Reference in New Issue
Block a user