From c2605bb4f680bc3abfa48a2a7fcec1e55172dda6 Mon Sep 17 00:00:00 2001 From: "mario.gk" Date: Mon, 1 Jun 2020 19:58:51 +0800 Subject: [PATCH] =?UTF-8?q?hotvalue=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/designer/setting/setting-field.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/designer/src/designer/setting/setting-field.ts b/packages/designer/src/designer/setting/setting-field.ts index 7bc53370a..152f09c54 100644 --- a/packages/designer/src/designer/setting/setting-field.ts +++ b/packages/designer/src/designer/setting/setting-field.ts @@ -88,8 +88,13 @@ export class SettingField extends SettingPropEntry implements SettingEntry { this.disposeItems(); } + private hotValue: any; + // ======= compatibles for vision ====== getHotValue(): any { + if (this.hotValue) { + return this.hotValue; + } // avoid View modify let v = cloneDeep(this.getMockOrValue()); if (v == null) { @@ -99,6 +104,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry { } setHotValue(data: any) { + this.hotValue = data; const v = this.transducer.toNative(data); if (this.isUseVariable()) { const ov = this.getValue();