@mythpe/quasar-ui-qui 0.2.6 → 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
|
@@ -159,18 +159,30 @@ defineOptions({
|
|
|
159
159
|
}"
|
|
160
160
|
v-on="listeners"
|
|
161
161
|
>
|
|
162
|
-
<template
|
|
162
|
+
<template
|
|
163
|
+
v-if="!!prependIcon"
|
|
164
|
+
#prepend
|
|
165
|
+
>
|
|
163
166
|
<q-icon
|
|
164
167
|
:name="prependIcon"
|
|
165
168
|
v-bind="prependIconProps"
|
|
166
169
|
/>
|
|
167
170
|
</template>
|
|
168
|
-
<template
|
|
171
|
+
<template
|
|
172
|
+
v-if="!!appendIcon"
|
|
173
|
+
#append
|
|
174
|
+
>
|
|
169
175
|
<q-icon
|
|
170
176
|
:name="appendIcon"
|
|
171
177
|
v-bind="appendIconProps"
|
|
172
178
|
/>
|
|
173
179
|
</template>
|
|
180
|
+
<template
|
|
181
|
+
v-else-if="sar && !viewMode"
|
|
182
|
+
#append
|
|
183
|
+
>
|
|
184
|
+
<MSarCol />
|
|
185
|
+
</template>
|
|
174
186
|
<template
|
|
175
187
|
v-if="viewMode"
|
|
176
188
|
#control
|
|
@@ -186,12 +198,7 @@ defineOptions({
|
|
|
186
198
|
</MInputFieldControl>
|
|
187
199
|
</slot>
|
|
188
200
|
</template>
|
|
189
|
-
|
|
190
|
-
v-if="sar && !viewMode"
|
|
191
|
-
#append
|
|
192
|
-
>
|
|
193
|
-
<MSarCol />
|
|
194
|
-
</template>
|
|
201
|
+
|
|
195
202
|
<template
|
|
196
203
|
v-for="(_,slot) in $slots as Readonly<QInputSlots>"
|
|
197
204
|
:key="slot"
|
|
@@ -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
|