mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 02:47:12 +00:00
hotvalue 暂存
This commit is contained in:
parent
66d0bb06e9
commit
c2605bb4f6
@ -88,8 +88,13 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
this.disposeItems();
|
this.disposeItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private hotValue: any;
|
||||||
|
|
||||||
// ======= compatibles for vision ======
|
// ======= compatibles for vision ======
|
||||||
getHotValue(): any {
|
getHotValue(): any {
|
||||||
|
if (this.hotValue) {
|
||||||
|
return this.hotValue;
|
||||||
|
}
|
||||||
// avoid View modify
|
// avoid View modify
|
||||||
let v = cloneDeep(this.getMockOrValue());
|
let v = cloneDeep(this.getMockOrValue());
|
||||||
if (v == null) {
|
if (v == null) {
|
||||||
@ -99,6 +104,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setHotValue(data: any) {
|
setHotValue(data: any) {
|
||||||
|
this.hotValue = data;
|
||||||
const v = this.transducer.toNative(data);
|
const v = this.transducer.toNative(data);
|
||||||
if (this.isUseVariable()) {
|
if (this.isUseVariable()) {
|
||||||
const ov = this.getValue();
|
const ov = this.getValue();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user