@fy-/fws-vue 2.1.47 → 2.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,6 +75,7 @@ function onCall(data: NotifProps) {
|
|
|
75
75
|
if (currentNotif.value && data.time) {
|
|
76
76
|
// update progress based on a 100ms tick
|
|
77
77
|
progress.value += (100 / (data.time / 100))
|
|
78
|
+
// if progress hits or exceeds 100, hide
|
|
78
79
|
if (progress.value >= 100) {
|
|
79
80
|
hideNotif()
|
|
80
81
|
}
|
|
@@ -119,7 +120,7 @@ onUnmounted(() => {
|
|
|
119
120
|
<div
|
|
120
121
|
v-if="currentNotif !== null"
|
|
121
122
|
id="base-notif"
|
|
122
|
-
class="
|
|
123
|
+
class="p-2 mb-4 fixed bottom-4 right-8 !z-[2000] bg-fv-neutral-50/[.6] dark:bg-neutral-800/[.6] rounded-lg border overflow-hidden shadow-lg"
|
|
123
124
|
role="alert"
|
|
124
125
|
:class="{
|
|
125
126
|
'text-fv-neutral-800 border-fv-neutral-300 dark:text-fv-neutral-400 dark:border-fv-neutral-600':
|
|
@@ -132,15 +133,13 @@ onUnmounted(() => {
|
|
|
132
133
|
currentNotif.type === 'secret',
|
|
133
134
|
}"
|
|
134
135
|
>
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
<div class="relative mt-3 h-[3px] bg-fv-neutral-900/[.2] rounded-full overflow-hidden -mt-2">
|
|
137
|
+
<!-- We re-use text color (text-*) as background or define a custom color -->
|
|
137
138
|
<div
|
|
138
|
-
class="h-full bg-current transition-[width]"
|
|
139
|
+
class="absolute left-0 top-0 h-full bg-current transition-[width]"
|
|
139
140
|
:style="{ width: `${progress}%` }"
|
|
140
141
|
/>
|
|
141
142
|
</div>
|
|
142
|
-
|
|
143
|
-
<!-- Title + icon or image -->
|
|
144
143
|
<div class="flex items-center gap-2">
|
|
145
144
|
<img
|
|
146
145
|
v-if="currentNotif.imgSrc"
|