@mythpe/quasar-ui-qui 0.0.42 → 0.0.44
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
|
@@ -170,7 +170,7 @@ const btnLoading = computed(() => myth.btnLoading.value)
|
|
|
170
170
|
const getLabel = computed<string | undefined>(() => props.label ? (__(props.label) ?? undefined) : undefined)
|
|
171
171
|
const getSize = computed<string>(() => myth.btnLoading.value?.size || '20px')
|
|
172
172
|
const getColor = computed<string | undefined>(() => myth.btnLoading.value?.color || undefined)
|
|
173
|
-
const {
|
|
173
|
+
const { attrs } = useBindInput<QBtnProps & { name: string }>(() => props, 'btn')
|
|
174
174
|
defineOptions({
|
|
175
175
|
name: 'MBtn',
|
|
176
176
|
inheritAttrs: !1
|
|
@@ -180,8 +180,7 @@ defineOptions({
|
|
|
180
180
|
<template>
|
|
181
181
|
<q-btn
|
|
182
182
|
v-bind="{
|
|
183
|
-
|
|
184
|
-
...theme,
|
|
183
|
+
...attrs,
|
|
185
184
|
label: loading ? `${getLabel} ...` : getLabel,
|
|
186
185
|
ariaLabel: 'ariaLabel' in attrs && attrs.ariaLabel ? __(attrs.ariaLabel) : getLabel
|
|
187
186
|
}"
|