Closed LanceJiang closed 2 months ago
Latest commit: 91aa59a11a231f030a2673e700cc3a2827fc1bcf
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
A new watcher has been implemented in the layout component to monitor changes to preferences.app.layout
. When the layout is set to 'sidebar-mixed-nav'
and the sidebar is hidden, the watcher updates the preferences to ensure the sidebar is visible. This adjustment allows for a responsive layout that aligns the sidebar's visibility with user-selected layout preferences.
File | Change Summary |
---|---|
packages/effects/layouts/src/basic/layout.vue |
Added a watcher that updates sidebar visibility based on layout preferences. |
useVbenModal
function, which may relate to UI component handling similar to the sidebar visibility logic introduced in this PR.bug
In a layout where rabbits play,
The sidebar now comes out to stay.
With a flick of a switch,
No more hidden glitch,
Hopping along, brightening the day! 🐇✨
packages/effects/layouts/src/basic/layout.vue (1)
`146-157`: **LGTM! The watcher correctly updates the sidebar visibility based on the selected layout.** The added watcher addresses the issue mentioned in the PR objectives, where users encountered difficulties locating the main menu after switching to the `sidebar-mixed-nav` layout. By setting the sidebar's `hidden` property to `false` when the `'sidebar-mixed-nav'` layout is selected and the sidebar is hidden, the change ensures that the sidebar becomes visible, making it easier for users to locate the main menu.
Description
主题sidebar-nav 布局 隐藏 菜单后 --> 切换为 sidebar-mixed-nav 布局 找不到主菜单 & Header 宽度计算 空白问题
Type of change
Please delete options that are not relevant.
Summary by CodeRabbit