Lines Matching refs:prop
100 // 在AppStorageV2中创建一个key为Sample的键值对(如果存在,则返回AppStorageV2中的数据),并且和prop关联
101 @Local prop: Sample = AppStorageV2.connect(Sample, () => new Sample())!;
114 // 在AppStorageV2中创建一个key为Sample的键值对(如果存在,则返回AppStorageV2中的数据),并且和prop关联
115 this.prop = AppStorageV2.connect(Sample, 'Sample', () => new Sample())!;
120 // 从AppStorageV2中删除后,prop将不会再与key为Sample的值关联
124 Text(`Page1 add 1 to prop.p1: ${this.prop.p1}`)
127 this.prop.p1++;
130 Text(`Page1 add 1 to prop.p2: ${this.prop.p2}`)
134 this.prop.p2++;
158 // 在AppStorageV2中创建一个key为Sample的键值对(如果存在,则返回AppStorageV2中的数据),并且和prop关联
159 @Local prop: Sample = AppStorageV2.connect(Sample, () => new Sample())!;
167 // 在AppStorageV2中创建一个key为Sample1的键值对(如果存在,则返回AppStorageV2中的数据),并且和prop关联
168 this.prop = AppStorageV2.connect(Sample, 'Sample1', () => new Sample())!;
171 Text(`Page2 add 1 to prop.p1: ${this.prop.p1}`)
174 this.prop.p1++;
177 Text(`Page2 add 1 to prop.p2: ${this.prop.p2}`)
181 this.prop.p2++;