mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Optimize the rendering logic for the Collapse and Tabs child components(#101)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user