@mythpe/quasar-ui-qui 0.2.61 → 0.2.63
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
|
@@ -52,11 +52,13 @@ interface P {
|
|
|
52
52
|
noDefaultLocale?: boolean;
|
|
53
53
|
prependIcon?: Props['prependIcon'];
|
|
54
54
|
prependIconProps?: Props['prependIconProps'];
|
|
55
|
+
clearable?: Props['clearable'];
|
|
56
|
+
clearIcon?: Props['clearIcon'];
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
type ModelType = Props['modelValue']
|
|
58
60
|
const props = withDefaults(defineProps<P>(), {
|
|
59
|
-
name:
|
|
61
|
+
name: '',
|
|
60
62
|
auto: undefined,
|
|
61
63
|
col: undefined,
|
|
62
64
|
xs: undefined,
|
|
@@ -71,22 +73,24 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
71
73
|
help: undefined,
|
|
72
74
|
required: undefined,
|
|
73
75
|
rules: undefined,
|
|
74
|
-
viewMode:
|
|
76
|
+
viewMode: undefined,
|
|
75
77
|
viewModeValue: undefined,
|
|
76
78
|
autocomplete: undefined,
|
|
77
79
|
topLabel: undefined,
|
|
78
|
-
type:
|
|
79
|
-
range:
|
|
80
|
-
rangeSeparator:
|
|
81
|
-
multiple:
|
|
80
|
+
type: 'date',
|
|
81
|
+
range: undefined,
|
|
82
|
+
rangeSeparator: ' - ',
|
|
83
|
+
multiple: undefined,
|
|
82
84
|
btnProps: undefined,
|
|
83
85
|
readonly: undefined,
|
|
84
86
|
disable: undefined,
|
|
85
87
|
fieldOptions: undefined,
|
|
86
88
|
locale: undefined,
|
|
87
|
-
noDefaultLocale:
|
|
89
|
+
noDefaultLocale: undefined,
|
|
88
90
|
prependIcon: undefined,
|
|
89
|
-
prependIconProps: undefined
|
|
91
|
+
prependIconProps: undefined,
|
|
92
|
+
clearable: undefined,
|
|
93
|
+
clearIcon: undefined
|
|
90
94
|
})
|
|
91
95
|
|
|
92
96
|
defineModel<ModelType>({ required: !1, default: undefined })
|
|
@@ -222,7 +226,7 @@ defineOptions({
|
|
|
222
226
|
label: hasTopLabel ? undefined : ( getLabel || undefined),
|
|
223
227
|
autocomplete: getAutocompleteAttribute || undefined,
|
|
224
228
|
stackLabel: !0,
|
|
225
|
-
clearable: viewMode ? !1 : getProp('clearable')
|
|
229
|
+
clearable: viewMode ? !1 : getProp('clearable'),
|
|
226
230
|
}"
|
|
227
231
|
>
|
|
228
232
|
<template #control>
|
|
@@ -36,6 +36,14 @@ export interface MPickerProps extends BaseInputsProps, Omit<QDateProps, 'modelVa
|
|
|
36
36
|
noDefaultLocale?: boolean;
|
|
37
37
|
prependIcon?: string;
|
|
38
38
|
prependIconProps?: Partial<QIconProps>;
|
|
39
|
+
/**
|
|
40
|
+
* Appends clearable icon when a value (not undefined or null) is set; When clicked, model becomes null
|
|
41
|
+
*/
|
|
42
|
+
clearable?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Custom icon to use for the clear button when using along with 'clearable' prop
|
|
45
|
+
*/
|
|
46
|
+
clearIcon?: string | undefined;
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
export type MPickerSlots = MInputSlots
|