@mythpe/quasar-ui-qui 0.4.60 → 0.4.62
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 +1 -1
- package/src/components/datatable/MDatatable.vue +2 -2
- package/src/components/form/MAvatarViewer.vue +1 -0
- package/src/components/form/MCheckbox.vue +1 -0
- package/src/components/form/MCkeditor.vue +1 -0
- package/src/components/form/MEditor.vue +1 -0
- package/src/components/form/MField.vue +1 -0
- package/src/components/form/MFile.vue +1 -0
- package/src/components/form/MHidden.vue +1 -0
- package/src/components/form/MInput.vue +1 -0
- package/src/components/form/MOptions.vue +1 -0
- package/src/components/form/MPhone.vue +19 -18
- package/src/components/form/MPicker.vue +1 -0
- package/src/components/form/MRadio.vue +3 -2
- package/src/components/form/MSelect.vue +1 -0
- package/src/components/form/MSignaturePad.vue +1 -0
- package/src/components/form/MToggle.vue +1 -0
- package/src/components/form/MUploader.vue +1 -0
package/package.json
CHANGED
|
@@ -1597,7 +1597,7 @@ defineExpose({
|
|
|
1597
1597
|
v-model="formDialogModel"
|
|
1598
1598
|
v-bind="pluginOptions.dt?.formDialogProps"
|
|
1599
1599
|
>
|
|
1600
|
-
<q-card class="q-dialog-plugin">
|
|
1600
|
+
<q-card class="q-dialog-plugin m-datatable__form-dialog">
|
|
1601
1601
|
<MContainer
|
|
1602
1602
|
dense
|
|
1603
1603
|
fluid
|
|
@@ -1738,7 +1738,7 @@ defineExpose({
|
|
|
1738
1738
|
v-bind="pluginOptions.dt?.showDialogProps"
|
|
1739
1739
|
>
|
|
1740
1740
|
<q-card
|
|
1741
|
-
class="m-dialog-card q-dialog-plugin"
|
|
1741
|
+
class="m-dialog-card q-dialog-plugin m-datatable__show-dialog"
|
|
1742
1742
|
flat
|
|
1743
1743
|
>
|
|
1744
1744
|
<MContainer
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
|
|
11
11
|
import { useFieldValue } from 'vee-validate'
|
|
12
|
-
import { computed, ref, useTemplateRef } from 'vue'
|
|
12
|
+
import { computed, nextTick, ref, useTemplateRef } from 'vue'
|
|
13
13
|
import type { MInputSlots, MPhoneProps as Props } from '../../types'
|
|
14
14
|
import { useMyth } from '../../composable'
|
|
15
15
|
import MInput from './MInput.vue'
|
|
@@ -58,6 +58,7 @@ const select = () => {
|
|
|
58
58
|
}
|
|
59
59
|
const onSelectCountry = () => {
|
|
60
60
|
focus()
|
|
61
|
+
nextTick(() => setTimeout(() => select(), 90))
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
const phoneRef = useTemplateRef<InstanceType<typeof MInput>>('phoneRef')
|
|
@@ -88,37 +89,36 @@ defineOptions({
|
|
|
88
89
|
|
|
89
90
|
<template>
|
|
90
91
|
<MCol
|
|
92
|
+
:auto="auto"
|
|
91
93
|
:class="$attrs.class"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}"
|
|
94
|
+
:col="col"
|
|
95
|
+
:lg="lg"
|
|
96
|
+
:md="md"
|
|
97
|
+
:name="name"
|
|
98
|
+
:sm="sm"
|
|
99
|
+
:xl="xl"
|
|
100
|
+
:xs="xs"
|
|
101
|
+
class="m-input__phone"
|
|
101
102
|
>
|
|
102
|
-
<MRow :col="noCountry ? undefined :
|
|
103
|
+
<MRow :col="noCountry ? undefined : 'xs'">
|
|
103
104
|
<MAxios
|
|
104
105
|
v-model:items="countries"
|
|
105
106
|
:autocomplete="false"
|
|
106
107
|
:class="['self-start overflow-hidden',{hidden: readonly || !!noCountry,'order-last': $q.lang.rtl}]"
|
|
107
108
|
:dense="dense"
|
|
108
109
|
:name="countryName"
|
|
109
|
-
:prepend-icon="noIcon ? undefined : (!isSmall ? 'ion-keypad' : undefined)"
|
|
110
110
|
:required="readonly ? undefined : required"
|
|
111
|
-
:search-length="searchLength??0"
|
|
112
|
-
:style="`
|
|
113
|
-
:use-input="!
|
|
111
|
+
:search-length="searchLength ?? 0"
|
|
112
|
+
:style="`widthf: ${isSmall ? 150 : 200}px;max-height: 60px;`"
|
|
113
|
+
:use-input="!1"
|
|
114
114
|
:view-mode="readonly"
|
|
115
|
-
|
|
115
|
+
col="4"
|
|
116
116
|
hide-bottom-space
|
|
117
117
|
hide-dropdown-icon
|
|
118
118
|
hide-hint
|
|
119
119
|
no-filter
|
|
120
120
|
no-loading
|
|
121
|
-
option-label="
|
|
121
|
+
option-label="code_key"
|
|
122
122
|
popup-content-class="m-select__popup-phone"
|
|
123
123
|
popup-no-route-dismiss
|
|
124
124
|
service="country.codes"
|
|
@@ -133,6 +133,7 @@ defineOptions({
|
|
|
133
133
|
:name="name"
|
|
134
134
|
:prefix="noCountry ? (prefix ?? (!rtl ? (selectedCountryKey ?? prefix) : prefix)) : prefix"
|
|
135
135
|
:suffix="noCountry ? (suffix ?? (rtl ? (selectedCountryKey ?? suffix) : suffix)) : suffix"
|
|
136
|
+
class="m-input__phone-input"
|
|
136
137
|
prepend-icon="ion-ios-phone-portrait"
|
|
137
138
|
stack-label
|
|
138
139
|
type="text"
|
|
@@ -142,7 +143,7 @@ defineOptions({
|
|
|
142
143
|
dense,
|
|
143
144
|
viewModeValue: viewModeValue !== undefined ? viewModeValue : getPlaceholder,
|
|
144
145
|
placeholder:getPlaceholder,
|
|
145
|
-
col: noCountry ? 12 :
|
|
146
|
+
col: noCountry ? 12 : 8,
|
|
146
147
|
viewMode: (readonly || viewMode) ? !0 : !countryValue,
|
|
147
148
|
readonly: undefined,
|
|
148
149
|
}"
|
|
@@ -100,6 +100,7 @@ defineOptions({
|
|
|
100
100
|
:md="md"
|
|
101
101
|
:name="name"
|
|
102
102
|
:sm="sm"
|
|
103
|
+
:xl="xl"
|
|
103
104
|
:xs="xs"
|
|
104
105
|
>
|
|
105
106
|
<slot
|
|
@@ -143,8 +144,8 @@ defineOptions({
|
|
|
143
144
|
:model-value="value"
|
|
144
145
|
:val="val"
|
|
145
146
|
v-bind="{
|
|
146
|
-
...theme,
|
|
147
|
-
...pluginOptions.radio,
|
|
147
|
+
...theme as any,
|
|
148
|
+
...pluginOptions.radio as any,
|
|
148
149
|
...$attrs,
|
|
149
150
|
disable: viewMode ? !0 : disable,
|
|
150
151
|
checkedIcon: getProp('checkedIcon'),
|