@mythpe/quasar-ui-qui 0.2.5 → 0.2.6
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
|
@@ -41,7 +41,11 @@ interface P {
|
|
|
41
41
|
mobile?: Props['mobile'];
|
|
42
42
|
email?: Props['email'];
|
|
43
43
|
float?: Props['float'];
|
|
44
|
-
sar?:
|
|
44
|
+
sar?: Props['sar'];
|
|
45
|
+
prependIcon?: Props['prependIcon'];
|
|
46
|
+
prependIconProps?: Props['prependIconProps'];
|
|
47
|
+
appendIcon?: Props['appendIcon'];
|
|
48
|
+
appendIconProps?: Props['appendIconProps'];
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -69,7 +73,11 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
69
73
|
mobile: undefined,
|
|
70
74
|
email: undefined,
|
|
71
75
|
float: undefined,
|
|
72
|
-
sar: !1
|
|
76
|
+
sar: !1,
|
|
77
|
+
prependIcon: undefined,
|
|
78
|
+
prependIconProps: undefined,
|
|
79
|
+
appendIcon: undefined,
|
|
80
|
+
appendIconProps: undefined
|
|
73
81
|
})
|
|
74
82
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
75
83
|
const { __, props: pluginOptions } = useMyth()
|
|
@@ -151,6 +159,18 @@ defineOptions({
|
|
|
151
159
|
}"
|
|
152
160
|
v-on="listeners"
|
|
153
161
|
>
|
|
162
|
+
<template v-if="!!prependIcon">
|
|
163
|
+
<q-icon
|
|
164
|
+
:name="prependIcon"
|
|
165
|
+
v-bind="prependIconProps"
|
|
166
|
+
/>
|
|
167
|
+
</template>
|
|
168
|
+
<template v-if="!!appendIcon">
|
|
169
|
+
<q-icon
|
|
170
|
+
:name="appendIcon"
|
|
171
|
+
v-bind="appendIconProps"
|
|
172
|
+
/>
|
|
173
|
+
</template>
|
|
154
174
|
<template
|
|
155
175
|
v-if="viewMode"
|
|
156
176
|
#control
|
|
@@ -17,7 +17,7 @@ import type {
|
|
|
17
17
|
QEditorSlots,
|
|
18
18
|
QFieldSlots,
|
|
19
19
|
QFileProps,
|
|
20
|
-
QFileSlots,
|
|
20
|
+
QFileSlots, QIconProps,
|
|
21
21
|
QInputProps,
|
|
22
22
|
QInputSlots,
|
|
23
23
|
QItemProps,
|
|
@@ -44,6 +44,7 @@ import type { MTransitionProps, MTransitionsSlots } from './api/MTransition'
|
|
|
44
44
|
import type { MAxiosProps, MAxiosSlots } from './api/MAxios'
|
|
45
45
|
import type { MSelectProps, MSelectSlots } from './api/MSelect'
|
|
46
46
|
import type { MSignaturePadProps, MSignaturePadSlots } from './api/MSignaturePad'
|
|
47
|
+
import Parials from '../components/parials'
|
|
47
48
|
|
|
48
49
|
export type MBtnProps = QBtnProps & {
|
|
49
50
|
ariaLabel?: boolean | string | null | undefined;
|
|
@@ -344,6 +345,10 @@ export type BaseInputsSlots = InputHelpSlots & {
|
|
|
344
345
|
|
|
345
346
|
export interface MInputProps extends Omit<QInputProps, 'rules' | 'name' | 'modelValue' | 'label' | 'hint'>, BaseInputsProps {
|
|
346
347
|
sar?: boolean;
|
|
348
|
+
prependIcon?: string;
|
|
349
|
+
prependIconProps?: Partial<QIconProps>;
|
|
350
|
+
appendIcon?: string;
|
|
351
|
+
appendIconProps?: Partial<QIconProps>;
|
|
347
352
|
}
|
|
348
353
|
|
|
349
354
|
export type MInputSlots = QInputSlots & QFieldSlots & BaseInputsSlots
|