types: improve ref typing (#8182)

This commit is contained in:
neverland
2021-02-19 20:58:02 +08:00
committed by GitHub
parent 7daca89102
commit 9ad0eafae0
9 changed files with 31 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ export default createComponent({
active: false,
});
const root = ref();
const root = ref<HTMLElement>();
const { parent } = useParent<IndexBarProvide>(INDEX_BAR_KEY);
if (!parent) {