woodao-pc-ui 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodao-pc-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
-
3
+ <pig-button></pig-button>
4
4
  </div>
5
5
 
6
6
  </template>
package/src/main.js CHANGED
@@ -1,4 +1,9 @@
1
1
  import { createApp } from 'vue'
2
2
  import App from './App.vue'
3
+ // 引入本地开发的组件库
4
+ import WoodaoPcUi from './package/index'
3
5
 
4
- createApp(App).mount('#app')
6
+ const app = createApp(App)
7
+ // 注册组件库
8
+ app.use(WoodaoPcUi)
9
+ app.mount('#app')