feat: aside 可配置隐藏/增加按钮可展开或收缩aside

This commit is contained in:
Jerry
2020-10-21 21:54:14 +08:00
Unverified
parent c54f23bc14
commit 6b35388f33
8 changed files with 30 additions and 3 deletions

View File

@@ -483,6 +483,11 @@ $(function () {
// Back to top
$rightsideEle.on('click', '#go-up', () => btf.scrollToDest('body'))
$rightsideEle.on('click', '#hide-aside-btn', () => {
const $htmlDom = $(document.documentElement)
$htmlDom.hasClass('hide-aside') ? $htmlDom.removeClass('hide-aside') : $htmlDom.addClass('hide-aside')
})
/**
* menu
* 側邊欄sub-menu 展開/收縮