chore(@vant/use): fix some lint issues (#8462)

This commit is contained in:
neverland
2021-04-06 20:03:26 +08:00
committed by GitHub
parent fe453dabb1
commit ace4c9b60b
8 changed files with 33 additions and 36 deletions
@@ -23,10 +23,7 @@ export function useParent<T>(key: string | symbol) {
const { link, unlink, internalChildren, ...rest } = parent;
link(instance);
onUnmounted(() => {
unlink(instance);
});
onUnmounted(() => unlink(instance));
const index = computed(() => internalChildren.indexOf(instance));