@monoui/vuejs 1.1.65 → 1.1.66
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/dist/main.js +5 -5
- package/package.json +1 -1
- package/src/components/Table/Table.vue +26 -6
- package/src/icons.js +2 -0
package/package.json
CHANGED
|
@@ -264,19 +264,41 @@
|
|
|
264
264
|
variant="light"
|
|
265
265
|
>
|
|
266
266
|
<template #button-content>
|
|
267
|
+
<mui-icon
|
|
268
|
+
icon="download"
|
|
269
|
+
class="mr-1"
|
|
270
|
+
/>
|
|
267
271
|
Export
|
|
268
272
|
</template>
|
|
269
273
|
|
|
270
|
-
<b-dropdown-item @click="exportTo(
|
|
274
|
+
<b-dropdown-item @click="exportTo(2)">
|
|
275
|
+
<mui-icon icon="file" class="mr-1" />
|
|
271
276
|
Current Page
|
|
277
|
+
<small>
|
|
278
|
+
({{ settings.itemPerPage }}
|
|
279
|
+
items)
|
|
280
|
+
</small>
|
|
272
281
|
</b-dropdown-item>
|
|
273
282
|
|
|
274
|
-
<b-dropdown-item @click="exportTo(
|
|
283
|
+
<b-dropdown-item @click="exportTo(1)">
|
|
284
|
+
<mui-icon icon="list" class="mr-1" />
|
|
275
285
|
All Pages
|
|
286
|
+
<small v-if="filters.length === 0">
|
|
287
|
+
({{ settings.totalItemCount }}
|
|
288
|
+
items)
|
|
289
|
+
</small>
|
|
276
290
|
</b-dropdown-item>
|
|
277
291
|
|
|
278
|
-
<b-dropdown-item
|
|
292
|
+
<b-dropdown-item
|
|
293
|
+
@click="exportTo(3)"
|
|
294
|
+
v-if="filters.length > 0"
|
|
295
|
+
>
|
|
296
|
+
<mui-icon icon="filter" class="mr-1" />
|
|
279
297
|
Only Filtered
|
|
298
|
+
<small>
|
|
299
|
+
({{ settings.totalItemCount }}
|
|
300
|
+
items)
|
|
301
|
+
</small>
|
|
280
302
|
</b-dropdown-item>
|
|
281
303
|
|
|
282
304
|
<slot name="pagination-export-item"></slot>
|
|
@@ -618,7 +640,6 @@ export default {
|
|
|
618
640
|
async getValues(
|
|
619
641
|
addHistory = true,
|
|
620
642
|
initialLoad = false,
|
|
621
|
-
isExport = false,
|
|
622
643
|
exportScope = 0
|
|
623
644
|
) {
|
|
624
645
|
this.isLoading = true;
|
|
@@ -630,7 +651,6 @@ export default {
|
|
|
630
651
|
this.sorting,
|
|
631
652
|
currentPage,
|
|
632
653
|
itemPerPage,
|
|
633
|
-
isExport,
|
|
634
654
|
exportScope
|
|
635
655
|
);
|
|
636
656
|
|
|
@@ -1140,7 +1160,7 @@ export default {
|
|
|
1140
1160
|
},
|
|
1141
1161
|
|
|
1142
1162
|
async exportTo(scope) {
|
|
1143
|
-
await this.getValues(true, false,
|
|
1163
|
+
await this.getValues(true, false, scope);
|
|
1144
1164
|
}
|
|
1145
1165
|
}
|
|
1146
1166
|
};
|
package/src/icons.js
CHANGED
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
faAngleDoubleRight,
|
|
46
46
|
faStopwatch,
|
|
47
47
|
faFilter,
|
|
48
|
+
faFile,
|
|
48
49
|
faBezierCurve,
|
|
49
50
|
faInfoCircle,
|
|
50
51
|
faBolt,
|
|
@@ -126,6 +127,7 @@ library.add(
|
|
|
126
127
|
faAngleDoubleRight,
|
|
127
128
|
faStopwatch,
|
|
128
129
|
faFilter,
|
|
130
|
+
faFile,
|
|
129
131
|
faBezierCurve,
|
|
130
132
|
faInfoCircle,
|
|
131
133
|
faBolt,
|