Blame view

examples/main.js 5.24 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
  const router = new VueRouter({
      routes: [
          {
a2eb0287   zhigang.li   add layout compon...
21
22
23
24
              path: '/layout',
              component: require('./routers/layout.vue')
          },
          {
1f561319   梁灏   update webpack co...
25
26
              path: '/affix',
              component: require('./routers/affix.vue')
c755733a   梁灏   support Grid
27
28
29
30
          },
          {
              path: '/grid',
              component: require('./routers/grid.vue')
d47ea998   梁灏   support Button an...
31
32
33
34
          },
          {
              path: '/button',
              component: require('./routers/button.vue')
fc7ef072   梁灏   support Input
35
36
37
38
          },
          {
              path: '/input',
              component: require('./routers/input.vue')
06322514   梁灏   support Radio
39
40
41
42
          },
          {
              path: '/radio',
              component: require('./routers/radio.vue')
cbe03a12   梁灏   support Checkbox
43
44
45
46
          },
          {
              path: '/checkbox',
              component: require('./routers/checkbox.vue')
bd596e7a   huixisheng   support Steps
47
48
          },
          {
257f80f1   梁灏   support Form
49
50
              path: '/steps',
              component: require('./routers/steps.vue')
6c9e0282   huixisheng   Support timeline
51
52
          },
          {
257f80f1   梁灏   support Form
53
54
              path: '/timeline',
              component: require('./routers/timeline.vue')
2d5ba278   梁灏   support Switch
55
56
57
58
          },
          {
              path: '/switch',
              component: require('./routers/switch.vue')
5d122b37   梁灏   support Alert
59
60
61
62
          },
          {
              path: '/alert',
              component: require('./routers/alert.vue')
15368be1   梁灏   Support Badge
63
64
65
66
          },
          {
              path: '/badge',
              component: require('./routers/badge.vue')
456daf34   梁灏   support Tag
67
68
69
70
          },
          {
              path: '/tag',
              component: require('./routers/tag.vue')
c97c42ab   梁灏   support InputNumber
71
72
73
74
          },
          {
              path: '/input-number',
              component: require('./routers/input-number.vue')
5d08ddf2   梁灏   support Progress ...
75
76
77
78
79
80
81
82
          },
          {
              path: '/upload',
              component: require('./routers/upload.vue')
          },
          {
              path: '/progress',
              component: require('./routers/progress.vue')
a190ce84   梁灏   support Collapse
83
84
85
86
          },
          {
              path: '/collapse',
              component: require('./routers/collapse.vue')
bb71140e   梁灏   support Carousel
87
88
89
90
          },
          {
              path: '/carousel',
              component: require('./routers/carousel.vue')
a8cb711c   huixisheng   Support Card
91
92
93
94
          },
          {
              path: '/card',
              component: require('./routers/card.vue')
49dd45f4   huixisheng   Merge branch '2.0...
95
96
          },
          {
34ee7b4a   梁灏   support Tree & ad...
97
98
              path: '/tree',
              component: require('./routers/tree.vue')
6aa72722   huixisheng   Support rate
99
100
101
102
          },
          {
              path: '/rate',
              component: require('./routers/rate.vue')
b2d29401   梁灏   support Circle
103
104
105
106
          },
          {
              path: '/circle',
              component: require('./routers/circle.vue')
30510c3d   梁灏   support Tabs
107
108
109
110
          },
          {
              path: '/tabs',
              component: require('./routers/tabs.vue')
d6f644e1   梁灏   support Tooltip
111
112
113
114
115
116
          },
          {
              path: '/tooltip',
              component: require('./routers/tooltip.vue')
          },
          {
79288d43   梁灏   support Poptip & ...
117
118
119
120
              path: '/poptip',
              component: require('./routers/poptip.vue')
          },
          {
d6f644e1   梁灏   support Tooltip
121
122
              path: '/slider',
              component: require('./routers/slider.vue')
b1c118d8   梁灏   support Dropdown
123
124
125
126
          },
          {
              path: '/dropdown',
              component: require('./routers/dropdown.vue')
c06e99d0   huixisheng   Support Breadcrumb
127
128
129
130
          },
          {
              path: '/breadcrumb',
              component: require('./routers/breadcrumb.vue')
fd1582c5   梁灏   support Menu & La...
131
132
133
134
          },
          {
              path: '/menu',
              component: require('./routers/menu.vue')
2d43f26b   梁灏   support Spin
135
136
137
138
          },
          {
              path: '/spin',
              component: require('./routers/spin.vue')
47a7f21d   梁灏   support Cascader
139
140
141
142
          },
          {
              path: '/cascader',
              component: require('./routers/cascader.vue')
4aec6a66   梁灏   support Select
143
144
145
146
          },
          {
              path: '/select',
              component: require('./routers/select.vue')
1d8f7767   mod   support BackTop t...
147
148
149
150
          },
          {
              path: '/backtop',
              component: require('./routers/back-top.vue')
7d535fc9   Aresn   Merge branch '2.0...
151
152
          },
          {
87c51597   梁灏   support Page
153
154
              path: '/page',
              component: require('./routers/page.vue')
5b19b5f5   梁灏   support Transfer
155
156
157
158
          },
          {
              path: '/transfer',
              component: require('./routers/transfer.vue')
531cd165   梁灏   support DatePicke...
159
160
161
162
          },
          {
              path: '/date',
              component: require('./routers/date.vue')
257f80f1   梁灏   support Form
163
164
165
166
167
          },
          {
              path: '/form',
              component: require('./routers/form.vue')
          },
486d4fda   梁灏   update Table
168
169
170
171
          {
              path: '/table',
              component: require('./routers/table.vue')
          },
f97e5bb0   梁灏   support LoadingBar
172
173
174
          {
              path: '/loading-bar',
              component: require('./routers/loading-bar.vue')
6259471f   梁灏   support Modal
175
176
177
178
          },
          {
              path: '/modal',
              component: require('./routers/modal.vue')
6cadeba4   梁灏   support Message
179
180
181
182
          },
          {
              path: '/message',
              component: require('./routers/message.vue')
833501a4   梁灏   support Notice
183
184
185
186
          },
          {
              path: '/notice',
              component: require('./routers/notice.vue')
2c5faf30   梁灏   init Avatar compo...
187
188
189
190
          },
          {
              path: '/avatar',
              component: require('./routers/avatar.vue')
c6faec44   梁灏   init ColorPicker
191
192
193
194
          },
          {
              path: '/color-picker',
              component: require('./routers/color-picker.vue')
fed3e09d   梁灏   add AutoComplete ...
195
196
197
198
          },
          {
              path: '/auto-complete',
              component: require('./routers/auto-complete.vue')
c6487ddf   梁灏   update dependencies
199
200
201
202
          },
          {
              path: '/scroll',
              component: require('./routers/scroll.vue')
f97e5bb0   梁灏   support LoadingBar
203
          }
1f561319   梁灏   update webpack co...
204
      ]
7fa943eb   梁灏   init
205
206
  });
  
1f561319   梁灏   update webpack co...
207
208
209
210
  new Vue({
      el: '#app',
      router: router,
      render: h => h(App)
7fa943eb   梁灏   init
211
  });