mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 17:57:13 +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() {
|
||||
this._items.forEach(item => isSettingField(item) && item.purge());
|
||||
this._items.forEach((item) => isSettingField(item) && item.purge());
|
||||
this._items = [];
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
||||
}
|
||||
|
||||
getItems(filter?: (item: SettingField | CustomView) => boolean): Array<SettingField | CustomView> {
|
||||
return this._items.filter(item => {
|
||||
return this._items.filter((item) => {
|
||||
if (filter) {
|
||||
return filter(item);
|
||||
}
|
||||
@ -189,6 +189,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
||||
const oldValue = this.getValue();
|
||||
this.setValue({
|
||||
type: 'JSExpression',
|
||||
...oldValue,
|
||||
value: oldValue.value,
|
||||
mock: value,
|
||||
}, false, false, options);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user