2021
04-07
04-07
React antd tabs切换造成子组件重复刷新
描述:Tabs组件在来回切换的过程中,造成TabPane中包含的相同子组件重复渲染,例如:<TabsactiveKey={tabActiveKey}onChange={(key:string)=>this.changeTab(key)}type="card"><TabPanetab={"对外授权"}key="/authed-by-me"><AuthedCollectionscollectionType={this.collectionType}/></TabPane><TabPanetab={"申请权限"}key="/authed-to-me"><AuthedCollectionscollectionType={this....
继续阅读 >