Skip to content

Commit

Permalink
fix(table): 修复空状态下设置边框左边框不显示问题 (#3082) (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare authored Jan 17, 2025
1 parent a8a4a7e commit 28dfa39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/sour-impalas-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hi-ui/table": patch
"@hi-ui/hiui": patch
---

fix(table): 修复空状态下设置边框左边框不显示问题 (#3082)
4 changes: 3 additions & 1 deletion packages/ui/table/src/BaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ export const BaseTable = forwardRef<HTMLDivElement | null, BaseTableProps>(
prefixCls,
className,
hasBorder && `${prefixCls}--bordered`,
(hasScrollToLeft || hasLeftFixedColumns) && `${prefixCls}--bordered-left-none`,
(hasScrollToLeft || hasLeftFixedColumns) &&
data.length > 0 &&
`${prefixCls}--bordered-left-none`,
striped && `${prefixCls}--striped`,
size && `${prefixCls}--size-${size}`,
virtual && `${prefixCls}--virtual`
Expand Down

0 comments on commit 28dfa39

Please sign in to comment.