tabs代码:
<Tabs tabs={tabs}
initialPage={0}
onChange={(tab, index) => this.onChangeTab(tab, index)}
onTabClick={(tab, index) => this.onClickTab(tab, index)}
>
<div style={{ height: '560px', backgroundColor: '#fff' }}>
<Unaudited />
</div>
<div style={{ height: '560px', backgroundColor: '#fff' }}>
<Through />
</div>
<div style={{ height: '560px', backgroundColor: '#fff' }}>
<NotThrough />
</div>
</Tabs>
每个标签内容都用组件导入,进入tab页面时,只请求了前两个标签的内容,第三个没有加载到,这是什么问题??
还有个问题,切换标签时,标签所对应的组件是否每次都可以重新渲染?
各位老铁帮忙看下~_~
我前几天遇到过这个问题 它有个一个属性prerenderingSiblingsNumber 预加载两侧Tab数量 默认值为1