yc-ui2 0.1.1-beta01 → 0.1.1-beta02

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": "yc-ui2",
3
- "version": "0.1.1-beta01",
3
+ "version": "0.1.1-beta02",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
@@ -13,7 +13,6 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "core-js": "^3.8.3",
16
- "element-ui": "^2.15.14",
17
16
  "path": "^0.12.7",
18
17
  "vue": "^2.6.14",
19
18
  "vue-monoplasty-slide-verify": "^1.3.1"
@@ -24,13 +23,15 @@
24
23
  "@vue/cli-plugin-babel": "~5.0.0",
25
24
  "@vue/cli-plugin-eslint": "~5.0.0",
26
25
  "@vue/cli-service": "~5.0.0",
26
+ "element-ui": "^2.15.14",
27
27
  "eslint": "^7.32.0",
28
28
  "eslint-plugin-vue": "^8.0.3",
29
29
  "file-loader": "^6.2.0",
30
30
  "node-sass": "^9.0.0",
31
31
  "sass-loader": "^13.3.2",
32
32
  "url-loader": "^4.1.1",
33
- "vue-template-compiler": "^2.6.14"
33
+ "vue-template-compiler": "^2.6.14",
34
+ "vue-router": "3.4.9"
34
35
  },
35
36
  "eslintConfig": {
36
37
  "root": true,
package/src/main.js CHANGED
@@ -1,15 +1,18 @@
1
1
  import Vue from 'vue'
2
2
  import App from './App.vue'
3
+ import router from './router/index'
3
4
 
4
5
  import SlideVerify from "vue-monoplasty-slide-verify"
5
- import {Dialog} from 'element-ui'
6
+ import ElementUI from 'element-ui'
6
7
  import 'element-ui/lib/theme-chalk/index.css';
7
8
 
8
9
  Vue.config.productionTip = false
9
10
 
10
11
  Vue.use(SlideVerify)
11
- Vue.use(Dialog)
12
+ Vue.use(ElementUI)
12
13
 
13
14
  new Vue({
14
15
  render: h => h(App),
16
+ router
15
17
  }).$mount('#app')
18
+
@@ -0,0 +1,21 @@
1
+ import Vue from "vue"
2
+ import VueRouter from "vue-router"
3
+
4
+ Vue.use(VueRouter)
5
+
6
+ const routes = [
7
+ // {
8
+ // path: '/',
9
+ // component: Router1
10
+ // },
11
+ // {
12
+ // path: '/router2',
13
+ // component: Router2
14
+ // }
15
+ ]
16
+
17
+ const router = new VueRouter({
18
+ routes,
19
+ })
20
+
21
+ export default router
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file