fix(List): skip check when inside an inactive tab (#8741)

This commit is contained in:
neverland
2021-05-22 17:38:05 +08:00
committed by GitHub
parent 62a30bbf02
commit 38aeecfcb7
4 changed files with 55 additions and 11 deletions
+8
View File
@@ -0,0 +1,8 @@
import { inject, ComputedRef } from 'vue';
// eslint-disable-next-line
export const TAB_STATUS_KEY = Symbol();
export function useTabStatus() {
return inject<ComputedRef<boolean> | null>(TAB_STATUS_KEY, null);
}