* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [new feature] add i18n support * feat: Extract demos from markdown * feat: Base components demos * [new feature] complete demo extract & translate * [fix] text cases * fix: add deepAssign test cases * fix: changelog detail * [new feature] AddressEdit support i18n
35 lines
736 B
JavaScript
35 lines
736 B
JavaScript
import Vue from 'vue';
|
|
import VueRouter from 'vue-router';
|
|
import App from './WapApp';
|
|
import routes from './router.config';
|
|
import Vant, { Lazyload } from 'packages';
|
|
import VantDoc from 'vant-doc';
|
|
import 'packages/vant-css/src/index.css';
|
|
import 'vant-doc/src/helper/touch-simulator';
|
|
|
|
Vue.use(Vant);
|
|
Vue.use(VantDoc);
|
|
Vue.use(Lazyload, {
|
|
lazyComponent: true
|
|
});
|
|
Vue.use(VueRouter);
|
|
|
|
const routesConfig = routes(true);
|
|
const router = new VueRouter({
|
|
mode: 'hash',
|
|
base: '/zanui/vant/examples',
|
|
routes: routesConfig
|
|
});
|
|
|
|
window.vueRouter = router;
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
Vue.config.productionTip = false;
|
|
}
|
|
|
|
new Vue({ // eslint-disable-line
|
|
render: h => h(App),
|
|
router,
|
|
el: '#app-container'
|
|
});
|