mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:31:41 +08:00
fix(table): fix table type error
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user