Skip to content

Commit

Permalink
fix(sider): mix mode adaptation in the left menu
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 30, 2020
1 parent e09e0a1 commit ed213d8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

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

### 🎫 Chores

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/src/BasicMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
const inlineCollapseOptions: { inlineCollapsed?: boolean } = {};
if (isInline) {
inlineCollapseOptions.inlineCollapsed = unref(getCollapsed);
inlineCollapseOptions.inlineCollapsed = props.mixSider ? false : unref(getCollapsed);
}
return inlineCollapseOptions;
});
Expand Down
2 changes: 2 additions & 0 deletions src/components/Menu/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ export const basicProps = {
type: String as PropType<MenuModeEnum>,
default: MenuModeEnum.INLINE,
},

type: {
type: String as PropType<MenuTypeEnum>,
default: MenuTypeEnum.MIX,
},
theme: propTypes.string.def(ThemeEnum.DARK),
inlineCollapsed: propTypes.bool,
mixSider: propTypes.bool,

isHorizontal: propTypes.bool,
accordion: propTypes.bool.def(true),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Upload/src/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FileItem, PreviewFileItem, UploadResultStatus } from './types';
import { checkImgType, isImgTypeByName } from './helper';
import { Progress, Tag } from 'ant-design-vue';

import TableAction from '/@/components/Table/src/components/TableAction';
import TableAction from '/@/components/Table/src/components/TableAction.vue';
import ThumbUrl from './ThumbUrl.vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
Expand Down
1 change: 1 addition & 0 deletions src/layouts/default/sider/MixSider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
mode="inline"
:items="chilrenMenus"
:theme="getMenuTheme"
mixSider
@menuClick="handleMenuClick"
/>
</ScrollContainer>
Expand Down

0 comments on commit ed213d8

Please sign in to comment.