@mythpe/quasar-ui-qui 0.3.79 → 0.3.81
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
|
@@ -485,7 +485,7 @@ const bindAttr = computed(() => ({
|
|
|
485
485
|
}))
|
|
486
486
|
const showIfContext = (contextBtn: GenericMDtBtn): boolean => {
|
|
487
487
|
contextBtn = toValue(contextBtn)
|
|
488
|
-
if (selected.value.length ===
|
|
488
|
+
if (selected.value.length === 1) {
|
|
489
489
|
const per = typeof contextBtn.showIf === 'function' ? contextBtn.showIf(selected.value[0], 0) : contextBtn.showIf === !0
|
|
490
490
|
const single = (!!contextBtn.click || !!contextBtn.attr?.to)
|
|
491
491
|
const multi = !!contextBtn.multiClick
|
|
@@ -16,7 +16,13 @@ import MInput from './MInput.vue'
|
|
|
16
16
|
|
|
17
17
|
const modelValue = defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
18
18
|
const input = useTemplateRef<InstanceType<typeof MInput>>('input')
|
|
19
|
-
|
|
19
|
+
const focus = () => {
|
|
20
|
+
input?.value?.focus?.()
|
|
21
|
+
}
|
|
22
|
+
const select = () => {
|
|
23
|
+
input?.value?.select?.()
|
|
24
|
+
}
|
|
25
|
+
defineExpose<{ input: typeof input; focus:() => void; select: () => void; }>({ focus, select, input })
|
|
20
26
|
defineOptions({
|
|
21
27
|
name: 'MEmail',
|
|
22
28
|
inheritAttrs: !1
|
|
@@ -102,7 +102,14 @@ const computedInputClass = computed(() => {
|
|
|
102
102
|
}
|
|
103
103
|
return classes
|
|
104
104
|
})
|
|
105
|
-
|
|
105
|
+
const focus = () => {
|
|
106
|
+
input?.value?.focus?.()
|
|
107
|
+
}
|
|
108
|
+
const select = () => {
|
|
109
|
+
input?.value?.select?.()
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
defineExpose<typeof scopes & { input: typeof input; focus:() => void; select: () => void; }>({ focus, select, input, ...scopes })
|
|
106
113
|
defineOptions({
|
|
107
114
|
name: 'MInput',
|
|
108
115
|
inheritAttrs: !1
|