@mythpe/quasar-ui-qui 0.2.8 → 0.2.9
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
|
@@ -50,6 +50,8 @@ interface P {
|
|
|
50
50
|
fieldOptions?: Props['fieldOptions'];
|
|
51
51
|
locale?: Props['locale'];
|
|
52
52
|
noDefaultLocale?: boolean;
|
|
53
|
+
prependIcon?: Props['prependIcon'];
|
|
54
|
+
prependIconProps?: Props['prependIconProps'];
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
type ModelType = Props['modelValue']
|
|
@@ -82,7 +84,9 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
82
84
|
disable: undefined,
|
|
83
85
|
fieldOptions: undefined,
|
|
84
86
|
locale: undefined,
|
|
85
|
-
noDefaultLocale: !1
|
|
87
|
+
noDefaultLocale: !1,
|
|
88
|
+
prependIcon: undefined,
|
|
89
|
+
prependIconProps: undefined
|
|
86
90
|
})
|
|
87
91
|
|
|
88
92
|
defineModel<ModelType>({ required: !1, default: undefined })
|
|
@@ -243,6 +247,15 @@ defineOptions({
|
|
|
243
247
|
</template>
|
|
244
248
|
</slot>
|
|
245
249
|
</template>
|
|
250
|
+
<template
|
|
251
|
+
v-if="!!prependIcon"
|
|
252
|
+
#prepend
|
|
253
|
+
>
|
|
254
|
+
<q-icon
|
|
255
|
+
:name="prependIcon"
|
|
256
|
+
v-bind="prependIconProps"
|
|
257
|
+
/>
|
|
258
|
+
</template>
|
|
246
259
|
<template #append>
|
|
247
260
|
<q-btn
|
|
248
261
|
v-if="!disable && !readonly && !viewMode"
|
|
@@ -328,7 +341,6 @@ defineOptions({
|
|
|
328
341
|
</q-popup-proxy>
|
|
329
342
|
</q-btn>
|
|
330
343
|
</template>
|
|
331
|
-
|
|
332
344
|
<template
|
|
333
345
|
v-for="(_,slot) in $slots as Readonly<QFieldSlots>"
|
|
334
346
|
:key="slot"
|
|
@@ -437,6 +437,8 @@ export interface MPickerProps extends BaseInputsProps, Omit<QDateProps, 'modelVa
|
|
|
437
437
|
* Only work for 'date' type.
|
|
438
438
|
*/
|
|
439
439
|
noDefaultLocale?: boolean;
|
|
440
|
+
prependIcon?: string;
|
|
441
|
+
prependIconProps?: Partial<QIconProps>;
|
|
440
442
|
}
|
|
441
443
|
|
|
442
444
|
export type MPickerSlots = MInputSlots
|