fix(mdAnchor):折叠Anchor时body宽度自适应

This commit is contained in:
sight 2021-12-31 00:47:28 +08:00
parent 52beb5e9b7
commit fa94d75f0b

View File

@ -67,6 +67,7 @@ const classAsideBtn = computed(() => [
const handlerBtnClick = () => {
show.value = !show.value;
iconType.value = show.value ? "layui-icon-right" : "layui-icon-left";
scrollRefEl.value!.firstElementChild!.style.marginRight = show.value ? "180px" : "0px";
};
const handlerListItemClick = (index: number, id: string) => {