@mythpe/quasar-ui-qui 0.0.52 → 0.0.54
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
|
@@ -14,7 +14,6 @@ import type { MInputProps as Props, MInputSlots } from '../../types'
|
|
|
14
14
|
import { useTemplateRef } from 'vue'
|
|
15
15
|
import MInput from './MInput.vue'
|
|
16
16
|
|
|
17
|
-
defineProps<Props>()
|
|
18
17
|
const modelValue = defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
19
18
|
const input = useTemplateRef<InstanceType<typeof MInput>>('input')
|
|
20
19
|
defineExpose<{
|
|
@@ -30,7 +29,7 @@ defineOptions({
|
|
|
30
29
|
<MInput
|
|
31
30
|
ref="input"
|
|
32
31
|
v-model="modelValue"
|
|
33
|
-
v-bind="{...$attrs
|
|
32
|
+
v-bind="{...$attrs, type:'email',email:!0}"
|
|
34
33
|
>
|
|
35
34
|
<template
|
|
36
35
|
v-for="(_,slot) in $slots as Readonly<MInputSlots>"
|
package/src/utils/Helpers.ts
CHANGED
|
@@ -271,9 +271,9 @@ export const Helpers = {
|
|
|
271
271
|
const selector = `[data-input-name='${name}']`
|
|
272
272
|
const e = document.querySelector(selector) as HTMLElement
|
|
273
273
|
// console.log(e)
|
|
274
|
-
await
|
|
274
|
+
await Helpers.scrollToElement(e || `[name='${name}']`, { target })
|
|
275
275
|
} else {
|
|
276
|
-
await
|
|
276
|
+
await Helpers.scrollToElement(elm, { target })
|
|
277
277
|
}
|
|
278
278
|
break
|
|
279
279
|
}
|