Merge pull request !722 from lihong/master
This commit is contained in:
openharmony_ci
2022-06-09 06:12:04 +00:00
committed by Gitee
4 changed files with 8 additions and 10 deletions
@@ -94,9 +94,7 @@ struct CustomContainerUser {
}
`
exports.expectResult =
`"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TestComponent_1 = require("./test/pages/TestComponent");
`import { CustomContainerExport } from './test/pages/TestComponent';
class CustomContainer extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
@@ -193,7 +191,7 @@ class CustomContainerUser extends View {
Column.create();
let earlierCreatedChild_2 = this.findChildById("2");
if (earlierCreatedChild_2 == undefined) {
View.create(new TestComponent_1.CustomContainerExport("2", this, {
View.create(new CustomContainerExport("2", this, {
header: this.text,
closer: () => {
Column.create();
@@ -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.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}
@@ -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.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}
@@ -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.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}