table icon indicating copy to clipboard operation
table copied to clipboard

设置 `bordered: false` 当数据为空时,空内容下仍有一条线

Open nnecec opened this issue 3 years ago • 0 comments

image

看了下 样式是把空内容也放到了一个 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>
      );

nnecec avatar Aug 31 '21 02:08 nnecec