移除样式设置组件的条件渲染,改为始终渲染但控制显示隐藏
This commit is contained in:
@@ -721,12 +721,12 @@ const Toolbar: React.FC<ToolbarProps> = ({
|
||||
</div>
|
||||
{showPropertyPanel && <PropertyPanel {...getFeatureProperties()} />}
|
||||
{showDrawPanel && map && <DrawPanel />}
|
||||
{showStyleEditor && (
|
||||
<div style={{ display: showStyleEditor ? "block" : "none" }}>
|
||||
<StyleEditorPanel
|
||||
layerStyleStates={layerStyleStates}
|
||||
setLayerStyleStates={setLayerStyleStates}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
{showHistoryPanel &&
|
||||
(HistoryPanel ? (
|
||||
<HistoryPanel
|
||||
|
||||
Reference in New Issue
Block a user