mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
types: improve ref typing (#8182)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user