diff --git a/20_脚手架/vue_code/16.src_nextTick/App.vue b/20_脚手架/vue_code/16.src_nextTick/App.vue new file mode 100644 index 0000000..ddfd312 --- /dev/null +++ b/20_脚手架/vue_code/16.src_nextTick/App.vue @@ -0,0 +1,145 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/16.src_nextTick/assets/logo.png b/20_脚手架/vue_code/16.src_nextTick/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/16.src_nextTick/assets/logo.png differ diff --git a/20_脚手架/vue_code/src/components/TodoBottom.vue b/20_脚手架/vue_code/16.src_nextTick/components/TodoBottom.vue similarity index 100% rename from 20_脚手架/vue_code/src/components/TodoBottom.vue rename to 20_脚手架/vue_code/16.src_nextTick/components/TodoBottom.vue diff --git a/20_脚手架/vue_code/src/components/TodoHeader.vue b/20_脚手架/vue_code/16.src_nextTick/components/TodoHeader.vue similarity index 100% rename from 20_脚手架/vue_code/src/components/TodoHeader.vue rename to 20_脚手架/vue_code/16.src_nextTick/components/TodoHeader.vue diff --git a/20_脚手架/vue_code/src/components/TodoItem.vue b/20_脚手架/vue_code/16.src_nextTick/components/TodoItem.vue similarity index 100% rename from 20_脚手架/vue_code/src/components/TodoItem.vue rename to 20_脚手架/vue_code/16.src_nextTick/components/TodoItem.vue diff --git a/20_脚手架/vue_code/src/components/TodoList.vue b/20_脚手架/vue_code/16.src_nextTick/components/TodoList.vue similarity index 100% rename from 20_脚手架/vue_code/src/components/TodoList.vue rename to 20_脚手架/vue_code/16.src_nextTick/components/TodoList.vue diff --git a/20_脚手架/vue_code/16.src_nextTick/main.js b/20_脚手架/vue_code/16.src_nextTick/main.js new file mode 100644 index 0000000..4d5e394 --- /dev/null +++ b/20_脚手架/vue_code/16.src_nextTick/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 ddfd312..cafef59 100644 --- a/20_脚手架/vue_code/src/App.vue +++ b/20_脚手架/vue_code/src/App.vue @@ -1,145 +1,19 @@ \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Test.vue b/20_脚手架/vue_code/src/components/Test.vue new file mode 100644 index 0000000..ace11ae --- /dev/null +++ b/20_脚手架/vue_code/src/components/Test.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file