mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
build docs
This commit is contained in:
parent
c98d7caa43
commit
71c0e3c3a0
2
docs/dist/0.js
vendored
2
docs/dist/0.js
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/zanui-docs.js
vendored
2
docs/dist/zanui-docs.js
vendored
File diff suppressed because one or more lines are too long
@ -46,6 +46,16 @@ router.beforeEach((route, redirect, next) => {
|
||||
next();
|
||||
});
|
||||
|
||||
router.afterEach((route) => {
|
||||
if (route.path !== '/') {
|
||||
const sideNavBox = document.querySelector('.side-nav');
|
||||
const pageContentBox = document.querySelector('.page-content');
|
||||
if (pageContentBox) {
|
||||
pageContentBox.style.height = Math.max(sideNavBox && sideNavBox.clientHeight, pageContentBox && pageContentBox.clientHeight) + 'px';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
new Vue({ // eslint-disable-line
|
||||
render: h => h(App),
|
||||
router
|
||||
|
Loading…
x
Reference in New Issue
Block a user