注释掉 InspectorSidebar 中的 LayoutEditor 组件以暂时禁用布局编辑功能
This commit is contained in:
+7
-6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user