fix:ScrollPane组件bug
This commit is contained in:
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>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user