fix(table): fix table type error

This commit is contained in:
vben
2020-11-04 21:39:06 +08:00
parent 6d9585b46f
commit db0bfc8863
6 changed files with 9 additions and 62 deletions

View File

@@ -26,17 +26,12 @@ export function tryOnMounted(fn: () => void, sync = true) {
}
export function tryOnUnmounted(fn: () => Promise<void> | void) {
if (getCurrentInstance()) {
onUnmounted(fn);
}
getCurrentInstance() && onUnmounted(fn);
}
export function tryTsxEmit(fn: (_instance: any) => Promise<void> | void) {
const instance = getCurrentInstance();
if (instance) {
fn.call(null, instance);
}
instance && fn.call(null, instance);
}
export function isInSetup() {