quasar-ui-sellmate-ui-kit 3.14.38 → 3.14.40
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.
- package/dist/index.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +19 -12
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SSelectSearch.vue +29 -3
- package/src/css/extends.scss +2 -2
package/package.json
CHANGED
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
's-select-opts s-select-opts__select-search',
|
|
14
14
|
`s-select-opt-${id}`,
|
|
15
15
|
isScrolled && 's-select-opts--scroll',
|
|
16
|
+
menuWidth && 'menu-fixed',
|
|
16
17
|
popupContentClass,
|
|
17
18
|
].join(' ')
|
|
18
19
|
"
|
|
20
|
+
:popup-content-style="menuWidth ? { '--dynamic-width': menuWidth + 'px' } : {}"
|
|
19
21
|
:option-label="optionLabel"
|
|
20
22
|
:option-value="optionValue"
|
|
21
23
|
:menu-offset="[0, 4]"
|
|
@@ -49,7 +51,6 @@
|
|
|
49
51
|
v-bind="itemProps"
|
|
50
52
|
class="custom-select-options"
|
|
51
53
|
:class="{ 'custom-select-options--selected': selectedOptionIndex === index }"
|
|
52
|
-
@click="selectedOptionIndex = index"
|
|
53
54
|
>
|
|
54
55
|
<q-item-section>
|
|
55
56
|
{{ opt[optionLabel] }}
|
|
@@ -125,6 +126,10 @@
|
|
|
125
126
|
popupContentClass: {
|
|
126
127
|
type: String,
|
|
127
128
|
},
|
|
129
|
+
menuWidth: {
|
|
130
|
+
type: [String, Number, null],
|
|
131
|
+
default: null,
|
|
132
|
+
},
|
|
128
133
|
},
|
|
129
134
|
setup(props, { emit }) {
|
|
130
135
|
const id = useId();
|
|
@@ -176,6 +181,7 @@
|
|
|
176
181
|
|
|
177
182
|
function handleDelete() {
|
|
178
183
|
if (!sSelectRef.value) return;
|
|
184
|
+
selectedOptionIndex.value = -1;
|
|
179
185
|
sSelectRef.value.setOptionIndex(-1);
|
|
180
186
|
search.value = '';
|
|
181
187
|
emit('onSearch', '');
|
|
@@ -202,6 +208,7 @@
|
|
|
202
208
|
watch(
|
|
203
209
|
() => model.value,
|
|
204
210
|
newValue => {
|
|
211
|
+
handleDelete();
|
|
205
212
|
emit('update:modelValue', newValue);
|
|
206
213
|
},
|
|
207
214
|
);
|
|
@@ -280,6 +287,7 @@
|
|
|
280
287
|
width: 100%;
|
|
281
288
|
padding: $select-padding !important;
|
|
282
289
|
color: $grey_90;
|
|
290
|
+
|
|
283
291
|
white-space: nowrap;
|
|
284
292
|
overflow: hidden;
|
|
285
293
|
text-overflow: ellipsis;
|
|
@@ -307,8 +315,12 @@
|
|
|
307
315
|
}
|
|
308
316
|
|
|
309
317
|
.q-virtual-scroll__content .q-manual-focusable--focused {
|
|
310
|
-
background-color: transparent !important;
|
|
311
318
|
color: $grey_90 !important;
|
|
319
|
+
background-color: transparent !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.q-item--active.q-manual-focusable--focused {
|
|
323
|
+
color: $brilliantblue_75 !important;
|
|
312
324
|
}
|
|
313
325
|
|
|
314
326
|
.q-virtual-scroll__content .custom-select-options {
|
|
@@ -320,7 +332,8 @@
|
|
|
320
332
|
}
|
|
321
333
|
}
|
|
322
334
|
.custom-select-options {
|
|
323
|
-
height: $default-height;
|
|
335
|
+
min-height: $default-height;
|
|
336
|
+
height: auto !important;
|
|
324
337
|
}
|
|
325
338
|
|
|
326
339
|
.disabled.s-select-option {
|
|
@@ -328,4 +341,17 @@
|
|
|
328
341
|
background: none !important;
|
|
329
342
|
color: $grey_65 !important;
|
|
330
343
|
}
|
|
344
|
+
|
|
345
|
+
.q-item__section {
|
|
346
|
+
display: block;
|
|
347
|
+
white-space: normal;
|
|
348
|
+
overflow: visible;
|
|
349
|
+
text-overflow: unset;
|
|
350
|
+
word-break: break-all;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.menu-fixed {
|
|
354
|
+
max-width: var(--dynamic-width) !important;
|
|
355
|
+
width: var(--dynamic-width) !important;
|
|
356
|
+
}
|
|
331
357
|
</style>
|
package/src/css/extends.scss
CHANGED
|
@@ -162,12 +162,12 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
&--active {
|
|
165
|
-
color: $
|
|
165
|
+
color: $brilliantblue_75 !important;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.q-manual-focusable--focused {
|
|
170
|
-
background: $
|
|
170
|
+
background: $brilliantblue_75;
|
|
171
171
|
color: white !important;
|
|
172
172
|
|
|
173
173
|
.q-focus-helper {
|