From 1dcc1f50740c1b4ed17c77a22562ccd662c85d15 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 17 Apr 2024 12:18:37 +0200 Subject: [PATCH] feat(DropdownMenu): add `#item` slot for consistency --- playground/pages/dropdown-menu.vue | 2 +- src/runtime/components/DropdownMenu.vue | 6 +- .../components/DropdownMenuContent.vue | 40 ++++-- src/theme/dropdown-menu.ts | 24 ++-- test/components/DropdownMenu.spec.ts | 18 ++- .../__snapshots__/DropdownMenu.spec.ts.snap | 130 +++++++++++++++++- 6 files changed, 184 insertions(+), 36 deletions(-) diff --git a/playground/pages/dropdown-menu.vue b/playground/pages/dropdown-menu.vue index a890eb59..7e510009 100644 --- a/playground/pages/dropdown-menu.vue +++ b/playground/pages/dropdown-menu.vue @@ -102,7 +102,7 @@ const items = computed(() => [