Optimize the rendering logic for the Collapse and Tabs child components(#101)

This commit is contained in:
liao文禧
2024-05-13 11:14:51 +08:00
parent 0d39919889
commit 2695e5b8a2
8 changed files with 27 additions and 21 deletions

View File

@@ -144,6 +144,8 @@ export default function TableInfo({ data }) {
>
<Collapse
activeKey={indexActiveKey}
keepDOM
lazyRender
onChange={(itemKey) => setIndexActiveKey(itemKey)}
accordion
>
@@ -169,7 +171,7 @@ export default function TableInfo({ data }) {
style={{ marginTop: "12px", marginBottom: "12px" }}
headerLine={false}
>
<Collapse>
<Collapse keepDOM lazyRender>
<Collapse.Panel header="Comment" itemKey="1">
<TextArea
field="comment"