From 5f77aac368448c7c45a0f9238d2dc3a5b0de825e Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 27 Sep 2024 11:44:52 +0200 Subject: [PATCH] feat(Drawer): handle `direction` + `handle` props --- .../CommandPaletteOpenExample.vue | 7 +- .../drawer/DrawerCommandPaletteExample.vue | 7 +- .../drawer/DrawerFooterSlotExample.vue | 2 +- .../modal/ModalCommandPaletteExample.vue | 7 +- docs/content/3.components/drawer.md | 82 +++++++++ playground/app/pages/components/drawer.vue | 32 ++++ src/runtime/components/Drawer.vue | 22 ++- src/theme/drawer.ts | 41 ++++- test/components/Drawer.spec.ts | 4 + .../__snapshots__/Drawer.spec.ts.snap | 158 ++++++++++++++---- 10 files changed, 312 insertions(+), 50 deletions(-) diff --git a/docs/app/components/content/examples/command-palette/CommandPaletteOpenExample.vue b/docs/app/components/content/examples/command-palette/CommandPaletteOpenExample.vue index 7e25d417..6beecf96 100644 --- a/docs/app/components/content/examples/command-palette/CommandPaletteOpenExample.vue +++ b/docs/app/components/content/examples/command-palette/CommandPaletteOpenExample.vue @@ -12,7 +12,12 @@ const users = [