@mythpe/quasar-ui-qui 0.0.55 → 0.0.56
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
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
import type { MInputProps as Props, MInputSlots } from '../../types'
|
|
14
14
|
import { useTemplateRef } from 'vue'
|
|
15
15
|
import MInput from './MInput.vue'
|
|
16
|
+
import { useMyth } from '../../composable'
|
|
16
17
|
|
|
18
|
+
const { props: pluginOptions } = useMyth()
|
|
17
19
|
const modelValue = defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
18
20
|
const input = useTemplateRef<InstanceType<typeof MInput>>('input')
|
|
19
|
-
defineExpose<{
|
|
20
|
-
input: typeof input
|
|
21
|
-
}>({ input })
|
|
21
|
+
defineExpose<{ input: typeof input }>({ input })
|
|
22
22
|
defineOptions({
|
|
23
23
|
name: 'MEmail',
|
|
24
24
|
inheritAttrs: !1
|
|
@@ -29,7 +29,7 @@ defineOptions({
|
|
|
29
29
|
<MInput
|
|
30
30
|
ref="input"
|
|
31
31
|
v-model="modelValue"
|
|
32
|
-
v-bind="{
|
|
32
|
+
v-bind="{...pluginOptions.input as any,...$attrs, type:'email',email:!0}"
|
|
33
33
|
>
|
|
34
34
|
<template
|
|
35
35
|
v-for="(_,slot) in $slots as Readonly<MInputSlots>"
|