types: ComponentInstance (#8154)

This commit is contained in:
neverland
2021-02-14 17:07:26 +08:00
committed by GitHub
parent 0fb0186fad
commit 4cb974ab02
8 changed files with 40 additions and 41 deletions
+3 -9
View File
@@ -1,10 +1,5 @@
import {
App,
CSSProperties,
TeleportProps,
ComponentPublicInstance,
} from 'vue';
import { inBrowser } from '../utils';
import { App, CSSProperties, TeleportProps } from 'vue';
import { inBrowser, ComponentInstance } from '../utils';
import { Interceptor } from '../utils/interceptor';
import { mountComponent, usePopupState } from '../utils/mount-component';
import VanDialog, {
@@ -38,8 +33,7 @@ export type DialogOptions = {
closeOnClickOverlay?: boolean;
};
// eslint-disable-next-line
let instance: ComponentPublicInstance<{}, any>;
let instance: ComponentInstance;
function initInstance() {
const Wrapper = {