mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
zanui demos
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import App from './ExamplesDocsApp';
|
||||
import navConfig from './nav.config.json';
|
||||
import routes from './router.config';
|
||||
import demoBlock from './components/demo-block';
|
||||
import SideNav from './components/side-nav';
|
||||
import Mobile from './components/mobile';
|
||||
import Oxygen from '../src/index';
|
||||
|
||||
import 'packages/zanui-css/src/index.css';
|
||||
@@ -12,11 +14,12 @@ Vue.use(Oxygen);
|
||||
Vue.use(VueRouter);
|
||||
Vue.component('demo-block', demoBlock);
|
||||
Vue.component('side-nav', SideNav);
|
||||
Vue.component('mobile', Mobile);
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'hash',
|
||||
base: __dirname,
|
||||
routes
|
||||
routes: routes(navConfig)
|
||||
});
|
||||
|
||||
let indexScrollTop = 0;
|
||||
|
Reference in New Issue
Block a user