From a96c6c210950062f8135fe116eed5899d1aedbd9 Mon Sep 17 00:00:00 2001 From: roger_home_pc Date: Sun, 17 Sep 2023 14:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=AD=A6=E4=B9=A0=EF=BC=9A?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E7=9F=A5=E8=AF=86=EF=BC=8C=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=BC=8FAPI&=E7=BB=84=E5=90=88=E5=BC=8FAPI=EF=BC=8C=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=80=9A=E4=BF=A1=20props=EF=BC=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=80=9A=E4=BF=A1=20$emit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/component-api/App.vue | 29 ++++++++++ .../components/ChildComponentA.vue | 42 ++++++++++++++ .../components/ChildComponentB.vue | 45 ++++++++++++++ .../components/ChildComponentC.vue | 36 ++++++++++++ demo/component-emit/App.vue | 38 ++++++++++++ .../components/ChildComponentA.vue | 38 ++++++++++++ demo/component-props/App.vue | 24 ++++++++ .../components/ChildComponentA.vue | 33 +++++++++++ src/App-org.vue | 26 --------- src/App.vue | 46 +++++++-------- src/components/ChildComponentA.vue | 38 ++++++++++++ src/components/HelloWorld.vue | 58 ------------------- src/main-org.js | 8 --- vue.config.js | 3 +- 14 files changed, 345 insertions(+), 119 deletions(-) create mode 100644 demo/component-api/App.vue create mode 100644 demo/component-api/components/ChildComponentA.vue create mode 100644 demo/component-api/components/ChildComponentB.vue create mode 100644 demo/component-api/components/ChildComponentC.vue create mode 100644 demo/component-emit/App.vue create mode 100644 demo/component-emit/components/ChildComponentA.vue create mode 100644 demo/component-props/App.vue create mode 100644 demo/component-props/components/ChildComponentA.vue delete mode 100644 src/App-org.vue create mode 100644 src/components/ChildComponentA.vue delete mode 100644 src/components/HelloWorld.vue delete mode 100644 src/main-org.js diff --git a/demo/component-api/App.vue b/demo/component-api/App.vue new file mode 100644 index 0000000..e1453b5 --- /dev/null +++ b/demo/component-api/App.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/demo/component-api/components/ChildComponentA.vue b/demo/component-api/components/ChildComponentA.vue new file mode 100644 index 0000000..09d6acc --- /dev/null +++ b/demo/component-api/components/ChildComponentA.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/demo/component-api/components/ChildComponentB.vue b/demo/component-api/components/ChildComponentB.vue new file mode 100644 index 0000000..e4a9b2d --- /dev/null +++ b/demo/component-api/components/ChildComponentB.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/demo/component-api/components/ChildComponentC.vue b/demo/component-api/components/ChildComponentC.vue new file mode 100644 index 0000000..ab4225c --- /dev/null +++ b/demo/component-api/components/ChildComponentC.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/demo/component-emit/App.vue b/demo/component-emit/App.vue new file mode 100644 index 0000000..a167f21 --- /dev/null +++ b/demo/component-emit/App.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/demo/component-emit/components/ChildComponentA.vue b/demo/component-emit/components/ChildComponentA.vue new file mode 100644 index 0000000..2da5514 --- /dev/null +++ b/demo/component-emit/components/ChildComponentA.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/demo/component-props/App.vue b/demo/component-props/App.vue new file mode 100644 index 0000000..96d3e8f --- /dev/null +++ b/demo/component-props/App.vue @@ -0,0 +1,24 @@ + + + + + diff --git a/demo/component-props/components/ChildComponentA.vue b/demo/component-props/components/ChildComponentA.vue new file mode 100644 index 0000000..44c34e9 --- /dev/null +++ b/demo/component-props/components/ChildComponentA.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/App-org.vue b/src/App-org.vue deleted file mode 100644 index 591a031..0000000 --- a/src/App-org.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git a/src/App.vue b/src/App.vue index 390e7e2..a167f21 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,44 +1,38 @@ - diff --git a/src/components/ChildComponentA.vue b/src/components/ChildComponentA.vue new file mode 100644 index 0000000..2da5514 --- /dev/null +++ b/src/components/ChildComponentA.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 879051a..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - diff --git a/src/main-org.js b/src/main-org.js deleted file mode 100644 index b775cfd..0000000 --- a/src/main-org.js +++ /dev/null @@ -1,8 +0,0 @@ -import {createApp} from 'vue' -import ElementPlus from 'element-plus' // 完整引入Element-Plus -import 'element-plus/dist/index.css' // 引入样式文件 -import App from './App-org.vue' - -const app = createApp(App) -app.use(ElementPlus, {size: 'small', zIndex: 3000}) -app.mount('#app') diff --git a/vue.config.js b/vue.config.js index 910e297..6596a0b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ - transpileDependencies: true + transpileDependencies: true, + lintOnSave: false })