chore: split function call (#8424)

This commit is contained in:
neverland
2021-03-29 17:47:24 +08:00
committed by GitHub
parent eec186ac19
commit 62eda87c99
13 changed files with 157 additions and 140 deletions
@@ -185,6 +185,4 @@ Toast.install = (app: App) => {
app.config.globalProperties.$toast = Toast;
};
export default Toast;
export { Toast };
export type { ToastType, ToastPosition };
+6
View File
@@ -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 };
+3 -3
View File
@@ -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();