mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-21 21:12:37 +00:00
fix: 🐛 修复JSExpression自定义扩展属性被覆盖的问题
This commit is contained in:
parent
93f7de0309
commit
48b0f6120e
@ -108,7 +108,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private disposeItems() {
|
private disposeItems() {
|
||||||
this._items.forEach(item => isSettingField(item) && item.purge());
|
this._items.forEach((item) => isSettingField(item) && item.purge());
|
||||||
this._items = [];
|
this._items = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getItems(filter?: (item: SettingField | CustomView) => boolean): Array<SettingField | CustomView> {
|
getItems(filter?: (item: SettingField | CustomView) => boolean): Array<SettingField | CustomView> {
|
||||||
return this._items.filter(item => {
|
return this._items.filter((item) => {
|
||||||
if (filter) {
|
if (filter) {
|
||||||
return filter(item);
|
return filter(item);
|
||||||
}
|
}
|
||||||
@ -189,6 +189,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
const oldValue = this.getValue();
|
const oldValue = this.getValue();
|
||||||
this.setValue({
|
this.setValue({
|
||||||
type: 'JSExpression',
|
type: 'JSExpression',
|
||||||
|
...oldValue,
|
||||||
value: oldValue.value,
|
value: oldValue.value,
|
||||||
mock: value,
|
mock: value,
|
||||||
}, false, false, options);
|
}, false, false, options);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user