Blame view

test/main.js 2.53 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')
6c9e0282   huixisheng   Support timeline
47
48
49
50
          },
          {
            path: '/timeline',
            component: require('./routers/timeline.vue')
2d5ba278   梁灏   support Switch
51
52
53
54
          },
          {
              path: '/switch',
              component: require('./routers/switch.vue')
5d122b37   梁灏   support Alert
55
56
57
58
          },
          {
              path: '/alert',
              component: require('./routers/alert.vue')
15368be1   梁灏   Support Badge
59
60
61
62
          },
          {
              path: '/badge',
              component: require('./routers/badge.vue')
456daf34   梁灏   support Tag
63
64
65
66
          },
          {
              path: '/tag',
              component: require('./routers/tag.vue')
c97c42ab   梁灏   support InputNumber
67
68
69
70
          },
          {
              path: '/input-number',
              component: require('./routers/input-number.vue')
5d08ddf2   梁灏   support Progress ...
71
72
73
74
75
76
77
78
          },
          {
              path: '/upload',
              component: require('./routers/upload.vue')
          },
          {
              path: '/progress',
              component: require('./routers/progress.vue')
a190ce84   梁灏   support Collapse
79
80
81
82
          },
          {
              path: '/collapse',
              component: require('./routers/collapse.vue')
bb71140e   梁灏   support Carousel
83
84
85
86
          },
          {
              path: '/carousel',
              component: require('./routers/carousel.vue')
a8cb711c   huixisheng   Support Card
87
88
89
90
          },
          {
              path: '/card',
              component: require('./routers/card.vue')
49dd45f4   huixisheng   Merge branch '2.0...
91
92
          },
          {
34ee7b4a   梁灏   support Tree & ad...
93
94
              path: '/tree',
              component: require('./routers/tree.vue')
6aa72722   huixisheng   Support rate
95
96
97
98
          },
          {
              path: '/rate',
              component: require('./routers/rate.vue')
0a48ac45   梁灏   Input add readonl...
99
          }
1f561319   梁灏   update webpack co...
100
      ]
7fa943eb   梁灏   init
101
102
  });
  
1f561319   梁灏   update webpack co...
103
104
105
106
  new Vue({
      el: '#app',
      router: router,
      render: h => h(App)
7fa943eb   梁灏   init
107
  });