@mythpe/quasar-ui-qui 0.0.72 → 0.0.73
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
|
@@ -361,7 +361,9 @@ const hasShowBtn = computed<boolean>(() => {
|
|
|
361
361
|
const hasDestroyBtn = computed<boolean>(() => !props.hideDestroyBtn)
|
|
362
362
|
const hasFilterDialog = computed<boolean>(() => !!slots.filter)
|
|
363
363
|
const hasMenu = computed<boolean>(() => {
|
|
364
|
-
|
|
364
|
+
const pdf = !!props.pdf && getRows.value.length > 0
|
|
365
|
+
const excel = !!props.excel && getRows.value.length > 0
|
|
366
|
+
if (pdf || excel) {
|
|
365
367
|
return !0
|
|
366
368
|
}
|
|
367
369
|
return hasAddBtn.value && !!addListBtnComputed.value
|
|
@@ -1555,8 +1557,8 @@ defineOptions({
|
|
|
1555
1557
|
key="more-selection-btn"
|
|
1556
1558
|
:disable="tableOptions.loading"
|
|
1557
1559
|
icon="ion-ios-options"
|
|
1558
|
-
tooltip="myth.datatable.hints.more"
|
|
1559
1560
|
label="myth.datatable.hints.options"
|
|
1561
|
+
tooltip="myth.datatable.hints.more"
|
|
1560
1562
|
v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.more}"
|
|
1561
1563
|
>
|
|
1562
1564
|
<MModalMenu
|
|
@@ -1588,8 +1590,9 @@ defineOptions({
|
|
|
1588
1590
|
<span> {{ getFormTitle }}</span>
|
|
1589
1591
|
</q-item-section>
|
|
1590
1592
|
</q-item>
|
|
1593
|
+
<!-- Export PDF-->
|
|
1591
1594
|
<q-item
|
|
1592
|
-
v-if="pdf"
|
|
1595
|
+
v-if="pdf && getRows.length > 0"
|
|
1593
1596
|
v-close-popup
|
|
1594
1597
|
clickable
|
|
1595
1598
|
v-bind="pluginOptions.dt?.buttons?.moreItem"
|
|
@@ -1615,8 +1618,9 @@ defineOptions({
|
|
|
1615
1618
|
</span>
|
|
1616
1619
|
</q-item-section>
|
|
1617
1620
|
</q-item>
|
|
1621
|
+
<!-- Export Excel-->
|
|
1618
1622
|
<q-item
|
|
1619
|
-
v-if="excel"
|
|
1623
|
+
v-if="excel && getRows.length > 0"
|
|
1620
1624
|
v-close-popup
|
|
1621
1625
|
clickable
|
|
1622
1626
|
v-bind="pluginOptions.dt?.buttons?.moreItem"
|
|
@@ -1669,8 +1673,8 @@ defineOptions({
|
|
|
1669
1673
|
v-if="hasFilterDialog"
|
|
1670
1674
|
key="filter-selection-btn"
|
|
1671
1675
|
icon="o_filter_alt"
|
|
1672
|
-
tooltip="myth.datatable.hints.filter"
|
|
1673
1676
|
label="myth.datatable.hints.filter"
|
|
1677
|
+
tooltip="myth.datatable.hints.filter"
|
|
1674
1678
|
v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter}"
|
|
1675
1679
|
@click="openFilterDialog()"
|
|
1676
1680
|
>
|