antd pro中pro table 特殊用法

424 阅读1分钟

antd pro中如何自由添加合计行,最小化改动

主要是运用 antd table 的summary 属性进行配置即可

<ProTable<API.RuleListItem, API.PageParams>
        actionRef={actionRef}
        formRef={formRef}
        summary={() => getSumRow()} 
  />