mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
fix(editor): loss of state in ComponentList caused by tab switching
This commit is contained in:
parent
474ef8a28c
commit
3d999a655b
@ -228,9 +228,10 @@ export const Editor: React.FC<Props> = observer(
|
|||||||
height="100%"
|
height="100%"
|
||||||
display="flex"
|
display="flex"
|
||||||
flexDirection="column"
|
flexDirection="column"
|
||||||
|
lazyBehavior="keepMounted"
|
||||||
|
isLazy
|
||||||
index={toolMenuTab}
|
index={toolMenuTab}
|
||||||
onChange={onRightTabChange}
|
onChange={onRightTabChange}
|
||||||
isLazy
|
|
||||||
>
|
>
|
||||||
<TabList background="gray.50">
|
<TabList background="gray.50">
|
||||||
<Tab>Inspect</Tab>
|
<Tab>Inspect</Tab>
|
||||||
|
Loading…
Reference in New Issue
Block a user