mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
fixed ed6d4aa from https://gitee.com/yfwang6/developtools_ace-ets2bundle/pulls/1044
fixed 74fcfa4 from https://gitee.com/yfwang6/developtools_ace-ets2bundle/pulls/1033
wangyongfei6@huawei.com
ut for @watch do not work issue
Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: I552c9c470010c8d40d7102f6f1f216fce9261d3e
This commit is contained in:
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.__varA = AppStorage.SetAndLink('varA', 2, this, "varA");
|
||||
this.__lang = AppStorage.SetAndProp('languageCode', 'en', this, "lang");
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.__varA = AppStorage.SetAndLink('varA', 2, this, "varA");
|
||||
this.__lang = AppStorage.SetAndProp('languageCode', 'en', this, "lang");
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.__varA = AppStorage.SetAndLink('varA', 2, this, "varA");
|
||||
this.__lang = AppStorage.SetAndProp('languageCode', 'en', this, "lang");
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
@@ -72,9 +72,9 @@ exports.expectResult =
|
||||
this.__totalPurchase = new ObservedPropertySimple(0, this, "totalPurchase");
|
||||
this.__defArray = new ObservedPropertyObject(['c', 'g', 't', 'z'], this, "defArray");
|
||||
this.__resultTip = new ObservedPropertySimple('', this, "resultTip");
|
||||
this.updateWithValueParams(params);
|
||||
this.declareWatch("shopBasket", this.onBasketUpdated);
|
||||
this.declareWatch("defArray", this.onPutItem);
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
updateWithValueParams(params) {
|
||||
if (params.shopBasket !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user