@mythpe/quasar-ui-qui 0.1.38 → 0.1.39
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/package.json
CHANGED
|
@@ -43,6 +43,7 @@ type P = {
|
|
|
43
43
|
useInput?: Props['useInput'];
|
|
44
44
|
mapOptions?: Props['mapOptions'];
|
|
45
45
|
loading?: Props['loading'];
|
|
46
|
+
noLoading?: boolean;
|
|
46
47
|
multiple?: Props['multiple'];
|
|
47
48
|
options?: Props['options'];
|
|
48
49
|
optionLabel?: Props['optionLabel'];
|
|
@@ -58,6 +59,7 @@ type P = {
|
|
|
58
59
|
fieldOptions?: Props['fieldOptions'];
|
|
59
60
|
clearable?: Props['clearable'];
|
|
60
61
|
useChoice?: Props['useChoice'];
|
|
62
|
+
autoPrefix?: boolean;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -86,6 +88,7 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
86
88
|
useInput: () => !0,
|
|
87
89
|
mapOptions: () => !0,
|
|
88
90
|
loading: undefined,
|
|
91
|
+
noLoading: !1,
|
|
89
92
|
multiple: undefined,
|
|
90
93
|
options: () => ([]),
|
|
91
94
|
optionLabel: () => 'label',
|
|
@@ -100,7 +103,8 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
100
103
|
onFilter: undefined,
|
|
101
104
|
fieldOptions: undefined,
|
|
102
105
|
clearable: undefined,
|
|
103
|
-
useChoice: undefined
|
|
106
|
+
useChoice: undefined,
|
|
107
|
+
autoPrefix: !0
|
|
104
108
|
})
|
|
105
109
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
106
110
|
|
|
@@ -215,6 +219,7 @@ defineOptions({
|
|
|
215
219
|
<component
|
|
216
220
|
:is="viewMode ? QField : QSelect"
|
|
217
221
|
ref="input"
|
|
222
|
+
popup-content-class="m--select__popup-content"
|
|
218
223
|
v-bind="{
|
|
219
224
|
behavior: $q.platform.is.ios === !0 ? 'dialog' : behavior,
|
|
220
225
|
...theme,
|
|
@@ -292,7 +297,7 @@ defineOptions({
|
|
|
292
297
|
</slot>
|
|
293
298
|
</template>
|
|
294
299
|
<template
|
|
295
|
-
v-if="loading"
|
|
300
|
+
v-if="loading && !noLoading"
|
|
296
301
|
#selected
|
|
297
302
|
>
|
|
298
303
|
<q-skeleton width="60%" />
|
|
@@ -303,9 +308,9 @@ defineOptions({
|
|
|
303
308
|
>
|
|
304
309
|
<MContainer>
|
|
305
310
|
<MRow class="items-center">
|
|
306
|
-
<
|
|
311
|
+
<q-btn
|
|
307
312
|
:label="__('labels.done')"
|
|
308
|
-
|
|
313
|
+
color="primary"
|
|
309
314
|
@click="onDoneOptions()"
|
|
310
315
|
/>
|
|
311
316
|
</MRow>
|
package/src/style/main.sass
CHANGED
|
@@ -169,3 +169,13 @@ $control-max-width: 200px !default
|
|
|
169
169
|
.screen--sm
|
|
170
170
|
.m--dt-btn-tooltip
|
|
171
171
|
display: none
|
|
172
|
+
|
|
173
|
+
$m-help-row-margin-top: 4px !default
|
|
174
|
+
|
|
175
|
+
.m--help-row
|
|
176
|
+
margin-top: $m-help-row-margin-top
|
|
177
|
+
|
|
178
|
+
$m--select__popup-content: 300px !default
|
|
179
|
+
|
|
180
|
+
.m--select__popup-content
|
|
181
|
+
max-height: $m--select__popup-content
|