react-component / react-component/table
设置 `bordered: false` 当数据为空时,空内容下仍有一条线
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description

看了下 样式是把空内容也放到了一个 td 里,是否应该 emptyplaceholder 放在 table 外部?
if (data.length) {
// ...
} else {
rows = (
<ExpandedRow
expanded
className={`${prefixCls}-placeholder`}
prefixCls={prefixCls}
fixHeader={fixHeader}
fixColumn={horizonScroll}
horizonScroll={horizonScroll}
component={trComponent}
componentWidth={componentWidth}
cellComponent={tdComponent}
colSpan={flattenColumns.length}
>
{emptyNode}
</ExpandedRow>
);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the empty-data branch shown in the issue, where ExpandedRow renders emptyNode with the table placeholder class. Reproduce the case with bordered set to false and no data, then verify that the empty table content no longer leaves a line; the payload names no file or test to start from.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100