Skip to content

Commit 6a89814

Browse files
committed
chore: 优化侧边栏展开折叠图标
1 parent 52d3aa9 commit 6a89814

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@core/ui-kit/layout-ui/src/vben-layout.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
useLayoutFooterStyle,
1111
useLayoutHeaderStyle,
1212
} from '@vben-core/composables';
13-
import { Menu } from '@vben-core/icons';
13+
import { IconifyIcon } from '@vben-core/icons';
1414
import { VbenIconButton } from '@vben-core/shadcn-ui';
1515
import { ELEMENT_ID_MAIN_CONTENT } from '@vben-core/shared/constants';
1616
@@ -559,7 +559,8 @@ const idMainContent = ELEMENT_ID_MAIN_CONTENT;
559559
class="my-0 mr-1 rounded-md"
560560
@click="handleHeaderToggle"
561561
>
562-
<Menu class="size-4" />
562+
<IconifyIcon v-if="showSidebar" icon="ep:fold" />
563+
<IconifyIcon v-else icon="ep:expand" />
563564
</VbenIconButton>
564565
</template>
565566
<slot name="header"></slot>

0 commit comments

Comments
 (0)