refactor(components): [table] fix typo (#9338)

This commit is contained in:
LIUCHAO
2022-08-16 20:35:49 +08:00
committed by GitHub
parent b77426adcb
commit 2eee7f0e22

View File

@@ -112,7 +112,7 @@ function useStyle<T>(
layout.updateElsHeight()
}
layout.updateColumnsWidth()
requestAnimationFrame(syncPostion)
requestAnimationFrame(syncPosition)
}
onMounted(async () => {
await nextTick()
@@ -163,7 +163,7 @@ function useStyle<T>(
const { tableWrapper } = table.refs
return !!(tableWrapper && tableWrapper.classList.contains(className))
}
const syncPostion = function () {
const syncPosition = function () {
if (!table.refs.scrollBarRef) return
if (!layout.scrollX.value) {
const scrollingNoneClass = 'is-scrolling-none'
@@ -191,7 +191,7 @@ function useStyle<T>(
const bindEvents = () => {
if (!table.refs.scrollBarRef) return
if (table.refs.scrollBarRef.wrap$) {
useEventListener(table.refs.scrollBarRef.wrap$, 'scroll', syncPostion, {
useEventListener(table.refs.scrollBarRef.wrap$, 'scroll', syncPosition, {
passive: true,
})
}