Ant Design

Table of Contents

1 FAQ

1.1 表格内嵌表格,无数据时不显示 icon

function expandIcon({ expanded, expandable, record, onExpand }) {
  if (!expandable || record.canExpanded === false) return null;

  return (
    <a onClick={e => onExpand(record, e)}>
      {expanded ? <Icon type="minus-square" /> : <Icon type="plus-square" />}
    </a>
    );
}

https://codesandbox.io/s/8x2j898pp2

Date: 2019-12-10 18:01:01

Author: JerryZhang