2019-06-03 13:47:12 +08:00
|
|
|
import Vue from 'vue/dist/vue'
|
|
|
|
import VueRouter from 'vue-router'
|
2019-05-24 20:09:35 +08:00
|
|
|
import '../styles/index.scss'
|
|
|
|
import Demo from './demo.vue'
|
2019-06-03 13:47:12 +08:00
|
|
|
import Card from 'packages/common/Card'
|
|
|
|
import Icon from 'packages/common/Icon'
|
|
|
|
import SideMenu from 'packages/nimbus/SideMenu'
|
|
|
|
import Layout from 'packages/nimbus/Layout'
|
|
|
|
|
|
|
|
import sideMenuDemo from './components/sideMenuDemo'
|
|
|
|
|
|
|
|
Vue.use(VueRouter)
|
2019-05-24 20:09:35 +08:00
|
|
|
|
|
|
|
Card.install(Vue)
|
|
|
|
Icon.install(Vue)
|
2019-06-03 13:47:12 +08:00
|
|
|
SideMenu.install(Vue)
|
|
|
|
Layout.install(Vue)
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{ path: '/sidemenu', component: sideMenuDemo }
|
|
|
|
]
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
routes
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;(new Vue({
|
|
|
|
router
|
|
|
|
})).$mount('#app')
|
2019-05-24 20:09:35 +08:00
|
|
|
|
2019-06-03 13:47:12 +08:00
|
|
|
console.log('...')
|