From fd1270f652d402925f60de98c3d87de1b69a7445 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 18 Apr 2023 10:03:29 +0530 Subject: [PATCH] incr: add transition and delays to popover - use delay for quickview - fix quickview height issue in autocomplete --- src/components/Controls/AutoComplete.vue | 21 +++++++++---- src/components/Popover.vue | 40 +++++++++++++++++++----- src/components/QuickView.vue | 9 ++++-- 3 files changed, 54 insertions(+), 16 deletions(-) diff --git a/src/components/Controls/AutoComplete.vue b/src/components/Controls/AutoComplete.vue index 27601784..5b608283 100644 --- a/src/components/Controls/AutoComplete.vue +++ b/src/components/Controls/AutoComplete.vue @@ -62,14 +62,23 @@ @mouseleave="showQuickView = false" @click="routeToLinkedDoc" > - + + + + - - - diff --git a/src/components/Popover.vue b/src/components/Popover.vue index e0f3df2c..53b642c3 100644 --- a/src/components/Popover.vue +++ b/src/components/Popover.vue @@ -7,14 +7,25 @@ :handleBlur="handleBlur" > -
- -
+ +
+ +
+
@@ -31,6 +42,8 @@ export default { default: null, }, right: Boolean, + entryDelay: { type: Number, default: 0 }, + exitDelay: { type: Number, default: 0 }, placement: { type: String, default: 'bottom-start', @@ -120,3 +133,14 @@ export default { }, }; + diff --git a/src/components/QuickView.vue b/src/components/QuickView.vue index 966d44ee..258ac7f1 100644 --- a/src/components/QuickView.vue +++ b/src/components/QuickView.vue @@ -4,8 +4,13 @@ class="p-2 flex justify-between" :class="values.length ? 'border-b' : ''" > -

{{ name }}

-

+

+ {{ name }} +

+

{{ schema?.label ?? '' }}