mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix docs
This commit is contained in:
parent
deca5b8ba3
commit
548bc6300b
@ -96,6 +96,7 @@ ul, ol {
|
|||||||
> ul li,
|
> ul li,
|
||||||
> ol li {
|
> ol li {
|
||||||
color: #666;
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
margin: 10px 0 10px 20px;
|
margin: 10px 0 10px 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
@ -47,11 +47,10 @@ router.beforeEach((route, redirect, next) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
router.afterEach((route) => {
|
router.afterEach((route) => {
|
||||||
if (route.page !== '/') {
|
if (route.path !== '/') {
|
||||||
const sideNavHeight = document.querySelector('.side-nav').clientHeight;
|
const sideNavBox = document.querySelector('.side-nav');
|
||||||
const pageContentBox = document.querySelector('.page-content');
|
const pageContentBox = document.querySelector('.page-content');
|
||||||
const pageContentHeight = pageContentBox.clientHeight;
|
pageContentBox.style.height = Math.max(sideNavBox && sideNavBox.clientHeight, pageContentBox && pageContentBox.clientHeight) + 'px';
|
||||||
pageContentBox.style.height = Math.max(sideNavHeight, pageContentHeight) + 'px';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user