質問編集履歴
2
型の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
export default class InfoModel {
|
10
10
|
public personNumber: string;
|
11
11
|
public personName: string;
|
12
|
-
public personAge:
|
12
|
+
public personAge: number;
|
13
13
|
|
14
|
-
constructor(personNumber: string, personName: string, personAge:
|
14
|
+
constructor(personNumber: string, personName: string, personAge: number) {
|
15
15
|
this.personNumber = personNumber;
|
16
16
|
this.personName = personName;
|
17
17
|
this.personAge = personAge;
|
@@ -66,7 +66,7 @@
|
|
66
66
|
|
67
67
|
private personNumber!: string;
|
68
68
|
private personName!: string;
|
69
|
-
private personAge!:
|
69
|
+
private personAge!: number;
|
70
70
|
|
71
71
|
// TODO 情報を1つのモデルに格納する。
|
72
72
|
@PropSync('personInfomation', { type: Object, default: null })
|
1
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -63,6 +63,11 @@
|
|
63
63
|
|
64
64
|
@Component
|
65
65
|
export default class Child extends Vue {
|
66
|
+
|
67
|
+
private personNumber!: string;
|
68
|
+
private personName!: string;
|
69
|
+
private personAge!: string;
|
70
|
+
|
66
71
|
// TODO 情報を1つのモデルに格納する。
|
67
72
|
@PropSync('personInfomation', { type: Object, default: null })
|
68
73
|
private infoModel: InfoModel = new InfoModel(
|