Lines Matching refs:testNum
476 @Prop testNum: Book; // @Prop装饰状态变量会深拷贝
479 Text(`PropChild testNum ${this.testNum.c}`)
486 @State testNum: Book[] = [new Book(1)];
490 Text(`Parent testNum ${this.testNum[0].c}`)
492 this.testNum[0].c += 1;
494 // PropChild没有改变@Prop testNum: Book的值,所以这时最优的选择是使用@ObjectLink
495 PropChild({ testNum: this.testNum[0] })
513 @ObjectLink testNum: Book; // @ObjectLink装饰状态变量不会深拷贝
516 Text(`PropChild testNum ${this.testNum.c}`)
523 @State testNum: Book[] = [new Book(1)];
527 Text(`Parent testNum ${this.testNum[0].c}`)
529 this.testNum[0].c += 1;
532 PropChild({ testNum: this.testNum[0] })