File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed
content/ja/09.workspace/01.todo-list Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,6 @@ userNameを`ref`を使ってリアクティブな値にし、値の変化を検
9898
9999もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
100100
101- : ButtonShowSolution
101+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
102102
103103ref を使い、データの変更が自動的に画面に反映されるようになりました!
Original file line number Diff line number Diff line change @@ -61,6 +61,6 @@ Vueでは `v-for` ディレクティブを使って配列に基づいて項目
6161
6262もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
6363
64- : ButtonShowSolution
64+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
6565
6666` v-for ` を使うことで動的なデータ表示がとても簡単になりましたね!
Original file line number Diff line number Diff line change @@ -71,6 +71,6 @@ Vueでは `v-if` ディレクティブを使って、ブロックを条件に応
7171
7272もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
7373
74- : ButtonShowSolution
74+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
7575
7676` v-if ` と ` v-else ` を使うことで、状態に応じた柔軟なUIが実現できます!
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import Child from './Child.vue'
4444
4545もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
4646
47- : ButtonShowSolution
47+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
4848
4949app.vueがすっきりとしました。
5050
Original file line number Diff line number Diff line change @@ -149,6 +149,6 @@ const emit = defineEmits<{
149149
150150もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
151151
152- : ButtonShowSolution
152+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
153153
154154コンポーネント化され、メンテナンスしやすいスッキリした構造になりました!
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ const showUnDoneOnly = ref(false)
118118そうすることで、 ` v-model ` だけで、バインドとイベント監視の指定がなくても、値が自動的に同期されるようになります。
119119
120120もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
121- : ButtonShowSolution
121+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
122122
123123## 実装後の効果
124124
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ const doubled = computed({
128128 1,2 で実装した ` filteredTodos ` を ` TodoList ` コンポーネントの ` todos ` propsに渡してみましょう。
129129
130130もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
131- : ButtonShowSolution
131+ :: ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
132132
133133## 実装後の効果
134134
Original file line number Diff line number Diff line change @@ -240,6 +240,6 @@ TODOリストに、新規タスクを追加するために、
240240
241241もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
242242
243- : ButtonShowSolution
243+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
244244
245245親・子コンポーネント間で ` isCreateModalOpen ` を双方向に同期できるようになりました!
Original file line number Diff line number Diff line change @@ -250,6 +250,6 @@ ogImage: true
250250
251251もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
252252
253- : ButtonShowSolution
253+ :: ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
254254
255255これで、コンポーネントの任意の箇所に、HTMLやコンポーネント等を差し込むことができました!
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function handleSubmit(e: Event) {
5151
5252もし行き詰まったら、以下のボタンをクリックして解答を見ることができます。
5353
54- : ButtonShowSolution
54+ : ButtonShowSolution { . bg-faded . px4 . py2 . mb3 . rounded . border . border-base . hover:bg-active . hover:text-primary . hover:border-primary:50 }
5555
5656---
5757
You can’t perform that action at this time.
0 commit comments