mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 修复在大纲树中 lock 功能的自动开启错误
This commit is contained in:
parent
643babe5bd
commit
8fd797d487
@ -1,6 +1,6 @@
|
||||
import { Component, KeyboardEvent, FocusEvent, Fragment } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { observer, Title, Tip, globalContext, Editor } from '@ali/lowcode-editor-core';
|
||||
import { observer, Title, Tip, globalContext, Editor, engineConfig } from '@ali/lowcode-editor-core';
|
||||
import { createIcon } from '@ali/lowcode-utils';
|
||||
|
||||
import { IconArrowRight } from '../icons/arrow-right';
|
||||
@ -168,7 +168,7 @@ export default class TreeTitle extends Component<{
|
||||
)}
|
||||
</div>
|
||||
{isCNode && isNodeParent && !isModal && <HideBtn treeNode={treeNode} />}
|
||||
{isContainer && isCNode && isNodeParent && <LockBtn treeNode={treeNode} />}
|
||||
{engineConfig.get('enableCanvasLock', false) && isContainer && isCNode && isNodeParent && <LockBtn treeNode={treeNode} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user