fix:修复禁用属性绑定错误的问题

This commit is contained in:
lhj
2024-11-17 19:41:06 +08:00
parent 192ae66997
commit f25b03fff5

View File

@ -78,7 +78,7 @@ let componentsList = [];
const store = useSchemeStore(); const store = useSchemeStore();
watch(store, (n) => { watch(store, (n) => {
// console.log("store发生了变化", n); console.log("store发生了变化", n);
}); });
const baseScheme = { const baseScheme = {
@ -153,7 +153,7 @@ function clone(element: Record<'name' | 'id' | 'type' | 'props' | 'class' | 'tex
style: element.style, style: element.style,
visible: element.visible, visible: element.visible,
slots: element.slots, slots: element.slots,
disable: element.visible, disable: element.disable,
events: {}, events: {},
loop: {}, loop: {},
body: element.body, body: element.body,
@ -165,6 +165,7 @@ function clone(element: Record<'name' | 'id' | 'type' | 'props' | 'class' | 'tex
footer:element.footer, footer:element.footer,
meta:element.meta, meta:element.meta,
}; };
} }
const onPreViewAdd = (event: DraggableEvent) => { const onPreViewAdd = (event: DraggableEvent) => {
@ -285,6 +286,7 @@ const view = () => {
.ghost { .ghost {
background-color: #f2f3f5 !important; background-color: #f2f3f5 !important;
} }
overflow-y: auto;
} }
.right { .right {