Skip to content

Commit

Permalink
fix(comp:table): scroll classes is determined by scroll overflowed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jan 8, 2024
1 parent f9394f8 commit dfbaec7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/table/src/main/MainTable.tsx
Expand Up @@ -75,6 +75,8 @@ export default defineComponent({
pingedEnd,
scrollWidth,
scrollHeight,
scrollHorizontalOverflowed,
scrollVerticalOverflowed,
hasFixed,
tableLayout,
} = inject(TABLE_TOKEN)!
Expand Down Expand Up @@ -140,8 +142,8 @@ export default defineComponent({
[`${prefixCls}-fixed-layout`]: tableLayout.value === 'fixed',
[`${prefixCls}-fixed-column`]: hasFixed.value,
[`${prefixCls}-inset-shadow`]: mergedInsetShadow.value,
[`${prefixCls}-scroll-horizontal`]: scrollWidth.value,
[`${prefixCls}-scroll-vertical`]: scrollHeight.value,
[`${prefixCls}-scroll-horizontal`]: scrollHorizontalOverflowed.value,
[`${prefixCls}-scroll-vertical`]: scrollVerticalOverflowed.value,
})
})

Expand Down

0 comments on commit dfbaec7

Please sign in to comment.