From 94db8ce92fd6b78030e89cdf39e996036e865a37 Mon Sep 17 00:00:00 2001
From: Prospector <6166773+Prospector@users.noreply.github.com>
Date: Wed, 6 Dec 2023 15:38:00 -0800
Subject: [PATCH] Add hover menus and fix ProjectCard issue with omitted
properties (#166)
* Adds hover menus
* Allow ProjectCard props to be omitted
* Bump version
---
docs/components/popout-menu.md | 21 +++
lib/components/base/OverflowMenu.vue | 5 +
lib/components/base/PopoutMenu.vue | 200 +++++++++++++++++++--------
lib/components/base/ProjectCard.vue | 14 +-
package.json | 2 +-
5 files changed, 179 insertions(+), 63 deletions(-)
diff --git a/docs/components/popout-menu.md b/docs/components/popout-menu.md
index 31d11de08..cf24f5517 100644
--- a/docs/components/popout-menu.md
+++ b/docs/components/popout-menu.md
@@ -74,3 +74,24 @@
```
+
+# Popout Menu on hover
+
+
+ Hover me!
+
+ Menu contents!
+ Menu contents!
+ Menu contents!
+
+
+
+
+```vue
+
+ Hover me!
+
+ Menu contents!
+
+
+```
diff --git a/lib/components/base/OverflowMenu.vue b/lib/components/base/OverflowMenu.vue
index d597b5fa2..82865e5c0 100644
--- a/lib/components/base/OverflowMenu.vue
+++ b/lib/components/base/OverflowMenu.vue
@@ -5,6 +5,7 @@
:disabled="disabled"
:position="position"
:direction="direction"
+ :allow-hover="allowHover"
>
@@ -66,6 +67,10 @@ defineProps({
type: String,
default: 'left',
},
+ allowHover: {
+ type: Boolean,
+ default: false,
+ },
})
defineOptions({
inheritAttrs: false,
diff --git a/lib/components/base/PopoutMenu.vue b/lib/components/base/PopoutMenu.vue
index d979ac083..06ecbe3ce 100644
--- a/lib/components/base/PopoutMenu.vue
+++ b/lib/components/base/PopoutMenu.vue
@@ -1,5 +1,11 @@
-