@mythpe/quasar-ui-qui 0.2.7 → 0.2.8
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
|
@@ -59,6 +59,10 @@ type P = {
|
|
|
59
59
|
fieldOptions?: Props['fieldOptions'];
|
|
60
60
|
clearable?: Props['clearable'];
|
|
61
61
|
useChoice?: Props['useChoice'];
|
|
62
|
+
prependIcon?: Props['prependIcon'];
|
|
63
|
+
prependIconProps?: Props['prependIconProps'];
|
|
64
|
+
appendIcon?: Props['appendIcon'];
|
|
65
|
+
appendIconProps?: Props['appendIconProps'];
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -102,7 +106,11 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
102
106
|
onFilter: undefined,
|
|
103
107
|
fieldOptions: undefined,
|
|
104
108
|
clearable: undefined,
|
|
105
|
-
useChoice: undefined
|
|
109
|
+
useChoice: undefined,
|
|
110
|
+
prependIcon: undefined,
|
|
111
|
+
prependIconProps: undefined,
|
|
112
|
+
appendIcon: undefined,
|
|
113
|
+
appendIconProps: undefined
|
|
106
114
|
})
|
|
107
115
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
108
116
|
|
|
@@ -264,6 +272,24 @@ defineOptions({
|
|
|
264
272
|
}"
|
|
265
273
|
v-on="listeners"
|
|
266
274
|
>
|
|
275
|
+
<template
|
|
276
|
+
v-if="!!prependIcon"
|
|
277
|
+
#prepend
|
|
278
|
+
>
|
|
279
|
+
<q-icon
|
|
280
|
+
:name="prependIcon"
|
|
281
|
+
v-bind="prependIconProps"
|
|
282
|
+
/>
|
|
283
|
+
</template>
|
|
284
|
+
<template
|
|
285
|
+
v-if="!!appendIcon"
|
|
286
|
+
#append
|
|
287
|
+
>
|
|
288
|
+
<q-icon
|
|
289
|
+
:name="appendIcon"
|
|
290
|
+
v-bind="appendIconProps"
|
|
291
|
+
/>
|
|
292
|
+
</template>
|
|
267
293
|
<template
|
|
268
294
|
v-if="!hideEmptyList"
|
|
269
295
|
#no-option
|
|
@@ -331,7 +357,6 @@ defineOptions({
|
|
|
331
357
|
</MRow>
|
|
332
358
|
</MContainer>
|
|
333
359
|
</template>
|
|
334
|
-
|
|
335
360
|
<template
|
|
336
361
|
v-for="(_,slot) in $slots as Readonly<QSelectSlots>"
|
|
337
362
|
:key="slot"
|
|
@@ -344,7 +369,6 @@ defineOptions({
|
|
|
344
369
|
v-bind="inputSlot || {}"
|
|
345
370
|
/>
|
|
346
371
|
</template>
|
|
347
|
-
|
|
348
372
|
<template
|
|
349
373
|
v-if="viewMode"
|
|
350
374
|
#control
|
|
@@ -316,6 +316,10 @@ export type BaseInputFormProps = {
|
|
|
316
316
|
* choice key of auto placeholder.
|
|
317
317
|
*/
|
|
318
318
|
useChoice?: boolean | string;
|
|
319
|
+
prependIcon?: string;
|
|
320
|
+
prependIconProps?: Partial<QIconProps>;
|
|
321
|
+
appendIcon?: string;
|
|
322
|
+
appendIconProps?: Partial<QIconProps>;
|
|
319
323
|
}
|
|
320
324
|
|
|
321
325
|
export type BaseInputsProps = ViewModeProps & InputHelpProps & Omit<MColProps, 'name'> & BaseInputFormProps
|