ant-design-vue/site/dev.js

32 lines
790 B
JavaScript
Raw Normal View History

2018-06-16 21:47:32 +08:00
import 'babel-polyfill'
import '../components/style.js'
import './index.less'
import 'highlight.js/styles/solarized-light.css'
import Vue from 'vue'
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-07-02 16:24:19 +08:00
import Test from '../components/upload/demo/index'
2018-06-16 21:47:32 +08:00
Vue.use(VueClipboard)
Vue.use(VueRouter)
Vue.component(Md.name, Md)
Vue.component(Api.name, Api)
Vue.component('demo-box', demoBox)
Vue.component('demo-container', demoContainer)
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/*', component: Test },
],
})
new Vue({
el: '#app',
router,
})