@mythpe/quasar-ui-qui 0.2.41 → 0.2.43
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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
>
|
|
13
13
|
|
|
14
14
|
import { computed, nextTick, onBeforeUnmount, onBeforeUpdate, ref, watch, watchEffect } from 'vue'
|
|
15
|
-
import { date } from 'quasar'
|
|
15
|
+
import { date, useQuasar } from 'quasar'
|
|
16
16
|
import type { MOtpProps as Props } from '../../types'
|
|
17
17
|
import { useMyth } from '../../composable'
|
|
18
18
|
|
|
@@ -49,6 +49,7 @@ type Emits = {
|
|
|
49
49
|
(e: 'resend', options: { start: Func, clear: Func, startTiming: Func }): void;
|
|
50
50
|
}
|
|
51
51
|
const emit = defineEmits<Emits>()
|
|
52
|
+
const $q = useQuasar()
|
|
52
53
|
|
|
53
54
|
const { __, props: pluginOptions } = useMyth()
|
|
54
55
|
const modelValue = defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
@@ -15,7 +15,7 @@ import { useField } from 'vee-validate'
|
|
|
15
15
|
import type { MSelectProps as Props } from '../../types'
|
|
16
16
|
import { computed, reactive, toValue, useTemplateRef } from 'vue'
|
|
17
17
|
import { useBindInput, useMyth } from '../../composable'
|
|
18
|
-
import { QField, QSelect, type QSelectSlots } from 'quasar'
|
|
18
|
+
import { QField, QSelect, type QSelectSlots, useQuasar } from 'quasar'
|
|
19
19
|
|
|
20
20
|
type P = {
|
|
21
21
|
name: Props['name'];
|
|
@@ -118,6 +118,7 @@ type Emits = {
|
|
|
118
118
|
(e: 'model', value: { value: any; model: object | null }): void;
|
|
119
119
|
}
|
|
120
120
|
const emit = defineEmits<Emits>()
|
|
121
|
+
const $q = useQuasar()
|
|
121
122
|
|
|
122
123
|
const { __, props: pluginOptions } = useMyth()
|
|
123
124
|
const helper = useBindInput<P & Props>(() => props, 'select', () => ({ choose: !0 }))
|
|
@@ -163,6 +164,7 @@ const onDoneOptions = () => {
|
|
|
163
164
|
const listeners = {
|
|
164
165
|
blur: (v: any) => handleBlur(v, !0),
|
|
165
166
|
'update:modelValue': (v: Props['modelValue']) => {
|
|
167
|
+
console.log('update:modelValue: ', v)
|
|
166
168
|
handleChange(v, !!errorMessage.value)
|
|
167
169
|
if (!props.emitValue) {
|
|
168
170
|
emit('model', { value: v, model: v })
|
|
@@ -172,7 +174,10 @@ const listeners = {
|
|
|
172
174
|
emit('model', { value: v, model: model ?? null })
|
|
173
175
|
}
|
|
174
176
|
},
|
|
175
|
-
inputValue: (v: string) =>
|
|
177
|
+
inputValue: (v: string) => {
|
|
178
|
+
console.log('inputValue: ', v)
|
|
179
|
+
search.value = v?.toString() || ''
|
|
180
|
+
},
|
|
176
181
|
filter: filterFn
|
|
177
182
|
}
|
|
178
183
|
const input = useTemplateRef<InstanceType<typeof QSelect> | InstanceType<typeof QField>>('input')
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { computed } from 'vue'
|
|
15
15
|
import type { MDialogProps as Props } from '../../types'
|
|
16
16
|
import { useMyth } from '../../composable'
|
|
17
|
+
import { useQuasar } from 'quasar'
|
|
17
18
|
|
|
18
19
|
interface P {
|
|
19
20
|
slide?: Props['slide'] | undefined;
|
|
@@ -24,6 +25,7 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
24
25
|
slide: () => !1,
|
|
25
26
|
from: () => 'left'
|
|
26
27
|
})
|
|
28
|
+
const $q = useQuasar()
|
|
27
29
|
const slideProp = computed(() => props.slide !== undefined && props.slide !== !1 && props.slide !== null)
|
|
28
30
|
const map = {
|
|
29
31
|
left: 'right',
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
|
-
// import MSarSvg from './MSarSvg.vue'
|
|
11
10
|
import { useI18n } from 'vue-i18n'
|
|
12
11
|
import { computed } from 'vue'
|
|
13
12
|
import { useMyth } from '../../composable'
|
|
13
|
+
import { useQuasar } from 'quasar'
|
|
14
14
|
|
|
15
15
|
interface Props {
|
|
16
16
|
text?: any;
|
|
@@ -22,6 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
22
22
|
string: !1
|
|
23
23
|
})
|
|
24
24
|
|
|
25
|
+
const $q = useQuasar()
|
|
25
26
|
const { te } = useI18n({ useScope: 'global' })
|
|
26
27
|
const { __, formatMoney } = useMyth()
|
|
27
28
|
const getText = computed<string | undefined>(() => {
|
|
@@ -230,7 +230,7 @@ export const useMyth = () => {
|
|
|
230
230
|
const alertMessage = (opts: Vue3MAlertMessageOptions): Vue3MAlertMessage => q.notify(quasarNotifyOptions(opts))
|
|
231
231
|
const alertSuccess = (message: string) => alertMessage({ type: 'positive', message })
|
|
232
232
|
const alertError = (message: string) => alertMessage({ type: 'negative', message })
|
|
233
|
-
const confirmMessage = (message?: string, title?: string, opts?: Partial<QDialogOptions> & Partial<QDialogProps>): Vue3MConfirmMessage => {
|
|
233
|
+
const confirmMessage = (message?: string, title?: string, opts?: Partial<QDialogOptions> & Partial<QDialogProps> & Record<string, any>): Vue3MConfirmMessage => {
|
|
234
234
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
235
235
|
// @ts-ignore
|
|
236
236
|
title = title || t('messages.are_you_sure') || ''
|