alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
6.98k stars 988 forks source link

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

Closed LittleZhaoLearnsFromTheFront closed 2 weeks ago

LittleZhaoLearnsFromTheFront commented 10 months ago

关于Collapse的源代码为 `<Collapse className='fr-obj-collapse' style={style} bordered={bordered} ghost={ghost} activeKey={[activeKey]} expandIcon={renderExpandIcon} onChange={() => setActiveKey(activeKey ? '' : 'single')}

{children}

`

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

lhbxs commented 10 months ago

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

lhbxs commented 2 weeks ago

同类型问题 https://github.com/alibaba/x-render/issues/1393