项目场景:
- Antd V4版 网页端
问题描述:
- 使用Table树形
- 使用Card onTabChange 切换tab,有时候数据渲染不出的问题
const paginationProps = {Current: currentNumber,size: 'small',pageSize,total,onChange: (PageNumber) => this.getList(PageNumber),showTotal: total => `共有 ${total || 0} 条`};<TreeListloading={loadingTree}paginationProps={paginationPropsTree}data={dataTree}currentBatch={currentBatch}handleBatchVisible={this.handleBatchVisible}remove={this.remove}getBatchDetails={this.getBatchDetails}/>
解决方案:
Current与current大小写
修改为:
const paginationProps = {current: currentNumber,size: 'small',pageSize,total,onChange: (PageNumber) => this.getList(PageNumber),showTotal: total => `共有 ${total || 0} 条`};