保存进度!

This commit is contained in:
Kane Wang 2022-11-01 17:51:14 +08:00
parent fd6e7ad959
commit 3aa898fee8
3 changed files with 16 additions and 8 deletions

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-10-31 14:38:45 * @Date: 2022-10-31 14:38:45
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2022-10-31 14:56:42 * @LastEditTime: 2022-11-01 11:01:28
* @FilePath: \car_dealer\css\axios\axios.css * @FilePath: \car_dealer\css\axios\axios.css
* @Description: * @Description:
* *
@ -24,7 +24,7 @@ html {
--scrollbar-backupground-color: #cfcfcf7f; --scrollbar-backupground-color: #cfcfcf7f;
--scrollbar-track-color: #f7f7f700; --scrollbar-track-color: #f7f7f700;
--font-color: rgba(0, 0, 50, 255); --font-color: #486171ff;
color: var(--font-color); color: var(--font-color);
} }

View File

@ -25,7 +25,7 @@ html {
--scrollbar-backupground-color: #cfcfcf7f; --scrollbar-backupground-color: #cfcfcf7f;
--scrollbar-track-color: #f7f7f700; --scrollbar-track-color: #f7f7f700;
--font-color: rgba(0, 0, 50, 255); --font-color: #486171ff;
color: var(--font-color); color: var(--font-color);
} }

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-10-21 16:36:51 * @Date: 2022-10-21 16:36:51
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2022-10-31 00:13:22 * @LastEditTime: 2022-11-01 17:48:11
* @FilePath: \car_dealer\vue\todo-list.html * @FilePath: \car_dealer\vue\todo-list.html
* @Description: * @Description:
* *
@ -58,7 +58,7 @@
</div> </div>
<hr /> <hr />
<div class="tools"> <div class="tools">
<p class="summary">总计:{{todo_list.length}}</p> <p class="summary">总计:{{totalTodos}}</p>
</div> </div>
</div> </div>
</div> </div>
@ -71,7 +71,8 @@
title: "待办任务", title: "待办任务",
errorMessage: "奇怪的错误!", errorMessage: "奇怪的错误!",
todo_text: "", todo_text: "",
todo_list: [{ todo_list: [
{
selected: false, selected: false,
todo_text: "回家", todo_text: "回家",
edit: false, edit: false,
@ -175,7 +176,7 @@
}; };
}, },
methods: { methods: {
addTodo() {}, addTodo() { },
editTodo(index, event) { editTodo(index, event) {
console.log(index); console.log(index);
console.log(event); console.log(event);
@ -194,7 +195,14 @@
const message = document.getElementById("message_border"); const message = document.getElementById("message_border");
message.style["display"] = "none"; message.style["display"] = "none";
} },
},
computed: {
totalTodos: {
get() {
return this.todo_list.length;
},
},
}, },
}; };