fix:ScrollPane组件bug

This commit is contained in:
不做码农
2022-11-23 15:58:14 +08:00
parent 53acd164aa
commit 7a10686a32
@@ -10,7 +10,7 @@ import useTagsViewStore from '@/store/modules/tagsView'
const tagAndTagSpacing = ref(4) const tagAndTagSpacing = ref(4)
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const scrollWrapper = computed(() => proxy.$refs.scrollContainer.$refs.wrap$) const scrollWrapper = computed(() => proxy.$refs.scrollContainer.$refs.wrapRef)
onMounted(() => { onMounted(() => {
scrollWrapper.value.addEventListener('scroll', emitScroll, true) scrollWrapper.value.addEventListener('scroll', emitScroll, true)
@@ -80,7 +80,7 @@ function moveToTarget(currentTag) {
} }
defineExpose({ defineExpose({
moveToTarget, moveToTarget
}) })
</script> </script>