@mythpe/quasar-ui-qui 0.0.95 → 0.0.97
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
|
@@ -76,7 +76,7 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
76
76
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
77
77
|
const { __, props: pluginOptions } = useMyth()
|
|
78
78
|
const helper = useBindInput<P>(() => props, 'file', () => ({ choose: !0 }))
|
|
79
|
-
const { hasTopLabel, getLabel, getPlaceholder, accepts, inputRules
|
|
79
|
+
const { hasTopLabel, getLabel, getPlaceholder, accepts, inputRules } = helper
|
|
80
80
|
const inputScope = useField<Props['modelValue']>(() => props.name, inputRules, {
|
|
81
81
|
syncVModel: !0,
|
|
82
82
|
label: getLabel,
|
|
@@ -28,6 +28,7 @@ export interface P {
|
|
|
28
28
|
topLabelProps?: Props['topLabelProps'];
|
|
29
29
|
autofocus?: Props['autofocus'];
|
|
30
30
|
errors?: Props['errors'];
|
|
31
|
+
type?: Props['type'];
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
type Emits = {
|
|
@@ -38,15 +39,16 @@ const emit = defineEmits<Emits>()
|
|
|
38
39
|
const { __, props: pluginOptions } = useMyth()
|
|
39
40
|
const props = withDefaults(defineProps<P>(), {
|
|
40
41
|
// modelValue: undefined,
|
|
41
|
-
inputLength:
|
|
42
|
-
numeric:
|
|
43
|
-
time:
|
|
44
|
-
hideTime:
|
|
45
|
-
hideSendAgain:
|
|
42
|
+
inputLength: 4,
|
|
43
|
+
numeric: !0,
|
|
44
|
+
time: 120,
|
|
45
|
+
hideTime: !1,
|
|
46
|
+
hideSendAgain: !1,
|
|
46
47
|
topLabel: undefined,
|
|
47
48
|
topLabelProps: undefined,
|
|
48
|
-
autofocus:
|
|
49
|
-
errors: () => ([])
|
|
49
|
+
autofocus: !1,
|
|
50
|
+
errors: () => ([]),
|
|
51
|
+
type: 'tel'
|
|
50
52
|
})
|
|
51
53
|
const modelValue = defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
52
54
|
const otpErrors = computed(() => props.errors ? props.errors : [])
|
|
@@ -244,6 +246,7 @@ defineOptions({
|
|
|
244
246
|
v-model="fieldValues[i - 1]"
|
|
245
247
|
:autofocus="autofocus && i === 1"
|
|
246
248
|
:error="otpErrors.length > 0"
|
|
249
|
+
:type="type"
|
|
247
250
|
hide-bottom-space
|
|
248
251
|
input-class="text-center"
|
|
249
252
|
maxlength="1"
|