diff --git a/20_脚手架/vue_code/17.src_过度与动画/App.vue b/20_脚手架/vue_code/17.src_过度与动画/App.vue new file mode 100644 index 0000000..eaa53a7 --- /dev/null +++ b/20_脚手架/vue_code/17.src_过度与动画/App.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/17.src_过度与动画/assets/logo.png b/20_脚手架/vue_code/17.src_过度与动画/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue_code/17.src_过度与动画/assets/logo.png differ diff --git a/20_脚手架/vue_code/17.src_过度与动画/components/Test.vue b/20_脚手架/vue_code/17.src_过度与动画/components/Test.vue new file mode 100644 index 0000000..ace11ae --- /dev/null +++ b/20_脚手架/vue_code/17.src_过度与动画/components/Test.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/17.src_过度与动画/components/Test2.vue b/20_脚手架/vue_code/17.src_过度与动画/components/Test2.vue new file mode 100644 index 0000000..8b54a16 --- /dev/null +++ b/20_脚手架/vue_code/17.src_过度与动画/components/Test2.vue @@ -0,0 +1,41 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/17.src_过度与动画/components/Test3.vue b/20_脚手架/vue_code/17.src_过度与动画/components/Test3.vue new file mode 100644 index 0000000..e05c435 --- /dev/null +++ b/20_脚手架/vue_code/17.src_过度与动画/components/Test3.vue @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/17.src_过度与动画/main.js b/20_脚手架/vue_code/17.src_过度与动画/main.js new file mode 100644 index 0000000..4d5e394 --- /dev/null +++ b/20_脚手架/vue_code/17.src_过度与动画/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/package-lock.json b/20_脚手架/vue_code/package-lock.json index d6b8488..5a66cc0 100644 --- a/20_脚手架/vue_code/package-lock.json +++ b/20_脚手架/vue_code/package-lock.json @@ -8,6 +8,7 @@ "name": "vue_code", "version": "0.1.0", "dependencies": { + "animate.css": "^4.1.1", "core-js": "^3.8.3", "pubsub-js": "^1.9.4", "vue": "^2.6.14" @@ -3170,6 +3171,11 @@ "ajv": "^6.9.1" } }, + "node_modules/animate.css": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/animate.css/-/animate.css-4.1.1.tgz", + "integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ==" + }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -13274,6 +13280,11 @@ "dev": true, "requires": {} }, + "animate.css": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/animate.css/-/animate.css-4.1.1.tgz", + "integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ==" + }, "ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-4.1.3.tgz", diff --git a/20_脚手架/vue_code/package.json b/20_脚手架/vue_code/package.json index 5502076..4afb74c 100644 --- a/20_脚手架/vue_code/package.json +++ b/20_脚手架/vue_code/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "animate.css": "^4.1.1", "core-js": "^3.8.3", "pubsub-js": "^1.9.4", "vue": "^2.6.14" diff --git a/20_脚手架/vue_code/src/App.vue b/20_脚手架/vue_code/src/App.vue index 654edd1..eaa53a7 100644 --- a/20_脚手架/vue_code/src/App.vue +++ b/20_脚手架/vue_code/src/App.vue @@ -2,18 +2,21 @@
+
diff --git a/20_脚手架/vue_code/src/components/Test3.vue b/20_脚手架/vue_code/src/components/Test3.vue new file mode 100644 index 0000000..e05c435 --- /dev/null +++ b/20_脚手架/vue_code/src/components/Test3.vue @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file