diff --git a/20_脚手架/vue_code/20.src_github搜索案例/App.vue b/20_脚手架/vue_code/20.src_github搜索案例/App.vue new file mode 100644 index 0000000..3a938a4 --- /dev/null +++ b/20_脚手架/vue_code/20.src_github搜索案例/App.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/20_脚手架/vue_code/20.src_github搜索案例/assets/logo.png b/20_脚手架/vue_code/20.src_github搜索案例/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/20.src_github搜索案例/assets/logo.png differ diff --git a/20_脚手架/vue_code/20.src_github搜索案例/components/List.vue b/20_脚手架/vue_code/20.src_github搜索案例/components/List.vue new file mode 100644 index 0000000..3fcf878 --- /dev/null +++ b/20_脚手架/vue_code/20.src_github搜索案例/components/List.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/20.src_github搜索案例/components/Search.vue b/20_脚手架/vue_code/20.src_github搜索案例/components/Search.vue new file mode 100644 index 0000000..6583d7a --- /dev/null +++ b/20_脚手架/vue_code/20.src_github搜索案例/components/Search.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/20.src_github搜索案例/main.js b/20_脚手架/vue_code/20.src_github搜索案例/main.js new file mode 100644 index 0000000..4d5e394 --- /dev/null +++ b/20_脚手架/vue_code/20.src_github搜索案例/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/components/List.vue b/20_脚手架/vue_code/src/components/List.vue index 6494b58..3fcf878 100644 --- a/20_脚手架/vue_code/src/components/List.vue +++ b/20_脚手架/vue_code/src/components/List.vue @@ -1,48 +1,44 @@