diff --git a/20_脚手架/vue_code/18.src_todolist动画/App.vue b/20_脚手架/vue_code/18.src_todolist动画/App.vue new file mode 100644 index 0000000..ddfd312 --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/App.vue @@ -0,0 +1,145 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/18.src_todolist动画/assets/logo.png b/20_脚手架/vue_code/18.src_todolist动画/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/18.src_todolist动画/assets/logo.png differ diff --git a/20_脚手架/vue_code/18.src_todolist动画/components/TodoBottom.vue b/20_脚手架/vue_code/18.src_todolist动画/components/TodoBottom.vue new file mode 100644 index 0000000..b4de571 --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/components/TodoBottom.vue @@ -0,0 +1,76 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/18.src_todolist动画/components/TodoHeader.vue b/20_脚手架/vue_code/18.src_todolist动画/components/TodoHeader.vue new file mode 100644 index 0000000..d4a857c --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/components/TodoHeader.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/18.src_todolist动画/components/TodoItem.vue b/20_脚手架/vue_code/18.src_todolist动画/components/TodoItem.vue new file mode 100644 index 0000000..2504f9d --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/components/TodoItem.vue @@ -0,0 +1,124 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/18.src_todolist动画/components/TodoList.vue b/20_脚手架/vue_code/18.src_todolist动画/components/TodoList.vue new file mode 100644 index 0000000..09a80ba --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/components/TodoList.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/18.src_todolist动画/main.js b/20_脚手架/vue_code/18.src_todolist动画/main.js new file mode 100644 index 0000000..4d5e394 --- /dev/null +++ b/20_脚手架/vue_code/18.src_todolist动画/main.js @@ -0,0 +1,19 @@ +// 引入Vue +import Vue from "vue"; +// 引入App +import App from "./App"; + +// 设置Vue +Vue.config.productionTip = false + + +// 实例化Vue +new Vue({ + components: { + App + }, + render: h => h(App), + beforeCreate() { + Vue.prototype.$bus = this // 安装全局事件总线 + } +}).$mount('#app') diff --git a/20_脚手架/vue_code/src/App.vue b/20_脚手架/vue_code/src/App.vue index eaa53a7..ddfd312 100644 --- a/20_脚手架/vue_code/src/App.vue +++ b/20_脚手架/vue_code/src/App.vue @@ -1,25 +1,145 @@ \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Test.vue b/20_脚手架/vue_code/src/components/Test.vue deleted file mode 100644 index ace11ae..0000000 --- a/20_脚手架/vue_code/src/components/Test.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Test2.vue b/20_脚手架/vue_code/src/components/Test2.vue deleted file mode 100644 index 8b54a16..0000000 --- a/20_脚手架/vue_code/src/components/Test2.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Test3.vue b/20_脚手架/vue_code/src/components/Test3.vue deleted file mode 100644 index e05c435..0000000 --- a/20_脚手架/vue_code/src/components/Test3.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/TodoBottom.vue b/20_脚手架/vue_code/src/components/TodoBottom.vue new file mode 100644 index 0000000..b4de571 --- /dev/null +++ b/20_脚手架/vue_code/src/components/TodoBottom.vue @@ -0,0 +1,76 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/TodoHeader.vue b/20_脚手架/vue_code/src/components/TodoHeader.vue new file mode 100644 index 0000000..d4a857c --- /dev/null +++ b/20_脚手架/vue_code/src/components/TodoHeader.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/TodoItem.vue b/20_脚手架/vue_code/src/components/TodoItem.vue new file mode 100644 index 0000000..2504f9d --- /dev/null +++ b/20_脚手架/vue_code/src/components/TodoItem.vue @@ -0,0 +1,124 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/TodoList.vue b/20_脚手架/vue_code/src/components/TodoList.vue new file mode 100644 index 0000000..09a80ba --- /dev/null +++ b/20_脚手架/vue_code/src/components/TodoList.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file