@fy-/fws-vue 2.0.69 → 2.0.71
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.
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import type { ErrorObject } from "@vuelidate/core";
|
|
12
12
|
import { useTranslation } from "../../composables/translations";
|
|
13
13
|
import DefaultTagInput from "./DefaultTagInput.vue";
|
|
14
|
+
import { parse } from "path";
|
|
14
15
|
//import VueTailwindDatepicker from "vue-tailwind-datepicker";
|
|
15
16
|
|
|
16
17
|
type modelValueType = string | number | string[] | number[] | undefined;
|
|
@@ -172,6 +173,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
172
173
|
v-if="label"
|
|
173
174
|
class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
|
|
174
175
|
>{{ label }}
|
|
176
|
+
<template v-if="type === 'range'"> ({{ model }}) </template>
|
|
175
177
|
</label>
|
|
176
178
|
<input
|
|
177
179
|
ref="inputRef"
|
|
@@ -196,6 +198,25 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
196
198
|
@focus="handleFocus"
|
|
197
199
|
@blur="handleBlur"
|
|
198
200
|
/>
|
|
201
|
+
<template v-if="type === 'range'">
|
|
202
|
+
<span
|
|
203
|
+
class="text-sm text-gray-500 dark:text-gray-400 absolute start-0 -bottom-6"
|
|
204
|
+
>Min ({{ minRange }})
|
|
205
|
+
</span>
|
|
206
|
+
<span
|
|
207
|
+
class="text-sm text-gray-500 dark:text-gray-400 absolute start-1/3 -translate-x-1/2 rtl:translate-x-1/2 -bottom-6"
|
|
208
|
+
>{{ ((maxRange - minRange) / 3 + minRange).toFixed(0) }}</span
|
|
209
|
+
>
|
|
210
|
+
<span
|
|
211
|
+
class="text-sm text-gray-500 dark:text-gray-400 absolute start-2/3 -translate-x-1/2 rtl:translate-x-1/2 -bottom-6"
|
|
212
|
+
>
|
|
213
|
+
{{ (((maxRange - minRange) / 3) * 2 + minRange).toFixed(0) }}
|
|
214
|
+
</span>
|
|
215
|
+
<span
|
|
216
|
+
class="text-sm text-gray-500 dark:text-gray-400 absolute end-0 -bottom-6"
|
|
217
|
+
>Max ({{ maxRange }})</span
|
|
218
|
+
>
|
|
219
|
+
</template>
|
|
199
220
|
</div>
|
|
200
221
|
<!--
|
|
201
222
|
<div v-if="type == 'datepicker'">
|