@mythpe/quasar-ui-qui 0.1.68 → 0.1.69
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
|
@@ -28,6 +28,7 @@ type P = {
|
|
|
28
28
|
autofocus?: Props['autofocus'];
|
|
29
29
|
errors?: Props['errors'];
|
|
30
30
|
type?: Props['type'];
|
|
31
|
+
loading?: Props['loading'];
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -40,7 +41,8 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
40
41
|
topLabelProps: undefined,
|
|
41
42
|
autofocus: !1,
|
|
42
43
|
errors: () => ([]),
|
|
43
|
-
type: 'tel'
|
|
44
|
+
type: 'tel',
|
|
45
|
+
loading: !1
|
|
44
46
|
})
|
|
45
47
|
type Func = () => void;
|
|
46
48
|
type Emits = {
|
|
@@ -197,7 +199,7 @@ const getTime = computed<string | null>(() => {
|
|
|
197
199
|
const s = newDate.getSeconds()
|
|
198
200
|
return `${(m < 9 ? '0' : '') + m}:${(s < 9 ? '0' : '') + s}`
|
|
199
201
|
})
|
|
200
|
-
const disabled = computed(() => seconds.value > 0)
|
|
202
|
+
const disabled = computed(() => seconds.value > 0 || props.loading)
|
|
201
203
|
const clear = () => {
|
|
202
204
|
interval && clearInterval(interval)
|
|
203
205
|
}
|