質問編集履歴
1
申し訳ありません。App.vueのソースを添付致します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,7 +52,129 @@
|
|
52
52
|
|
53
53
|
```
|
54
54
|
|
55
|
-
|
55
|
+
### App.vue
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
1 <template>
|
60
|
+
|
61
|
+
2 <div id="app">
|
62
|
+
|
63
|
+
3 <h1>ToDoManagement</h1>
|
64
|
+
|
65
|
+
4 <form>
|
66
|
+
|
67
|
+
5 <input type="text" v-model="text-input">
|
68
|
+
|
69
|
+
6 <input type="button" v-on:click="insert-button" name="登録">
|
70
|
+
|
71
|
+
7 <p><span>{{textInput.length}}</span>文字</p>
|
72
|
+
|
73
|
+
8
|
74
|
+
|
75
|
+
9 </form>
|
76
|
+
|
77
|
+
10 </div>
|
78
|
+
|
79
|
+
11 </template>
|
80
|
+
|
81
|
+
12
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
13 <script>
|
86
|
+
|
87
|
+
14 export default {
|
88
|
+
|
89
|
+
15 name: 'app',
|
90
|
+
|
91
|
+
16 data () {
|
92
|
+
|
93
|
+
17 return {
|
94
|
+
|
95
|
+
18 textInput: ''
|
96
|
+
|
97
|
+
19 }
|
98
|
+
|
99
|
+
20 },
|
100
|
+
|
101
|
+
21 methods: {
|
102
|
+
|
103
|
+
22 insertButton () {
|
104
|
+
|
105
|
+
23 if (this.textInput === '') return
|
106
|
+
|
107
|
+
24 }
|
108
|
+
|
109
|
+
25 }
|
110
|
+
|
111
|
+
26 }
|
112
|
+
|
113
|
+
27 </script>
|
114
|
+
|
115
|
+
28
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
29 <style lang="scss">
|
120
|
+
|
121
|
+
30 #app {
|
122
|
+
|
123
|
+
31 font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
124
|
+
|
125
|
+
32 -webkit-font-smoothing: antialiased;
|
126
|
+
|
127
|
+
33 -moz-osx-font-smoothing: grayscale;
|
128
|
+
|
129
|
+
34 text-align: center;
|
130
|
+
|
131
|
+
35 color: #2c3e50;
|
132
|
+
|
133
|
+
36 margin-top: 60px;
|
134
|
+
|
135
|
+
37 }
|
136
|
+
|
137
|
+
38
|
138
|
+
|
139
|
+
39 h1, h2 {
|
140
|
+
|
141
|
+
40 font-weight: normal;
|
142
|
+
|
143
|
+
41 }
|
144
|
+
|
145
|
+
42
|
146
|
+
|
147
|
+
43 ul {
|
148
|
+
|
149
|
+
44 list-style-type: none;
|
150
|
+
|
151
|
+
45 padding: 0;
|
152
|
+
|
153
|
+
46 }
|
154
|
+
|
155
|
+
47
|
156
|
+
|
157
|
+
48 li {
|
158
|
+
|
159
|
+
49 display: inline-block;
|
160
|
+
|
161
|
+
50 margin: 0 10px;
|
162
|
+
|
163
|
+
51 }
|
164
|
+
|
165
|
+
52
|
166
|
+
|
167
|
+
53 a {
|
168
|
+
|
169
|
+
54 color: #42b983;
|
170
|
+
|
171
|
+
55 }
|
172
|
+
|
173
|
+
56 </style>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
```
|
56
178
|
|
57
179
|
|
58
180
|
|