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

@@ -75,7 +75,7 @@ export default createComponent({
setup(props, { emit, slots }) {
const root = ref<HTMLElement>();
const activeAnchor = ref();
const activeAnchor = ref('');
const touch = useTouch();
const scrollParent = useScrollParent(root);