Blame view

test/main.js 1.2 KB
7fa943eb   梁灏   init
1
2
3
4
5
  /**
   * Created by aresn on 16/6/20.
   */
  import Vue from 'vue';
  import VueRouter from 'vue-router';
4df4ea19   jingsam   optimize project ...
6
  import App from './app.vue';
c571d9ec   梁灏   add a dialog to f...
7
  import iView from '../src/index';
d509d2b2   梁灏   fixed #192
8
  // import locale from '../src/locale/lang/en-US';
e5ac7925   梁灏   update Rate
9
  import locale from '../src/locale/lang/zh-CN';
7fa943eb   梁灏   init
10
11
  
  Vue.use(VueRouter);
e5ac7925   梁灏   update Rate
12
  Vue.use(iView, { locale });
7fa943eb   梁灏   init
13
14
15
16
17
  
  // 开启debug模式
  Vue.config.debug = true;
  
  // 路由配置
1f561319   梁灏   update webpack co...
18
19
20
21
22
  const router = new VueRouter({
      routes: [
          {
              path: '/affix',
              component: require('./routers/affix.vue')
c755733a   梁灏   support Grid
23
24
25
26
          },
          {
              path: '/grid',
              component: require('./routers/grid.vue')
d47ea998   梁灏   support Button an...
27
28
29
30
          },
          {
              path: '/button',
              component: require('./routers/button.vue')
fc7ef072   梁灏   support Input
31
32
33
34
          },
          {
              path: '/input',
              component: require('./routers/input.vue')
06322514   梁灏   support Radio
35
36
37
38
          },
          {
              path: '/radio',
              component: require('./routers/radio.vue')
cbe03a12   梁灏   support Checkbox
39
40
41
42
          },
          {
              path: '/checkbox',
              component: require('./routers/checkbox.vue')
bd596e7a   huixisheng   support Steps
43
44
45
46
          },
          {
            path: '/steps',
            component: require('./routers/steps.vue')
0a48ac45   梁灏   Input add readonl...
47
          }
1f561319   梁灏   update webpack co...
48
      ]
7fa943eb   梁灏   init
49
50
  });
  
1f561319   梁灏   update webpack co...
51
52
53
54
  new Vue({
      el: '#app',
      router: router,
      render: h => h(App)
7fa943eb   梁灏   init
55
  });