mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
Merge commit 'bf2b359b44dc6aa331f424d6497a9597842f3c3c' into def_releases_202111221049066_ali-lowcode_ali-lowcode-engine/1.0.73
This commit is contained in:
commit
4befcf9ea1
@ -234,7 +234,6 @@ export class Prop implements IPropParent {
|
||||
@action
|
||||
setValue(val: CompositeValue) {
|
||||
if (val === this._value) return;
|
||||
this.dispose();
|
||||
const editor = this.owner.document?.designer.editor;
|
||||
const oldValue = this._value;
|
||||
this._value = val;
|
||||
@ -263,6 +262,8 @@ export class Prop implements IPropParent {
|
||||
};
|
||||
}
|
||||
|
||||
this.dispose();
|
||||
|
||||
if (oldValue !== this._value) {
|
||||
const propsInfo = {
|
||||
key: this.key,
|
||||
@ -450,7 +451,7 @@ export class Prop implements IPropParent {
|
||||
}
|
||||
|
||||
if (createIfNone) {
|
||||
prop = new Prop(this, UNSET, entry);
|
||||
prop = new Prop(this, nest ? {} : UNSET, entry);
|
||||
this.set(entry, prop, true);
|
||||
if (nest) {
|
||||
return prop.get(nest, true);
|
||||
|
||||
@ -202,7 +202,7 @@ export class Props implements IPropParent {
|
||||
|
||||
let prop = this.maps.get(entry);
|
||||
if (!prop && createIfNone) {
|
||||
prop = new Prop(this, UNSET, entry);
|
||||
prop = new Prop(this, nest ? {} : UNSET, entry);
|
||||
this.items.push(prop);
|
||||
}
|
||||
|
||||
|
||||
@ -79,7 +79,6 @@ Object {
|
||||
"__slot__extraContent": false,
|
||||
"__slot__logo": false,
|
||||
"__slot__tab": false,
|
||||
"__style__": Object {},
|
||||
"action": "",
|
||||
"content": "",
|
||||
"crumb": "",
|
||||
@ -95,7 +94,6 @@ Object {
|
||||
"condition": true,
|
||||
"id": "node_k1ow3cbf",
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"behavior": "NORMAL",
|
||||
"content": Object {
|
||||
"en_US": "Title",
|
||||
@ -144,7 +142,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -177,7 +174,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -222,7 +219,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -255,7 +251,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -296,7 +292,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -329,7 +324,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -369,7 +364,6 @@ Object {
|
||||
"id": "node_k1ow3cbx",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"colSpan": "",
|
||||
"fieldId": "column_k1p1bnjm",
|
||||
},
|
||||
@ -386,7 +380,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -419,7 +412,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -460,7 +453,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"autoWidth": true,
|
||||
"behavior": "NORMAL",
|
||||
@ -509,7 +501,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -553,7 +545,6 @@ Object {
|
||||
"id": "node_k1ow3cby",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"colSpan": "",
|
||||
"fieldId": "column_k1p1bnjn",
|
||||
},
|
||||
@ -567,7 +558,6 @@ Object {
|
||||
"id": "node_k1ow3cbw",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"columnGap": "20",
|
||||
"fieldId": "columns_k1ow3h1v",
|
||||
"layout": "6:6",
|
||||
@ -638,7 +628,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -671,7 +660,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -716,7 +705,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -749,7 +737,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -789,7 +777,6 @@ Object {
|
||||
"id": "node_k1ow3cc6",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"colSpan": "",
|
||||
"fieldId": "column_k1p1bnjo",
|
||||
},
|
||||
@ -806,7 +793,6 @@ Object {
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__category__": "form",
|
||||
"__style__": Object {},
|
||||
"__useMediator": "value",
|
||||
"addonAfter": Object {
|
||||
"type": "i18n",
|
||||
@ -839,7 +825,7 @@ Object {
|
||||
"labelTextAlign": "right",
|
||||
"labelTipsIcon": "",
|
||||
"labelTipsText": Object {
|
||||
"en_US": null,
|
||||
"en_US": "",
|
||||
"type": "i18n",
|
||||
"use": "zh_CN",
|
||||
"zh_CN": "",
|
||||
@ -879,7 +865,6 @@ Object {
|
||||
"id": "node_k1ow3cc7",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"colSpan": "",
|
||||
"fieldId": "column_k1p1bnjp",
|
||||
},
|
||||
@ -893,7 +878,6 @@ Object {
|
||||
"id": "node_k1ow3cc5",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"columnGap": "20",
|
||||
"fieldId": "columns_k1ow3h22",
|
||||
"layout": "6:6",
|
||||
@ -1022,7 +1006,6 @@ Object {
|
||||
"value": Array [
|
||||
Object {
|
||||
"componentName": "Text",
|
||||
"props": Object {},
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -1052,7 +1035,6 @@ Object {
|
||||
"behavior": "NORMAL",
|
||||
"className": "div_kgaqfbm9",
|
||||
"customClassName": "",
|
||||
"events": Object {},
|
||||
"fieldId": "div_k1ow3h1o",
|
||||
"useFieldIdAsDomId": false,
|
||||
},
|
||||
@ -1067,7 +1049,6 @@ Object {
|
||||
"id": "form",
|
||||
"isLocked": false,
|
||||
"props": Object {
|
||||
"__style__": Object {},
|
||||
"autoUnmount": true,
|
||||
"autoValidate": true,
|
||||
"behavior": "NORMAL",
|
||||
@ -1076,7 +1057,6 @@ Object {
|
||||
"variable": "state.formData",
|
||||
},
|
||||
"fieldId": "form",
|
||||
"fieldOptions": Object {},
|
||||
"labelAlign": "top",
|
||||
"obj": Object {
|
||||
"a": 1,
|
||||
@ -1137,7 +1117,6 @@ Object {
|
||||
"globalConfig": Object {
|
||||
"fit": Object {
|
||||
"compiled": "",
|
||||
"error": Object {},
|
||||
"source": "",
|
||||
"type": "js",
|
||||
},
|
||||
@ -1196,7 +1175,6 @@ Object.keys(module.exports).forEach(function(item) {
|
||||
},
|
||||
"props": Object {
|
||||
"className": "page_kgaqfbm4",
|
||||
"containerStyle": Object {},
|
||||
"extensions": Object {
|
||||
"启用页头": true,
|
||||
},
|
||||
|
||||
@ -75,7 +75,7 @@ describe('NodeChildren 方法测试', () => {
|
||||
expect(children.size).toBe(1);
|
||||
expect(children.length).toBe(1);
|
||||
|
||||
children.splice(0, 0, { componentName: 'Button' });
|
||||
children.splice(0, 0, doc.createNode({ componentName: 'Button' }));
|
||||
expect(children.size).toBe(2);
|
||||
expect(children.length).toBe(2);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user