DTStack / dt-react-component

React UI component library based on antd package
https://dtstack.github.io/dt-react-component/
MIT License
82 stars 36 forks source link

useList 的 clearData 不应该重置 total 属性 #460

Open mortalYoung opened 4 months ago

mortalYoung commented 4 months ago

在切换分页的时候,重置 total 属性会导致 Pagination 组件的分页发生抖动

2024-04-26 01-05-24 2024-04-26 01_05_50

https://github.com/DTStack/dt-react-component/blob/d01a7b1c6e57d603f93c18e6df32a2704b9e1c2c/src/useList/index.ts#L64-L68