Blame view

examples/main.js 5.14 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
          },
          {
257f80f1   梁灏   support Form
45
46
              path: '/steps',
              component: require('./routers/steps.vue')
6c9e0282   huixisheng   Support timeline
47
48
          },
          {
257f80f1   梁灏   support Form
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')
b2d29401   梁灏   support Circle
99
100
101
102
          },
          {
              path: '/circle',
              component: require('./routers/circle.vue')
30510c3d   梁灏   support Tabs
103
104
105
106
          },
          {
              path: '/tabs',
              component: require('./routers/tabs.vue')
d6f644e1   梁灏   support Tooltip
107
108
109
110
111
112
          },
          {
              path: '/tooltip',
              component: require('./routers/tooltip.vue')
          },
          {
79288d43   梁灏   support Poptip & ...
113
114
115
116
              path: '/poptip',
              component: require('./routers/poptip.vue')
          },
          {
d6f644e1   梁灏   support Tooltip
117
118
              path: '/slider',
              component: require('./routers/slider.vue')
b1c118d8   梁灏   support Dropdown
119
120
121
122
          },
          {
              path: '/dropdown',
              component: require('./routers/dropdown.vue')
c06e99d0   huixisheng   Support Breadcrumb
123
124
125
126
          },
          {
              path: '/breadcrumb',
              component: require('./routers/breadcrumb.vue')
fd1582c5   梁灏   support Menu & La...
127
128
129
130
          },
          {
              path: '/menu',
              component: require('./routers/menu.vue')
2d43f26b   梁灏   support Spin
131
132
133
134
          },
          {
              path: '/spin',
              component: require('./routers/spin.vue')
47a7f21d   梁灏   support Cascader
135
136
137
138
          },
          {
              path: '/cascader',
              component: require('./routers/cascader.vue')
4aec6a66   梁灏   support Select
139
140
141
142
          },
          {
              path: '/select',
              component: require('./routers/select.vue')
1d8f7767   mod   support BackTop t...
143
144
145
146
          },
          {
              path: '/backtop',
              component: require('./routers/back-top.vue')
7d535fc9   Aresn   Merge branch '2.0...
147
148
          },
          {
87c51597   梁灏   support Page
149
150
              path: '/page',
              component: require('./routers/page.vue')
5b19b5f5   梁灏   support Transfer
151
152
153
154
          },
          {
              path: '/transfer',
              component: require('./routers/transfer.vue')
531cd165   梁灏   support DatePicke...
155
156
157
158
          },
          {
              path: '/date',
              component: require('./routers/date.vue')
257f80f1   梁灏   support Form
159
160
161
162
163
          },
          {
              path: '/form',
              component: require('./routers/form.vue')
          },
486d4fda   梁灏   update Table
164
165
166
167
          {
              path: '/table',
              component: require('./routers/table.vue')
          },
f97e5bb0   梁灏   support LoadingBar
168
169
170
          {
              path: '/loading-bar',
              component: require('./routers/loading-bar.vue')
6259471f   梁灏   support Modal
171
172
173
174
          },
          {
              path: '/modal',
              component: require('./routers/modal.vue')
6cadeba4   梁灏   support Message
175
176
177
178
          },
          {
              path: '/message',
              component: require('./routers/message.vue')
833501a4   梁灏   support Notice
179
180
181
182
          },
          {
              path: '/notice',
              component: require('./routers/notice.vue')
2c5faf30   梁灏   init Avatar compo...
183
184
185
186
          },
          {
              path: '/avatar',
              component: require('./routers/avatar.vue')
c6faec44   梁灏   init ColorPicker
187
188
189
190
          },
          {
              path: '/color-picker',
              component: require('./routers/color-picker.vue')
fed3e09d   梁灏   add AutoComplete ...
191
192
193
194
          },
          {
              path: '/auto-complete',
              component: require('./routers/auto-complete.vue')
c6487ddf   梁灏   update dependencies
195
196
197
198
          },
          {
              path: '/scroll',
              component: require('./routers/scroll.vue')
f97e5bb0   梁灏   support LoadingBar
199
          }
1f561319   梁灏   update webpack co...
200
      ]
7fa943eb   梁灏   init
201
202
  });
  
1f561319   梁灏   update webpack co...
203
204
205
206
  new Vue({
      el: '#app',
      router: router,
      render: h => h(App)
7fa943eb   梁灏   init
207
  });