mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 12:14:27 +08:00
feat(editor): 页面片容器内的组件不允许选中
This commit is contained in:
parent
7799a5da61
commit
ded24c8b4f
@ -126,7 +126,7 @@ export const defaultEditorProps = {
|
||||
eventMethodList: () => ({}),
|
||||
datasourceValues: () => ({}),
|
||||
datasourceConfigs: () => ({}),
|
||||
canSelect: (el: HTMLElement) => Boolean(getIdFromEl()(el)),
|
||||
canSelect: (el: HTMLElement) => Boolean(getIdFromEl()(el) && !el.dataset.tmagicPageFragmentContainerId),
|
||||
isContainer: (el: HTMLElement) => el.classList.contains('magic-ui-container'),
|
||||
codeOptions: () => ({}),
|
||||
customContentMenu: (menus: (MenuButton | MenuComponent)[]) => menus,
|
||||
|
Loading…
x
Reference in New Issue
Block a user