@fy-/fws-vue 2.0.68 → 2.0.69
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.
|
@@ -41,6 +41,8 @@ const props = withDefaults(
|
|
|
41
41
|
maxLengthPerTag?: number;
|
|
42
42
|
disableDatesUnder18?: boolean;
|
|
43
43
|
copyButton?: boolean;
|
|
44
|
+
maxRange?: number;
|
|
45
|
+
minRange?: number;
|
|
44
46
|
}>(),
|
|
45
47
|
{
|
|
46
48
|
showLabel: true,
|
|
@@ -51,6 +53,8 @@ const props = withDefaults(
|
|
|
51
53
|
checkboxFalseValue: false,
|
|
52
54
|
disabled: false,
|
|
53
55
|
maxLengthPerTag: 0,
|
|
56
|
+
maxRange: 100,
|
|
57
|
+
minRange: 0,
|
|
54
58
|
disableDatesUnder18: false,
|
|
55
59
|
copyButton: false,
|
|
56
60
|
dpOptions: () => ({}),
|
|
@@ -136,6 +140,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
136
140
|
'textarea-grow',
|
|
137
141
|
'select',
|
|
138
142
|
'phone',
|
|
143
|
+
'range',
|
|
139
144
|
'chips',
|
|
140
145
|
'tags',
|
|
141
146
|
'mask',
|
|
@@ -150,6 +155,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
150
155
|
'text',
|
|
151
156
|
'phone',
|
|
152
157
|
'password',
|
|
158
|
+
'range',
|
|
153
159
|
'email',
|
|
154
160
|
'search',
|
|
155
161
|
'url',
|
|
@@ -174,13 +180,18 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
174
180
|
:name="id"
|
|
175
181
|
:class="{
|
|
176
182
|
error: checkErrors,
|
|
183
|
+
'bg-fv-neutral-50 border border-fv-neutral-300 text-fv-neutral-900 text-sm rounded-lg focus:ring-fv-primary-500 focus:border-fv-primary-500 block w-full p-2.5 dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-400 dark:text-white dark:focus:ring-fv-primary-500 dark:focus:border-fv-primary-500':
|
|
184
|
+
type !== 'range',
|
|
185
|
+
'w-full h-2 bg-fv-neutral-200 rounded-lg appearance-none cursor-pointer dark:bg-fv-neutral-700':
|
|
186
|
+
type === 'range',
|
|
177
187
|
}"
|
|
178
188
|
v-model="model"
|
|
179
189
|
:autocomplete="autocomplete"
|
|
190
|
+
:min="type === 'range' ? minRange : undefined"
|
|
191
|
+
:max="type === 'range' ? maxRange : undefined"
|
|
180
192
|
:placeholder="placeholder"
|
|
181
193
|
:disabled="disabled"
|
|
182
194
|
:aria-describedby="help ? `${id}-help` : id"
|
|
183
|
-
class="bg-fv-neutral-50 border border-fv-neutral-300 text-fv-neutral-900 text-sm rounded-lg focus:ring-fv-primary-500 focus:border-fv-primary-500 block w-full p-2.5 dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-400 dark:text-white dark:focus:ring-fv-primary-500 dark:focus:border-fv-primary-500"
|
|
184
195
|
:required="req"
|
|
185
196
|
@focus="handleFocus"
|
|
186
197
|
@blur="handleBlur"
|