Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有很多个Collapse,渲染起来很卡 #1432

Open
LittleZhaoLearnsFromTheFront opened this issue Nov 2, 2023 · 1 comment
Open

有很多个Collapse,渲染起来很卡 #1432

LittleZhaoLearnsFromTheFront opened this issue Nov 2, 2023 · 1 comment
Assignees

Comments

@LittleZhaoLearnsFromTheFront

关于Collapse的源代码为
<Collapse className='fr-obj-collapse' style={style} bordered={bordered} ghost={ghost} activeKey={[activeKey]} expandIcon={renderExpandIcon} onChange={() => setActiveKey(activeKey ? '' : 'single')} > <Panel key='single' header={collapseHeader} forceRender={true}> {children} </Panel> </Collapse>

其中forceRender={true} 将所有Collapse中的内容一起渲染,如果Collapse多了渲染起来就会很卡

@lhbxs
Copy link
Collaborator

lhbxs commented Nov 13, 2023

可能还是要提供一个 demo,我这边试了每一个 collapse 30 input、然后 list 长度 10,还是直出的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants