ant-design-vue/site/dev.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

2018-06-16 13:47:32 +00:00
import 'babel-polyfill'
import '../components/style.js'
import './index.less'
import 'highlight.js/styles/solarized-light.css'
import Vue from 'vue'
2018-11-29 00:52:27 +00:00
import VueI18n from 'vue-i18n'
2018-06-16 13:47:32 +00:00
import VueRouter from 'vue-router'
import VueClipboard from 'vue-clipboard2'
import Md from './components/md'
import Api from './components/api'
import './components'
import demoBox from './components/demoBox'
import demoContainer from './components/demoContainer'
2018-12-05 10:31:58 +00:00
import Test from '../components/test/index.vue'
2018-11-29 00:52:27 +00:00
import zhCN from './theme/zh-CN'
import enUS from './theme/en-US'
2018-06-16 13:47:32 +00:00
Vue.use(VueClipboard)
Vue.use(VueRouter)
2018-11-29 00:52:27 +00:00
Vue.use(VueI18n)
2018-06-16 13:47:32 +00:00
Vue.component(Md.name, Md)
Vue.component(Api.name, Api)
Vue.component('demo-box', demoBox)
Vue.component('demo-container', demoContainer)
2018-11-29 00:52:27 +00:00
const i18n = new VueI18n({
locale: enUS.locale,
messages: {
[enUS.locale]: { message: enUS.messages },
[zhCN.locale]: { message: zhCN.messages },
},
})
2018-06-16 13:47:32 +00:00
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/*', component: Test },
],
})
new Vue({
el: '#app',
2018-11-29 00:52:27 +00:00
i18n,
2018-06-16 13:47:32 +00:00
router,
})