You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/examples/index.js

26 lines
618 B

7 years ago
import 'antd/style.js'
7 years ago
import './index.less'
7 years ago
import 'highlight.js/styles/solarized-light.css'
7 years ago
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
7 years ago
import Md from './md'
7 years ago
import * as Components from '../components/index'
import demoBox from './components/demoBox'
7 years ago
Vue.use(VueRouter)
7 years ago
Vue.component(Md.name, Md)
7 years ago
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])
})
7 years ago
const router = new VueRouter({
7 years ago
mode: 'hash',
7 years ago
routes,
})
7 years ago
new Vue({
el: '#app',
7 years ago
router,
7 years ago
})