Skip to content

Commit

Permalink
fix: layout mix not support realDark
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Jul 22, 2022
1 parent a1eb755 commit 136ba15
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/pro-layout/examples/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ const baseState = reactive<Omit<RouteContextProps, 'menuData'>>({
const state = reactive({
menuData,
splitMenus: false,
splitMenus: true,
// title: 'ProLayout',
// logo: 'https://alicdn.antdv.com/v2/assets/logo.1ef800a8.svg',
navTheme: 'light',
navTheme: 'realDark',
layout: 'mix',
fixSiderbar: true,
fixedHeader: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/pro-layout/examples/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@ant-design-vue/pro-layout/style.less';

import { createApp } from 'vue';
import ProLayout, { PageContainer } from '@ant-design-vue/pro-layout';
import App from './App.vue';
Expand All @@ -10,6 +8,8 @@ import icons from './icons';
import 'ant-design-vue/es/result/style';
import 'ant-design-vue/es/button/style';
import 'ant-design-vue/es/message/style';
import 'ant-design-vue/dist/antd.dark.less';
import '@ant-design-vue/pro-layout/style.less';

const app = createApp(App);

Expand Down
1 change: 0 additions & 1 deletion packages/pro-layout/examples/views/Hello.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
status="404"
:style="{
height: '100%',
background: '#fff',
}"
title="Hello World"
sub-title="Sorry, you are not authorized to access this page."
Expand Down
1 change: 0 additions & 1 deletion packages/pro-layout/examples/views/MyPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
status="404"
:style="{
height: '100%',
background: '#fff',
}"
title="Hello World"
sub-title="Sorry, you are not authorized to access this page."
Expand Down
2 changes: 1 addition & 1 deletion packages/pro-layout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design-vue/pro-layout",
"version": "3.2.2",
"version": "3.2.3",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
Expand Down
2 changes: 1 addition & 1 deletion packages/pro-layout/src/components/SiderMenu/SiderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const SiderMenu: FunctionalComponent<SiderMenuProps> = (props: SiderMenuProps) =
const { getPrefixCls } = context;
const baseClassName = getPrefixCls('sider');
const hasSplitMenu = computed(() => props.layout === 'mix' && props.splitMenus);
const sTheme = computed(() => (props.layout === 'mix' && 'light') || props.navTheme);
const sTheme = computed(() => ((props.layout === 'mix' && props.navTheme !== 'realDark') && 'light') || props.navTheme);
const sSideWidth = computed(() => (props.collapsed ? props.collapsedWidth : props.siderWidth));
const classNames = computed(() => {
return {
Expand Down

0 comments on commit 136ba15

Please sign in to comment.