fix(List): should emit load event when parent tab is activated (#9022)

This commit is contained in:
neverland
2021-07-13 16:03:00 +08:00
committed by GitHub
parent 0e05d8c908
commit d74a3c0b29
2 changed files with 43 additions and 0 deletions
+8
View File
@@ -139,6 +139,14 @@ export default defineComponent({
check
);
if (tabStatus) {
watch(tabStatus, (tabActive) => {
if (tabActive) {
check();
}
});
}
onUpdated(() => {
loading.value = props.loading!;
});