yc-ui2 0.1.1-beta01 → 0.1.1-beta03

Sign up to get free protection for your applications and to get access to all the features.
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-beta03",
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/App.vue CHANGED
@@ -2,6 +2,7 @@
2
2
  <div id="app">
3
3
  <!-- <YcSlideVerify /> -->
4
4
  <YcCustomerService />
5
+ <router-view></router-view>
5
6
  </div>
6
7
  </template>
7
8
 
@@ -16,12 +17,9 @@ export default {
16
17
  </script>
17
18
 
18
19
  <style>
19
- #app {
20
- font-family: Avenir, Helvetica, Arial, sans-serif;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- text-align: center;
24
- color: #2c3e50;
25
- margin-top: 60px;
20
+ html,
21
+ body {
22
+ padding: 0px;
23
+ margin: 0px;
26
24
  }
27
25
  </style>
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
- Vue.config.productionTip = false
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,20 @@
1
+ import Vue from "vue"
2
+ import VueRouter from "vue-router"
3
+
4
+ Vue.use(VueRouter)
5
+
6
+ const routes = [
7
+ {
8
+ path: "/question",
9
+ component: (resolve) => require(['@/components/YcCustomerService/question'], resolve),
10
+ hidden: true,
11
+ },
12
+ ]
13
+
14
+ const router = new VueRouter({
15
+ routes,
16
+ mode: "history", // 去掉url中的#
17
+ scrollBehavior: () => ({ y: 0 })
18
+ })
19
+
20
+ export default router
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file