@monoui/vuejs 1.1.61 → 1.1.62

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -199,16 +199,13 @@
199
199
  size="sm"
200
200
  variant="light"
201
201
  >
202
- <template
202
+ <b-dropdown-item
203
203
  v-for="perPage in filteredPerPageValues"
204
+ :key="'per-page-' + perPage"
205
+ @click="changeItemPerPage(perPage)"
204
206
  >
205
- <b-dropdown-item
206
- :key="'per-page-' + perPage"
207
- @click="changeItemPerPage(perPage)"
208
- >
209
- {{ perPage }}
210
- </b-dropdown-item>
211
- </template>
207
+ {{ perPage }}
208
+ </b-dropdown-item>
212
209
  <b-dropdown-divider
213
210
  v-if="
214
211
  filteredPerPageValues &&
@@ -257,8 +254,24 @@
257
254
  Refresh
258
255
  <span v-show="settings.totalItemCount">
259
256
  | {{ settings.totalItemCount }} Rows
260
- </span></mui-button
257
+ </span>
258
+ </mui-button>
259
+
260
+ <b-dropdown
261
+ size="sm"
262
+ label="Export"
263
+ variant="light"
261
264
  >
265
+ <template #button-content>
266
+ Export
267
+ </template>
268
+
269
+ <b-dropdown-item @click="() => exportTo(0)">
270
+ All Pages
271
+ </b-dropdown-item>
272
+
273
+ <slot name="pagination-export-item"></slot>
274
+ </b-dropdown>
262
275
  </div>
263
276
  </slot>
264
277
  <slot name="pagination-buttons">
@@ -464,7 +477,8 @@ export default {
464
477
  currentPage: 1,
465
478
  pageCount: 0,
466
479
  itemPerPage: 10,
467
- totalItemCount: 0
480
+ totalItemCount: 0,
481
+ isExport: false
468
482
  },
469
483
  tableData: [],
470
484
  searchWord: null,
@@ -1102,6 +1116,12 @@ export default {
1102
1116
  } catch (error) {
1103
1117
  console.error(error);
1104
1118
  }
1119
+ },
1120
+
1121
+ exportTo(scope) {
1122
+ this.settings.isExport = true;
1123
+ this.settings.scope = scope;
1124
+ this.refresh();
1105
1125
  }
1106
1126
  }
1107
1127
  };