@monoui/vuejs 1.1.60 → 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/dist/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Date/DatePicker.vue +2 -12
- package/src/components/Table/Table.vue +30 -10
package/package.json
CHANGED
|
@@ -97,13 +97,8 @@ export default {
|
|
|
97
97
|
let date2 = moment(this.value[1]).toDate();
|
|
98
98
|
return [date1, date2];
|
|
99
99
|
} else {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return date;
|
|
103
|
-
} else {
|
|
104
|
-
let date = moment(this.value).toDate();
|
|
105
|
-
return date;
|
|
106
|
-
}
|
|
100
|
+
let date = moment(this.value).toDate();
|
|
101
|
+
return date;
|
|
107
102
|
}
|
|
108
103
|
},
|
|
109
104
|
set: function(value) {
|
|
@@ -263,11 +258,6 @@ export default {
|
|
|
263
258
|
* shortcuts.
|
|
264
259
|
* Allows to determine shortcuts when shortcutsEnable property is true
|
|
265
260
|
*/
|
|
266
|
-
isUTC: {
|
|
267
|
-
type: Boolean,
|
|
268
|
-
required: false,
|
|
269
|
-
default: false
|
|
270
|
-
},
|
|
271
261
|
shortcuts: {
|
|
272
262
|
type: Array,
|
|
273
263
|
default: () => {
|
|
@@ -199,16 +199,13 @@
|
|
|
199
199
|
size="sm"
|
|
200
200
|
variant="light"
|
|
201
201
|
>
|
|
202
|
-
<
|
|
202
|
+
<b-dropdown-item
|
|
203
203
|
v-for="perPage in filteredPerPageValues"
|
|
204
|
+
:key="'per-page-' + perPage"
|
|
205
|
+
@click="changeItemPerPage(perPage)"
|
|
204
206
|
>
|
|
205
|
-
|
|
206
|
-
|
|
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
|
|
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
|
};
|