Skip to content

Commit

Permalink
fix(sider): bottom trigger not work
Browse files Browse the repository at this point in the history
修复侧边栏底部的折叠按钮不工作的问题

fixed: #820
  • Loading branch information
mynetfan committed Jun 28, 2021
1 parent c7de65e commit 1bde404
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 🐛 Bug Fixes

- **Modal** 修复点击遮罩不能关闭
- **Table** 修复 `editComponentProps` 不支持 `onChange`
- **Modal** 修复 `setModalProps` 不支持设置 `defaultFullscreen`
- **Sider** 修复侧边菜单底部的折叠按钮点击无效

## 2.5.2(2021-06-27)

### ⚡ Performance Improvements
Expand Down
3 changes: 3 additions & 0 deletions src/layouts/default/sider/LayoutSider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:collapsedWidth="getCollapsedWidth"
:theme="getMenuTheme"
@breakpoint="onBreakpointChange"
@collapse="toggleCollapsed"
v-bind="getTriggerAttr"
>
<template #trigger v-if="getShowTrigger">
Expand Down Expand Up @@ -55,6 +56,7 @@
getMenuHidden,
getMenuFixed,
getIsMixMode,
toggleCollapsed,
} = useMenuSetting();
const { prefixCls } = useDesign('layout-sideBar');
Expand Down Expand Up @@ -119,6 +121,7 @@
getMode,
getSplitType,
getShowTrigger,
toggleCollapsed,
};
},
});
Expand Down

0 comments on commit 1bde404

Please sign in to comment.