diff --git a/19_单文件组件/index.html b/19_单文件组件/index.html index 6150b15..c74ee6f 100644 --- a/19_单文件组件/index.html +++ b/19_单文件组件/index.html @@ -2,7 +2,7 @@ - 联系单文件组件 + 单文件组件
diff --git a/20_脚手架/vue_code/01.src_ref属性解析/App.vue b/20_脚手架/vue_code/01.src_ref属性解析/App.vue new file mode 100644 index 0000000..6c4f192 --- /dev/null +++ b/20_脚手架/vue_code/01.src_ref属性解析/App.vue @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/01.src_ref属性解析/assets/logo.png b/20_脚手架/vue_code/01.src_ref属性解析/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/01.src_ref属性解析/assets/logo.png differ diff --git a/20_脚手架/vue_code/01.src_ref属性解析/components/School.vue b/20_脚手架/vue_code/01.src_ref属性解析/components/School.vue new file mode 100644 index 0000000..44afa8a --- /dev/null +++ b/20_脚手架/vue_code/01.src_ref属性解析/components/School.vue @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/01.src_ref属性解析/main.js b/20_脚手架/vue_code/01.src_ref属性解析/main.js new file mode 100644 index 0000000..97aa3a1 --- /dev/null +++ b/20_脚手架/vue_code/01.src_ref属性解析/main.js @@ -0,0 +1,9 @@ +import Vue from "vue"; +import App from "./App"; + +new Vue({ + components: { + App + }, + render: h => h(App) +}).$mount('#app') diff --git a/20_脚手架/vue_code/02.src_props配置/App.vue b/20_脚手架/vue_code/02.src_props配置/App.vue new file mode 100644 index 0000000..82ac3db --- /dev/null +++ b/20_脚手架/vue_code/02.src_props配置/App.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/02.src_props配置/assets/logo.png b/20_脚手架/vue_code/02.src_props配置/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/02.src_props配置/assets/logo.png differ diff --git a/20_脚手架/vue_code/02.src_props配置/components/Student.vue b/20_脚手架/vue_code/02.src_props配置/components/Student.vue new file mode 100644 index 0000000..9245f8a --- /dev/null +++ b/20_脚手架/vue_code/02.src_props配置/components/Student.vue @@ -0,0 +1,53 @@ + + + + diff --git a/20_脚手架/vue_code/02.src_props配置/main.js b/20_脚手架/vue_code/02.src_props配置/main.js new file mode 100644 index 0000000..97aa3a1 --- /dev/null +++ b/20_脚手架/vue_code/02.src_props配置/main.js @@ -0,0 +1,9 @@ +import Vue from "vue"; +import App from "./App"; + +new Vue({ + components: { + App + }, + render: h => h(App) +}).$mount('#app') diff --git a/20_脚手架/vue_code/src/App.vue b/20_脚手架/vue_code/src/App.vue new file mode 100644 index 0000000..82ac3db --- /dev/null +++ b/20_脚手架/vue_code/src/App.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Student.vue b/20_脚手架/vue_code/src/components/Student.vue new file mode 100644 index 0000000..9245f8a --- /dev/null +++ b/20_脚手架/vue_code/src/components/Student.vue @@ -0,0 +1,53 @@ + + + + diff --git a/20_脚手架/vue_code/src/main.js b/20_脚手架/vue_code/src/main.js new file mode 100644 index 0000000..97aa3a1 --- /dev/null +++ b/20_脚手架/vue_code/src/main.js @@ -0,0 +1,9 @@ +import Vue from "vue"; +import App from "./App"; + +new Vue({ + components: { + App + }, + render: h => h(App) +}).$mount('#app')