Skip to content

Commit 7bc3e11

Browse files
committed
63
1 parent 8d27497 commit 7bc3e11

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

db.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@
9595
"body": "dfghdfgh",
9696
"id": 26
9797
},
98-
{
99-
"subject": "",
100-
"completed": false,
101-
"body": "",
102-
"id": 27
103-
},
10498
{
10599
"subject": "ab",
106100
"completed": false,

src/components/TodoList.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@
99
style="cursor: pointer"
1010
@click="moveToPage(todo.id)"
1111
>
12-
<div class="form-check flex-grow-1">
12+
<div class="flex-grow-1">
1313
<input
14-
class="form-check-input"
14+
class="ml-2 mr-2"
1515
type="checkbox"
1616
:checked="todo.completed"
1717
@change="toggleTodo(index, $event)"
1818
@click.stop
1919
>
20-
<label
21-
class="form-check-label"
22-
:class="{ todo: todo.completed }"
23-
>
20+
<span :class="{ todo: todo.completed }">
2421
{{ todo.subject }}
25-
</label>
22+
</span>
2623
</div>
2724
<div>
2825
<button

0 commit comments

Comments
 (0)