Skip to content

Commit ed213d8

Browse files
committed
fix(sider): mix mode adaptation in the left menu
1 parent e09e0a1 commit ed213d8

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

CHANGELOG.zh_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
- 优化`modal``drawer`滚动条组件
2727
- table: 移除 `isTreeTable`属性
28+
- 全局引入`less`文件。无需手动在组件再次引入
2829

2930
### 🎫 Chores
3031

@@ -40,6 +41,7 @@
4041
- 修复菜单分割时权限失效问题
4142
- 关闭多标签页时 iframe 提前加载
4243
- 修复`modal``drawer`已知问题
44+
- 修复左侧菜单混合模式适配问题
4345

4446
## 2.0.0-rc.14 (2020-12-15)
4547

src/components/Menu/src/BasicMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
111111
const inlineCollapseOptions: { inlineCollapsed?: boolean } = {};
112112
if (isInline) {
113-
inlineCollapseOptions.inlineCollapsed = unref(getCollapsed);
113+
inlineCollapseOptions.inlineCollapsed = props.mixSider ? false : unref(getCollapsed);
114114
}
115115
return inlineCollapseOptions;
116116
});

src/components/Menu/src/props.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ export const basicProps = {
1717
type: String as PropType<MenuModeEnum>,
1818
default: MenuModeEnum.INLINE,
1919
},
20+
2021
type: {
2122
type: String as PropType<MenuTypeEnum>,
2223
default: MenuTypeEnum.MIX,
2324
},
2425
theme: propTypes.string.def(ThemeEnum.DARK),
2526
inlineCollapsed: propTypes.bool,
27+
mixSider: propTypes.bool,
2628

2729
isHorizontal: propTypes.bool,
2830
accordion: propTypes.bool.def(true),

src/components/Upload/src/data.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FileItem, PreviewFileItem, UploadResultStatus } from './types';
44
import { checkImgType, isImgTypeByName } from './helper';
55
import { Progress, Tag } from 'ant-design-vue';
66

7-
import TableAction from '/@/components/Table/src/components/TableAction';
7+
import TableAction from '/@/components/Table/src/components/TableAction.vue';
88
import ThumbUrl from './ThumbUrl.vue';
99
import { useI18n } from '/@/hooks/web/useI18n';
1010
const { t } = useI18n();

src/layouts/default/sider/MixSider.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
mode="inline"
5555
:items="chilrenMenus"
5656
:theme="getMenuTheme"
57+
mixSider
5758
@menuClick="handleMenuClick"
5859
/>
5960
</ScrollContainer>

0 commit comments

Comments
 (0)