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 })