@mythpe/quasar-ui-qui 0.2.35 → 0.2.36
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
|
@@ -911,19 +911,17 @@ defineExpose({
|
|
|
911
911
|
<MRow class="justify-between">
|
|
912
912
|
<MBtn
|
|
913
913
|
v-close-popup
|
|
914
|
-
:label="__('myth.datatable.filter.
|
|
915
|
-
color="negative"
|
|
916
|
-
flat
|
|
914
|
+
:label="__('myth.datatable.filter.save')"
|
|
917
915
|
v-bind="pluginOptions.dt?.dialogButtonsProps as any"
|
|
918
|
-
@click="
|
|
916
|
+
@click="saveFilterDialog"
|
|
919
917
|
/>
|
|
920
918
|
<MBtn
|
|
921
919
|
v-close-popup
|
|
922
|
-
:label="__('myth.datatable.filter.
|
|
923
|
-
color="
|
|
924
|
-
|
|
920
|
+
:label="__('myth.datatable.filter.cancel')"
|
|
921
|
+
color="secondary"
|
|
922
|
+
text-color="white"
|
|
925
923
|
v-bind="pluginOptions.dt?.dialogButtonsProps as any"
|
|
926
|
-
@click="
|
|
924
|
+
@click="closeFilterDialog"
|
|
927
925
|
/>
|
|
928
926
|
</MRow>
|
|
929
927
|
</MCol>
|
|
@@ -1324,7 +1322,6 @@ defineExpose({
|
|
|
1324
1322
|
>
|
|
1325
1323
|
<MBtn
|
|
1326
1324
|
label="myth.titles.close"
|
|
1327
|
-
outline
|
|
1328
1325
|
v-bind="pluginOptions.dt?.dialogButtonsProps"
|
|
1329
1326
|
@click="closeShowDialog"
|
|
1330
1327
|
/>
|
|
@@ -1364,17 +1361,16 @@ defineExpose({
|
|
|
1364
1361
|
<q-skeleton width="200px" />
|
|
1365
1362
|
</template>
|
|
1366
1363
|
<template v-else>
|
|
1367
|
-
<
|
|
1368
|
-
color="negative"
|
|
1369
|
-
fab-mini
|
|
1364
|
+
<MBtn
|
|
1370
1365
|
flat
|
|
1371
1366
|
icon="close"
|
|
1367
|
+
text-color="none"
|
|
1372
1368
|
@click="closeFormDialog"
|
|
1373
1369
|
>
|
|
1374
1370
|
<q-tooltip class="m--dt-btn-tooltip">
|
|
1375
1371
|
{{ __('myth.titles.close') }}
|
|
1376
1372
|
</q-tooltip>
|
|
1377
|
-
</
|
|
1373
|
+
</MBtn>
|
|
1378
1374
|
{{ getFormTitle }}
|
|
1379
1375
|
</template>
|
|
1380
1376
|
</q-toolbar-title>
|
|
@@ -1448,8 +1444,9 @@ defineExpose({
|
|
|
1448
1444
|
<MBtn
|
|
1449
1445
|
v-if="$q.screen.gt.sm"
|
|
1450
1446
|
:disable="loading"
|
|
1447
|
+
color="secondary"
|
|
1451
1448
|
label="myth.titles.close"
|
|
1452
|
-
|
|
1449
|
+
text-color="white"
|
|
1453
1450
|
v-bind="pluginOptions.dt?.dialogButtonsProps"
|
|
1454
1451
|
@click="closeFormDialog"
|
|
1455
1452
|
/>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import type { MBtnProps } from '../../types'
|
|
14
14
|
import { computed } from 'vue'
|
|
15
15
|
import { useBindInput, useMyth } from '../../composable'
|
|
16
|
+
import { extend } from 'quasar'
|
|
16
17
|
|
|
17
18
|
type Props = {
|
|
18
19
|
label?: MBtnProps['label'];
|
|
@@ -44,7 +45,6 @@ const hasLabel = computed<boolean>(() => !!getLabel.value)
|
|
|
44
45
|
const loadingOptions = computed(() => theme.value.buttonLoading)
|
|
45
46
|
const loadingSize = computed<string | undefined>(() => loadingOptions.value ? loadingOptions.value.size : undefined)
|
|
46
47
|
const loadingColor = computed<string | undefined>(() => loadingOptions.value ? loadingOptions.value.color : undefined)
|
|
47
|
-
|
|
48
48
|
defineOptions({
|
|
49
49
|
name: 'MBtn',
|
|
50
50
|
inheritAttrs: !1
|
|
@@ -53,15 +53,19 @@ defineOptions({
|
|
|
53
53
|
|
|
54
54
|
<template>
|
|
55
55
|
<q-btn
|
|
56
|
-
v-bind="
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
v-bind="extend(
|
|
57
|
+
true,
|
|
58
|
+
{},
|
|
59
|
+
btnTheme,
|
|
60
|
+
pluginOptions.btn,
|
|
61
|
+
{ariaLabel: getAriaLabel},
|
|
62
|
+
$attrs,
|
|
63
|
+
{
|
|
64
|
+
loading,
|
|
65
|
+
label2: loading && getLabel && loadingOptions ? `${getLabel} ...` : getLabel,
|
|
66
|
+
label: getLabel,
|
|
67
|
+
}
|
|
68
|
+
)"
|
|
65
69
|
>
|
|
66
70
|
<template
|
|
67
71
|
v-if="!!$slots.loading"
|
package/src/style/main.sass
CHANGED
|
@@ -69,13 +69,14 @@ $maxes: ('width', 'height') !default
|
|
|
69
69
|
.max-#{$max}
|
|
70
70
|
max-#{$max}: 100% !important
|
|
71
71
|
|
|
72
|
+
$m--bordered-color: var(--q-primary) !default
|
|
72
73
|
$alignsX: ('top', 'bottom') !default
|
|
73
74
|
$alignsY: ('left', 'right') !default
|
|
74
75
|
$radius-class-name: 'border-rounded' !default
|
|
75
76
|
$radius-value: $generic-border-radius !default
|
|
76
77
|
$bordered-class-name: 'bordered' !default
|
|
77
78
|
$bordered-size: 1px !default
|
|
78
|
-
$bordered-style: $bordered-size solid
|
|
79
|
+
$bordered-style: $bordered-size solid $m--bordered-color !default
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
.#{$radius-class-name}
|