注释掉 InspectorSidebar 中的 LayoutEditor 组件以暂时禁用布局编辑功能

This commit is contained in:
2026-09-14 10:16:07 +08:00
parent 43ac9a5761
commit a8f2ac17be
@@ -284,7 +284,7 @@ function NodeInspector({
onMetadataChange,
highlightedStatusField,
onTransformChange,
onLayoutChange,
// onLayoutChange,
sprites,
previewUrls,
fonts,
@@ -483,11 +483,11 @@ function NodeInspector({
readOnly={transformReadOnly || isReadOnly}
onChange={onTransformChange}
/>
<LayoutEditor
node={node}
readOnly={isReadOnly}
onChange={onLayoutChange}
/>
{/*<LayoutEditor*/}
{/* node={node}*/}
{/* readOnly={isReadOnly}*/}
{/* onChange={onLayoutChange}*/}
{/*/>*/}
<ComponentPanel
key={node.id}
component={node.component}
@@ -511,6 +511,7 @@ function NodeInspector({
);
}
// eslint-disable-next-line unused-imports/no-unused-vars
function LayoutEditor({
node,
readOnly,