yc-ui2 0.1.1-beta02 → 0.1.1-beta04

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-beta02",
3
+ "version": "0.1.1-beta04",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
package/src/App.vue CHANGED
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div id="app">
3
3
  <!-- <YcSlideVerify /> -->
4
- <YcCustomerService />
4
+ <!-- <YcCustomerService /> -->
5
+ <!-- <router-view></router-view> -->
5
6
  </div>
6
7
  </template>
7
8
 
@@ -10,18 +11,15 @@ export default {
10
11
  name: "App",
11
12
  components: {
12
13
  // YcSlideVerify: () => import("comp/YcSlideVerify/index.vue"),
13
- YcCustomerService: () => import("comp/YcCustomerService/index.vue"),
14
+ // YcCustomerService: () => import("comp/YcCustomerService/index.vue"),
14
15
  },
15
16
  }
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>
@@ -4,18 +4,17 @@ import VueRouter from "vue-router"
4
4
  Vue.use(VueRouter)
5
5
 
6
6
  const routes = [
7
- // {
8
- // path: '/',
9
- // component: Router1
10
- // },
11
- // {
12
- // path: '/router2',
13
- // component: Router2
14
- // }
7
+ {
8
+ path: "/question",
9
+ component: (resolve) => require(['@/components/YcCustomerService/question'], resolve),
10
+ hidden: true,
11
+ },
15
12
  ]
16
13
 
17
14
  const router = new VueRouter({
18
15
  routes,
16
+ mode: "history", // 去掉url中的#
17
+ scrollBehavior: () => ({ y: 0 })
19
18
  })
20
19
 
21
20
  export default router