mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-12-04 07:22:30 +00:00
finish ut for partial update Signed-off-by: s00912778 <shijiakai2@huawei.com> Change-Id: I11ee846971143d81ff47748dff22479df3e56400
This commit is contained in:
parent
d641da162f
commit
085ad246de
@ -2,7 +2,7 @@
|
||||
if (!("finalizeConstruction" in ViewPU.prototype)) {
|
||||
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
||||
}
|
||||
class HomeComponent extends ViewPU {
|
||||
class RecycleHomeComponent extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -60,11 +60,11 @@ class HomeComponent extends ViewPU {
|
||||
__Recycle__.create();
|
||||
}, __Recycle__);
|
||||
{
|
||||
this.observeRecycleComponentCreation("child", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
this.observeRecycleComponentCreation("RecycleChild", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle.ets", line: 8, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "child", () => {
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle.ets", line: 8, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "RecycleChild", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
}
|
||||
@ -105,10 +105,10 @@ class HomeComponent extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
static getEntryName() {
|
||||
return "HomeComponent";
|
||||
return "RecycleHomeComponent";
|
||||
}
|
||||
}
|
||||
class child extends ViewPU {
|
||||
class RecycleChild extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -212,11 +212,11 @@ class child extends ViewPU {
|
||||
__Recycle__.create();
|
||||
}, __Recycle__);
|
||||
{
|
||||
this.observeRecycleComponentCreation("AnimationTest", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
this.observeRecycleComponentCreation("RecycleAnimationTest", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new AnimationTest(this, {}, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle.ets", line: 32, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "AnimationTest", () => {
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleAnimationTest(this, {}, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle.ets", line: 32, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "RecycleAnimationTest", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
}
|
||||
@ -394,7 +394,7 @@ class child extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
}
|
||||
class NormalComponent extends ViewPU {
|
||||
class RecycleNormalComponent extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -441,7 +441,7 @@ class NormalComponent extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
}
|
||||
class AnimationTest extends ViewPU {
|
||||
class RecycleAnimationTest extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -493,5 +493,5 @@ class AnimationTest extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
}
|
||||
registerNamedRoute(() => new HomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle", integratedHsp: "false" });
|
||||
registerNamedRoute(() => new RecycleHomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle", integratedHsp: "false" });
|
||||
//# sourceMappingURL=recycle.js.map
|
@ -2,7 +2,7 @@
|
||||
if (!("finalizeConstruction" in ViewPU.prototype)) {
|
||||
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
||||
}
|
||||
class HomeComponent extends ViewPU {
|
||||
class RecycleFuncArrHomeComponent extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -41,11 +41,11 @@ class HomeComponent extends ViewPU {
|
||||
__Recycle__.create();
|
||||
}, __Recycle__);
|
||||
{
|
||||
this.observeRecycleComponentCreation("child", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
this.observeRecycleComponentCreation("RecycleFuncArrChild", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array.ets", line: 7, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "child", () => {
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleFuncArrChild(this, { propvalue: this.value, linkvalue: this.value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array.ets", line: 7, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "RecycleFuncArrChild", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
}
|
||||
@ -77,10 +77,10 @@ class HomeComponent extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
static getEntryName() {
|
||||
return "HomeComponent";
|
||||
return "RecycleFuncArrHomeComponent";
|
||||
}
|
||||
}
|
||||
class child extends ViewPU {
|
||||
class RecycleFuncArrChild extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -151,5 +151,5 @@ class child extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
}
|
||||
registerNamedRoute(() => new HomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array", integratedHsp: "false" });
|
||||
registerNamedRoute(() => new RecycleFuncArrHomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_function_array", integratedHsp: "false" });
|
||||
//# sourceMappingURL=recycle_function_array.js.map
|
@ -3,7 +3,7 @@ if (!("finalizeConstruction" in ViewPU.prototype)) {
|
||||
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
||||
}
|
||||
let a = "aaaaaaaaaa";
|
||||
class HomeComponent extends ViewPU {
|
||||
class RecycleReuseIdHomeComponent extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -62,7 +62,7 @@ class HomeComponent extends ViewPU {
|
||||
this.observeRecycleComponentCreation("reuse_key", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 9, col: 7 });
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleReuseIdChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 9, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "reuse_key", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
@ -103,7 +103,7 @@ class HomeComponent extends ViewPU {
|
||||
this.observeRecycleComponentCreation(this.state_value, (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 13, col: 7 });
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleReuseIdChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 13, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, this.state_value, () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
@ -140,7 +140,7 @@ class HomeComponent extends ViewPU {
|
||||
this.observeRecycleComponentCreation("reuse_key11111111111", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 16, col: 7 });
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleReuseIdChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 16, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "reuse_key11111111111", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
@ -178,11 +178,11 @@ class HomeComponent extends ViewPU {
|
||||
__Recycle__.create();
|
||||
}, __Recycle__);
|
||||
{
|
||||
this.observeRecycleComponentCreation("child", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
this.observeRecycleComponentCreation("RecycleReuseIdChild", (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 18, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "child", () => {
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleReuseIdChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 18, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, "RecycleReuseIdChild", () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
}
|
||||
@ -218,7 +218,7 @@ class HomeComponent extends ViewPU {
|
||||
this.observeRecycleComponentCreation(a, (elmtId, isInitialRender, recycleNode = null) => {
|
||||
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
|
||||
if (isInitialRender) {
|
||||
let componentCall = recycleNode ? recycleNode : new child(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 21, col: 7 });
|
||||
let componentCall = recycleNode ? recycleNode : new RecycleReuseIdChild(this, { propvalue: this.value, linkvalue: this.__value }, undefined, elmtId, () => { }, { page: "test/transform_ut/application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId.ets", line: 21, col: 7 });
|
||||
ViewPU.createRecycle(componentCall, recycleNode !== null, a, () => {
|
||||
if (recycleNode && typeof recycleNode.aboutToReuseInternal === "function") {
|
||||
recycleNode.aboutToReuseInternal();
|
||||
@ -253,10 +253,10 @@ class HomeComponent extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
static getEntryName() {
|
||||
return "HomeComponent";
|
||||
return "RecycleReuseIdHomeComponent";
|
||||
}
|
||||
}
|
||||
class child extends ViewPU {
|
||||
class RecycleReuseIdChild extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
if (typeof paramsLambda === "function") {
|
||||
@ -308,5 +308,5 @@ class child extends ViewPU {
|
||||
this.updateDirtyElements();
|
||||
}
|
||||
}
|
||||
registerNamedRoute(() => new HomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId", integratedHsp: "false" });
|
||||
registerNamedRoute(() => new RecycleReuseIdHomeComponent(undefined, {}), "", { bundleName: "com.example.application", moduleName: "application", pagePath: "pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId", pageFullPath: "application/entry/src/main/ets/pages/utForPartialUpdate/render_decorator/@recycle/recycle_reuseId", integratedHsp: "false" });
|
||||
//# sourceMappingURL=recycle_reuseId.js.map
|
@ -3,7 +3,7 @@ if (!("finalizeConstruction" in ViewPU.prototype)) {
|
||||
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
||||
}
|
||||
let storage = LocalStorage.GetShared();
|
||||
class ClassA {
|
||||
class LocalStorageClassA {
|
||||
constructor(a) {
|
||||
this.id = 1;
|
||||
this.type = 2;
|
||||
@ -15,7 +15,7 @@ class LocalStorageComponent extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
this.__simpleVarName = this.createLocalStorageLink("storageSimpleProp", 0, "simpleVarName");
|
||||
this.__objectName = this.createLocalStorageProp("storageObjectProp", new ClassA("x"), "objectName");
|
||||
this.__objectName = this.createLocalStorageProp("storageObjectProp", new LocalStorageClassA("x"), "objectName");
|
||||
if (typeof paramsLambda === "function") {
|
||||
this.paramsGenerator_ = paramsLambda;
|
||||
}
|
||||
|
@ -9,23 +9,23 @@ if (!("finalizeConstruction" in ViewPU.prototype)) {
|
||||
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
||||
}
|
||||
let NextID = 0;
|
||||
let ClassA = class ClassA {
|
||||
let ObservedObjectLinkClassA = class ObservedObjectLinkClassA {
|
||||
constructor(c) {
|
||||
this.id = NextID++;
|
||||
this.c = c;
|
||||
}
|
||||
};
|
||||
ClassA = __decorate([
|
||||
ObservedObjectLinkClassA = __decorate([
|
||||
Observed
|
||||
], ClassA);
|
||||
let ClassB = class ClassB {
|
||||
], ObservedObjectLinkClassA);
|
||||
let ObservedObjectLinkClassB = class ObservedObjectLinkClassB {
|
||||
constructor(a) {
|
||||
this.a = a;
|
||||
}
|
||||
};
|
||||
ClassB = __decorate([
|
||||
ObservedObjectLinkClassB = __decorate([
|
||||
Observed
|
||||
], ClassB);
|
||||
], ObservedObjectLinkClassB);
|
||||
class ViewA extends ViewPU {
|
||||
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
|
||||
super(parent, __localStorage, elmtId, extraInfo);
|
||||
@ -73,7 +73,7 @@ class ViewB extends ViewPU {
|
||||
if (typeof paramsLambda === "function") {
|
||||
this.paramsGenerator_ = paramsLambda;
|
||||
}
|
||||
this.__varB = new ObservedPropertyObjectPU(new ClassB(new ClassA(0)), this, "varB");
|
||||
this.__varB = new ObservedPropertyObjectPU(new ObservedObjectLinkClassB(new ObservedObjectLinkClassA(0)), this, "varB");
|
||||
this.setInitiallyProvidedValue(params);
|
||||
this.finalizeConstruction();
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct HomeComponent {
|
||||
struct RecycleHomeComponent {
|
||||
@State state_value: string = "100%"
|
||||
@State value: number = 1
|
||||
build() {
|
||||
Column() {
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleChild({propvalue: this.value, linkvalue: this.value})
|
||||
.border({width: 3, color: Color.Red})
|
||||
.width(this.state_value)
|
||||
Text("aa")
|
||||
@ -19,7 +19,7 @@ struct HomeComponent {
|
||||
|
||||
@Reusable
|
||||
@Component
|
||||
struct child {
|
||||
struct RecycleChild {
|
||||
@Prop propvalue: number;
|
||||
@Link linkvalue: number;
|
||||
@State state_value: number = 1;
|
||||
@ -29,7 +29,7 @@ struct child {
|
||||
@State heightValue: number = 100
|
||||
build() {
|
||||
Column() {
|
||||
AnimationTest()
|
||||
RecycleAnimationTest()
|
||||
.border({width: 3, color: Color.Red})
|
||||
.height(this.heightValue)
|
||||
|
||||
@ -94,7 +94,7 @@ struct child {
|
||||
}
|
||||
|
||||
@Component
|
||||
struct NormalComponent {
|
||||
struct RecycleNormalComponent {
|
||||
@State width_value: string = "100%"
|
||||
build() {
|
||||
Column() {
|
||||
@ -107,7 +107,7 @@ struct NormalComponent {
|
||||
|
||||
@Reusable
|
||||
@Component
|
||||
struct AnimationTest {
|
||||
struct RecycleAnimationTest {
|
||||
@State width_value: string = "100%"
|
||||
build() {
|
||||
Column() {
|
||||
|
@ -1,17 +1,17 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct HomeComponent {
|
||||
struct RecycleFuncArrHomeComponent {
|
||||
@State value: number = 1
|
||||
build() {
|
||||
Column() {
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleFuncArrChild({propvalue: this.value, linkvalue: this.value})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Reusable
|
||||
@Component
|
||||
struct child {
|
||||
struct RecycleFuncArrChild {
|
||||
@State state_value: number = 1;
|
||||
reguar_value: string = "hello"
|
||||
build() {
|
||||
|
@ -1,24 +1,24 @@
|
||||
let a: string = "aaaaaaaaaa"
|
||||
@Entry
|
||||
@Component
|
||||
struct HomeComponent {
|
||||
struct RecycleReuseIdHomeComponent {
|
||||
@State state_value: string = "100%"
|
||||
@State value: number = 1
|
||||
build() {
|
||||
Column() {
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleReuseIdChild({propvalue: this.value, linkvalue: this.value})
|
||||
.border({width: 3, color: Color.Red})
|
||||
.width(this.state_value)
|
||||
.reuseId("reuse_key")
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleReuseIdChild({propvalue: this.value, linkvalue: this.value})
|
||||
.border({width: 3, color: Color.Red})
|
||||
.reuseId(this.state_value)
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleReuseIdChild({propvalue: this.value, linkvalue: this.value})
|
||||
.reuseId("reuse_key11111111111")
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleReuseIdChild({propvalue: this.value, linkvalue: this.value})
|
||||
.border({width: 3, color: Color.Red})
|
||||
.width(this.state_value)
|
||||
child({propvalue: this.value, linkvalue: this.value})
|
||||
RecycleReuseIdChild({propvalue: this.value, linkvalue: this.value})
|
||||
.reuseId(a)
|
||||
}
|
||||
}
|
||||
@ -26,7 +26,7 @@ struct HomeComponent {
|
||||
|
||||
@Reusable
|
||||
@Component
|
||||
struct child {
|
||||
struct RecycleReuseIdChild {
|
||||
@Prop propvalue: number;
|
||||
@Link linkvalue: number;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
let storage = LocalStorage.GetShared();
|
||||
|
||||
class ClassA {
|
||||
class LocalStorageClassA {
|
||||
public id: number = 1;
|
||||
public type: number = 2;
|
||||
public a: string = "aaa";
|
||||
@ -13,7 +13,7 @@ class ClassA {
|
||||
@Component
|
||||
struct LocalStorageComponent {
|
||||
@LocalStorageLink("storageSimpleProp") simpleVarName: number = 0;
|
||||
@LocalStorageProp("storageObjectProp") objectName: ClassA = new ClassA("x");
|
||||
@LocalStorageProp("storageObjectProp") objectName: LocalStorageClassA = new LocalStorageClassA("x");
|
||||
build() {
|
||||
Column() {
|
||||
Text(this.objectName.a)
|
||||
|
@ -1,6 +1,6 @@
|
||||
let NextID : number = 0;
|
||||
|
||||
@Observed class ClassA {
|
||||
@Observed class ObservedObjectLinkClassA {
|
||||
public id : number;
|
||||
public c: number;
|
||||
constructor(c: number) {
|
||||
@ -9,16 +9,16 @@ let NextID : number = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Observed class ClassB {
|
||||
public a: ClassA;
|
||||
constructor(a: ClassA) {
|
||||
@Observed class ObservedObjectLinkClassB {
|
||||
public a: ObservedObjectLinkClassA;
|
||||
constructor(a: ObservedObjectLinkClassA) {
|
||||
this.a = a;
|
||||
}
|
||||
}
|
||||
|
||||
@Component
|
||||
struct ViewA {
|
||||
@ObjectLink varA : ClassA;
|
||||
@ObjectLink varA : ObservedObjectLinkClassA;
|
||||
build() {
|
||||
Row() {
|
||||
Text('ViewA-' + this.varA.id)
|
||||
@ -29,7 +29,7 @@ struct ViewA {
|
||||
@Entry
|
||||
@Component
|
||||
struct ViewB {
|
||||
@State varB : ClassB = new ClassB(new ClassA(0));
|
||||
@State varB : ObservedObjectLinkClassB = new ObservedObjectLinkClassB(new ObservedObjectLinkClassA(0));
|
||||
build() {
|
||||
Column() {
|
||||
Row() {
|
||||
|
@ -47,112 +47,112 @@ export const UT_PAGES: string[] = [
|
||||
];
|
||||
|
||||
export const UT_PARTIAL_UPFATE_PAGES: string[] = [
|
||||
// 'import/import@CustomDialog',
|
||||
// 'import/import@Observed',
|
||||
// 'import/importAllEts',
|
||||
// 'import/importEts',
|
||||
// 'import/importExportEts',
|
||||
// 'import/importExportNest',
|
||||
// 'import/importTs',
|
||||
'import/import@CustomDialog',
|
||||
'import/import@Observed',
|
||||
'import/importAllEts',
|
||||
'import/importEts',
|
||||
'import/importExportEts',
|
||||
'import/importExportNest',
|
||||
'import/importTs',
|
||||
|
||||
// 'inner_component_transform/$$_component/$$_component',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck1',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck2',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck3',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck4',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck5',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck6',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck7',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck8',
|
||||
// 'inner_component_transform/$$_component/$$_componentCheck9',
|
||||
// 'inner_component_transform/$$_component/$$_if_elseIf_else',
|
||||
// 'inner_component_transform/custom_component/component_object',
|
||||
// 'inner_component_transform/custom_component/custom_component',
|
||||
// 'inner_component_transform/gesture_component/GestureModeParallel',
|
||||
// 'inner_component_transform/gesture_component/longPressGesture',
|
||||
// 'inner_component_transform/gesture_component/panGestrue',
|
||||
// 'inner_component_transform/gesture_component/pinchGesture',
|
||||
// 'inner_component_transform/gesture_component/rotationGesture',
|
||||
// 'inner_component_transform/gesture_component/swipeGesture',
|
||||
// 'inner_component_transform/gesture_component/tapGesture',
|
||||
// 'inner_component_transform/render_component/foreach/foreach',
|
||||
// 'inner_component_transform/render_component/foreach/forEachSecondFunction',
|
||||
// 'inner_component_transform/render_component/foreach/forEachThreeParam',
|
||||
// 'inner_component_transform/render_component/foreach/forEachTwo',
|
||||
// 'inner_component_transform/render_component/if/id_if',
|
||||
// 'inner_component_transform/render_component/if/if',
|
||||
// 'inner_component_transform/render_component/item/GridItem',
|
||||
// 'inner_component_transform/render_component/item/ListItem',
|
||||
// 'inner_component_transform/render_component/lazyforeach/lazyforeach',
|
||||
// 'inner_component_transform/render_component/lazyforeach/lazyforEachThreeParam',
|
||||
// 'inner_component_transform/render_component/repeat/repeat',
|
||||
// 'inner_component_transform/render_component/repeat/repeatAttr',
|
||||
// 'inner_component_transform/render_component/repeat/repeatVirtualScroll',
|
||||
// 'inner_component_transform/render_component/tab/tab',
|
||||
// 'inner_component_transform/simple_component/button/button',
|
||||
// 'inner_component_transform/simple_component/xcomponent/XComponentContainer',
|
||||
// 'inner_component_transform/transition_component/animateTo/animateTo',
|
||||
// 'inner_component_transform/transition_component/navDestination_component/navDestination_component',
|
||||
// 'inner_component_transform/transition_component/navigation/navigation_component',
|
||||
// 'inner_component_transform/transition_component/pageTransition/pageTransition',
|
||||
'inner_component_transform/$$_component/$$_component',
|
||||
'inner_component_transform/$$_component/$$_componentCheck1',
|
||||
'inner_component_transform/$$_component/$$_componentCheck2',
|
||||
'inner_component_transform/$$_component/$$_componentCheck3',
|
||||
'inner_component_transform/$$_component/$$_componentCheck4',
|
||||
'inner_component_transform/$$_component/$$_componentCheck5',
|
||||
'inner_component_transform/$$_component/$$_componentCheck6',
|
||||
'inner_component_transform/$$_component/$$_componentCheck7',
|
||||
'inner_component_transform/$$_component/$$_componentCheck8',
|
||||
'inner_component_transform/$$_component/$$_componentCheck9',
|
||||
'inner_component_transform/$$_component/$$_if_elseIf_else',
|
||||
'inner_component_transform/custom_component/component_object',
|
||||
'inner_component_transform/custom_component/custom_component',
|
||||
'inner_component_transform/gesture_component/GestureModeParallel',
|
||||
'inner_component_transform/gesture_component/longPressGesture',
|
||||
'inner_component_transform/gesture_component/panGestrue',
|
||||
'inner_component_transform/gesture_component/pinchGesture',
|
||||
'inner_component_transform/gesture_component/rotationGesture',
|
||||
'inner_component_transform/gesture_component/swipeGesture',
|
||||
'inner_component_transform/gesture_component/tapGesture',
|
||||
'inner_component_transform/render_component/foreach/foreach',
|
||||
'inner_component_transform/render_component/foreach/forEachSecondFunction',
|
||||
'inner_component_transform/render_component/foreach/forEachThreeParam',
|
||||
'inner_component_transform/render_component/foreach/forEachTwo',
|
||||
'inner_component_transform/render_component/if/id_if',
|
||||
'inner_component_transform/render_component/if/if',
|
||||
'inner_component_transform/render_component/item/GridItem',
|
||||
'inner_component_transform/render_component/item/ListItem',
|
||||
'inner_component_transform/render_component/lazyforeach/lazyforeach',
|
||||
'inner_component_transform/render_component/lazyforeach/lazyforEachThreeParam',
|
||||
'inner_component_transform/render_component/repeat/repeat',
|
||||
'inner_component_transform/render_component/repeat/repeatAttr',
|
||||
'inner_component_transform/render_component/repeat/repeatVirtualScroll',
|
||||
'inner_component_transform/render_component/tab/tab',
|
||||
'inner_component_transform/simple_component/button/button',
|
||||
'inner_component_transform/simple_component/xcomponent/XComponentContainer',
|
||||
'inner_component_transform/transition_component/animateTo/animateTo',
|
||||
'inner_component_transform/transition_component/navDestination_component/navDestination_component',
|
||||
'inner_component_transform/transition_component/navigation/navigation_component',
|
||||
'inner_component_transform/transition_component/pageTransition/pageTransition',
|
||||
|
||||
// 'render_decorator/@AnimatableExtend/animatableExtend',
|
||||
// 'render_decorator/@builder/@builder',
|
||||
// 'render_decorator/@builder/@builderDynamicUsage$$',
|
||||
// 'render_decorator/@builder/@builderOrComponentAsName',
|
||||
// 'render_decorator/@builder/@builderSimplifyAfferent',
|
||||
// 'render_decorator/@builder/@builderTransFormFirst',
|
||||
// 'render_decorator/@builder/@builderTransFormFourth',
|
||||
// 'render_decorator/@builder/@builderTransFormSecond',
|
||||
// 'render_decorator/@builder/@builderTransFormThird',
|
||||
// 'render_decorator/@builder/@builderVisilibity$$',
|
||||
// 'render_decorator/@builder/@builderWithComponent',
|
||||
// 'render_decorator/@builder/@builderWithForEach',
|
||||
// 'render_decorator/@builder/@builderWithLinkData',
|
||||
// 'render_decorator/@builder/handleCustomBuilder',
|
||||
// 'render_decorator/@builderParam/@builderParam',
|
||||
// 'render_decorator/@builderParam/@builderParamQuestionMark',
|
||||
// 'render_decorator/@builderParam/@BuilderParamReturnType',
|
||||
// 'render_decorator/@componentParent/@componentParent',
|
||||
// 'render_decorator/@customDialog/@customDialog',
|
||||
// 'render_decorator/@extend/@extend',
|
||||
// 'render_decorator/@localBuilder/@localBuilder',
|
||||
// 'render_decorator/@preview/@preview',
|
||||
// 'render_decorator/@recycle/recycle_$$component',
|
||||
// 'render_decorator/@recycle/recycle_extend_styles',
|
||||
// 'render_decorator/@recycle/recycle_function_array',
|
||||
// 'render_decorator/@recycle/recycle_gesture',
|
||||
// 'render_decorator/@recycle/recycle_reuseId',
|
||||
// 'render_decorator/@recycle/recycle',
|
||||
// 'render_decorator/@styles/@styles',
|
||||
// 'render_decorator/@styles/@stylesExport',
|
||||
// 'render_decorator/@styles/@stylesOrComponentAsName',
|
||||
'render_decorator/@AnimatableExtend/animatableExtend',
|
||||
'render_decorator/@builder/@builder',
|
||||
'render_decorator/@builder/@builderDynamicUsage$$',
|
||||
'render_decorator/@builder/@builderOrComponentAsName',
|
||||
'render_decorator/@builder/@builderSimplifyAfferent',
|
||||
'render_decorator/@builder/@builderTransFormFirst',
|
||||
'render_decorator/@builder/@builderTransFormFourth',
|
||||
'render_decorator/@builder/@builderTransFormSecond',
|
||||
'render_decorator/@builder/@builderTransFormThird',
|
||||
'render_decorator/@builder/@builderVisilibity$$',
|
||||
'render_decorator/@builder/@builderWithComponent',
|
||||
'render_decorator/@builder/@builderWithForEach',
|
||||
'render_decorator/@builder/@builderWithLinkData',
|
||||
'render_decorator/@builder/handleCustomBuilder',
|
||||
'render_decorator/@builderParam/@builderParam',
|
||||
'render_decorator/@builderParam/@builderParamQuestionMark',
|
||||
'render_decorator/@builderParam/@BuilderParamReturnType',
|
||||
'render_decorator/@componentParent/@componentParent',
|
||||
'render_decorator/@customDialog/@customDialog',
|
||||
'render_decorator/@extend/@extend',
|
||||
'render_decorator/@localBuilder/@localBuilder',
|
||||
'render_decorator/@preview/@preview',
|
||||
'render_decorator/@recycle/recycle_$$component',
|
||||
'render_decorator/@recycle/recycle_extend_styles',
|
||||
'render_decorator/@recycle/recycle_function_array',
|
||||
'render_decorator/@recycle/recycle_gesture',
|
||||
'render_decorator/@recycle/recycle_reuseId',
|
||||
'render_decorator/@recycle/recycle',
|
||||
'render_decorator/@styles/@styles',
|
||||
'render_decorator/@styles/@stylesExport',
|
||||
'render_decorator/@styles/@stylesOrComponentAsName',
|
||||
|
||||
// 'ui_context/build_ui_in_correct_place',
|
||||
'ui_context/build_ui_in_correct_place',
|
||||
|
||||
// 'ui_state_management/application_state_management/@storageLink/@storageLink',
|
||||
// 'ui_state_management/application_state_management/@storageProp/@storageProp',
|
||||
// 'ui_state_management/application_state_management/appStorage/appStorage',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorage',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForBoth',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForChainCall',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForRoute',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForStorage',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForThree',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageForThreeParam',
|
||||
// 'ui_state_management/application_state_management/localStorage/localStorageParam',
|
||||
// 'ui_state_management/inner_struct_state_management/@link/@link',
|
||||
// 'ui_state_management/inner_struct_state_management/@objectLink/@objectLink',
|
||||
// 'ui_state_management/inner_struct_state_management/@prop/@prop',
|
||||
// 'ui_state_management/inner_struct_state_management/@prop/@propComplexType',
|
||||
// 'ui_state_management/inner_struct_state_management/@state/@state',
|
||||
// 'ui_state_management/others/@consume_@provide/@consume_@provide',
|
||||
// 'ui_state_management/others/@observed_@objectLink/@observed_@objectLink',
|
||||
// 'ui_state_management/others/@watch/@watch',
|
||||
// 'ui_state_management/others/decoratorKeyCheck/decoratorKeyCheck',
|
||||
'ui_state_management/application_state_management/@storageLink/@storageLink',
|
||||
'ui_state_management/application_state_management/@storageProp/@storageProp',
|
||||
'ui_state_management/application_state_management/appStorage/appStorage',
|
||||
'ui_state_management/application_state_management/localStorage/localStorage',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForBoth',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForChainCall',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForRoute',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForStorage',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForThree',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageForThreeParam',
|
||||
'ui_state_management/application_state_management/localStorage/localStorageParam',
|
||||
'ui_state_management/inner_struct_state_management/@link/@link',
|
||||
'ui_state_management/inner_struct_state_management/@objectLink/@objectLink',
|
||||
'ui_state_management/inner_struct_state_management/@prop/@prop',
|
||||
'ui_state_management/inner_struct_state_management/@prop/@propComplexType',
|
||||
'ui_state_management/inner_struct_state_management/@state/@state',
|
||||
'ui_state_management/others/@consume_@provide/@consume_@provide',
|
||||
'ui_state_management/others/@observed_@objectLink/@observed_@objectLink',
|
||||
'ui_state_management/others/@watch/@watch',
|
||||
'ui_state_management/others/decoratorKeyCheck/decoratorKeyCheck',
|
||||
|
||||
// 'v2_component_decorator/builderParamStyles',
|
||||
// 'v2_component_decorator/param_event_twoway_binding',
|
||||
'v2_component_decorator/builderParamStyles',
|
||||
'v2_component_decorator/param_event_twoway_binding',
|
||||
'v2_component_decorator/staticComponentMember'
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user