Commit c4c85f23edfca50fe8b58c8fe54cf2115848008b
1 parent
899ad697
Use babel-polyfill for testing examples
(Polyfill) This is required when developing with older browser i.e. IE11. The locale change is because it is really difficult for non-chinese reading/speaking developers to understand what they are seeing on the page when developing this project.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
examples/main.js
1 | /** | 1 | /** |
2 | * Created by aresn on 16/6/20. | 2 | * Created by aresn on 16/6/20. |
3 | */ | 3 | */ |
4 | +import 'babel-polyfill'; | ||
4 | import Vue from 'vue'; | 5 | import Vue from 'vue'; |
5 | import VueRouter from 'vue-router'; | 6 | import VueRouter from 'vue-router'; |
6 | import App from './app.vue'; | 7 | import App from './app.vue'; |
7 | import iView from '../src/index'; | 8 | import iView from '../src/index'; |
8 | -// import locale from '../src/locale/lang/en-US'; | ||
9 | -import locale from '../src/locale/lang/zh-CN'; | 9 | +import locale from '../src/locale/lang/en-US'; |
10 | +// import locale from '../src/locale/lang/zh-CN'; | ||
10 | 11 | ||
11 | Vue.use(VueRouter); | 12 | Vue.use(VueRouter); |
12 | Vue.use(iView, { locale }); | 13 | Vue.use(iView, { locale }); |