feat: The accordion mode of the menu is configurable

This commit is contained in:
vben
2024-05-22 22:56:26 +08:00
parent a0423eb9ba
commit c28adc9a94
12 changed files with 30 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ interface Props extends MenuProps {
}
const props = withDefaults(defineProps<Props>(), {
accordion: true,
menus: () => [],
});
@@ -25,6 +26,7 @@ function handleMenuSelect(key: string) {
:rounded="rounded"
:collapse-show-title="collapseShowTitle"
:collapse="collapse"
:accordion="accordion"
:default-active="defaultActive"
:menus="menus"
:theme="theme"