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
@@ -103,5 +103,4 @@ Notify.install = (app: App) => {
Notify.Component = withInstall<typeof VanNotify>(VanNotify);
export default Notify;
export { Notify };
+6
View File
@@ -0,0 +1,6 @@
import { Notify, NotifyOptions } from './function-call';
import type { NotifyType } from './Notify';
export default Notify;
export { Notify };
export type { NotifyType, NotifyOptions };
+1 -1
View File
@@ -1,7 +1,7 @@
import { createApp } from 'vue';
import { later } from '../../../test';
import { trigger } from '../../utils';
import { Notify } from '..';
import { Notify } from '../function-call';
import NotifyComponent from '../Notify';
test('should not throw error if calling clear method before render notify', () => {