From e19cf3d55146e92aed4ab1b35040e2cafd19ec16 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Fri, 14 Nov 2025 16:57:34 +0800 Subject: [PATCH] style:fmt --- todos/src/App.vue | 52 ++++++++++++++++------------- todos/src/components/TodoFooter.vue | 8 ++--- todos/src/components/TodoHeader.vue | 33 +++++++++--------- todos/src/components/TodoList.vue | 11 +++--- todos/src/main.js | 8 ++--- todos/src/style.css | 2 +- todos/vite.config.js | 6 ++-- 7 files changed, 63 insertions(+), 57 deletions(-) diff --git a/todos/src/App.vue b/todos/src/App.vue index 86b380c..fd0859d 100644 --- a/todos/src/App.vue +++ b/todos/src/App.vue @@ -1,33 +1,33 @@ diff --git a/todos/src/components/TodoFooter.vue b/todos/src/components/TodoFooter.vue index e6c24b5..6a2c28f 100644 --- a/todos/src/components/TodoFooter.vue +++ b/todos/src/components/TodoFooter.vue @@ -16,10 +16,10 @@ export default { methods: { tabClick(newType) { - this.$emit("changeTabType", newType) - } - } -} + this.$emit("changeTabType", newType); + }, + }, +}; diff --git a/todos/src/components/TodoList.vue b/todos/src/components/TodoList.vue index 75bff82..0c6bda4 100644 --- a/todos/src/components/TodoList.vue +++ b/todos/src/components/TodoList.vue @@ -99,8 +99,9 @@ export default { methods: { delTodo(item) { - this.$emit("delTodo", item) - } - } -} - \ No newline at end of file + this.$emit("delTodo", item); + }, + }, +}; + + diff --git a/todos/src/main.js b/todos/src/main.js index 58940f6..4611ed9 100644 --- a/todos/src/main.js +++ b/todos/src/main.js @@ -1,5 +1,5 @@ -import { createApp } from 'vue' -import App from './App.vue' -import './assets/global.css' +import { createApp } from "vue"; +import App from "./App.vue"; +import "./assets/global.css"; -createApp(App).mount('#app') +createApp(App).mount("#app"); diff --git a/todos/src/style.css b/todos/src/style.css index 6cee70a..f362fe7 100644 --- a/todos/src/style.css +++ b/todos/src/style.css @@ -81,4 +81,4 @@ button:focus-visible { button { background-color: #f9f9f9; } -} \ No newline at end of file +} diff --git a/todos/vite.config.js b/todos/vite.config.js index bbcf80c..e3d9890 100644 --- a/todos/vite.config.js +++ b/todos/vite.config.js @@ -1,7 +1,7 @@ -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], -}) +});