mirror of
https://github.com/Dichgrem/Vue.git
synced 2025-12-17 14:11:58 -05:00
style:apart_css
This commit is contained in:
@@ -67,16 +67,3 @@ export default {
|
|||||||
<TodoList :todos="todoList" @delTodo="delTodo" />
|
<TodoList :todos="todoList" @delTodo="delTodo" />
|
||||||
<TodoFooter :count="todoList.length" :tabType="tabType" @changeTabType="changeTabType" />
|
<TodoFooter :count="todoList.length" :tabType="tabType" @changeTabType="changeTabType" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
|
||||||
#app {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 600px;
|
|
||||||
margin: 20px auto;
|
|
||||||
padding: 15px;
|
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
|
|
||||||
border-radius: 10px;
|
|
||||||
background: white;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
19
todos/src/assets/global.css
Normal file
19
todos/src/assets/global.css
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/* src/assets/global.css */
|
||||||
|
|
||||||
|
#app {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 20px auto;
|
||||||
|
padding: 15px;
|
||||||
|
box-shadow: 0 0 10px rgba(0,0,0,0.08);
|
||||||
|
border-radius: 10px;
|
||||||
|
background: white;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: sans-serif;
|
||||||
|
background: #f4f6fa;
|
||||||
|
}
|
||||||
@@ -75,21 +75,7 @@
|
|||||||
.tdItem-acts a:hover {
|
.tdItem-acts a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: ["todos"],
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
delTodo(item) {
|
|
||||||
this.$emit("delTodo", item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.tdList {
|
.tdList {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -106,3 +92,15 @@ export default {
|
|||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ["todos"],
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
delTodo(item) {
|
||||||
|
this.$emit("delTodo", item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
import './assets/global.css'
|
||||||
|
|
||||||
createApp(App).mount('#app')
|
createApp(App).mount('#app')
|
||||||
|
|||||||
Reference in New Issue
Block a user