mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
26 lines
618 B
JavaScript
26 lines
618 B
JavaScript
import 'antd/style.js'
|
|
import './index.less'
|
|
import 'highlight.js/styles/solarized-light.css'
|
|
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import routes from './routes'
|
|
import Md from './md'
|
|
import * as Components from '../components/index'
|
|
import demoBox from './components/demoBox'
|
|
Vue.use(VueRouter)
|
|
Vue.component(Md.name, Md)
|
|
Vue.component('demo-box', demoBox)
|
|
Object.keys(Components).forEach(k => {
|
|
const name = `a${k.replace(/([A-Z])/g, '-$1').toLowerCase()}`
|
|
Vue.component(name, Components[k])
|
|
})
|
|
|
|
const router = new VueRouter({
|
|
mode: 'hash',
|
|
routes,
|
|
})
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
})
|