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