chore: split function call (#8424)
This commit is contained in:
@@ -185,6 +185,4 @@ Toast.install = (app: App) => {
|
||||
app.config.globalProperties.$toast = Toast;
|
||||
};
|
||||
|
||||
export default Toast;
|
||||
export { Toast };
|
||||
export type { ToastType, ToastPosition };
|
||||
@@ -0,0 +1,6 @@
|
||||
import { Toast, ToastOptions } from './function-call';
|
||||
import type { ToastType, ToastPosition } from './Toast';
|
||||
|
||||
export default Toast;
|
||||
export { Toast };
|
||||
export type { ToastType, ToastOptions, ToastPosition };
|
||||
@@ -1,7 +1,7 @@
|
||||
import { later } from '../../../test';
|
||||
import Toast from '../index';
|
||||
import ToastComponent from '../Toast';
|
||||
import { createApp } from 'vue';
|
||||
import { later } from '../../../test';
|
||||
import { Toast } from '../function-call';
|
||||
import ToastComponent from '../Toast';
|
||||
|
||||
test('toast disappeared after duration', async () => {
|
||||
const onClose = jest.fn();
|
||||
|
||||
Reference in New Issue
Block a user