tenghui-ui 2.2.1 → 2.2.2
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
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
ref="pageRef"
|
|
97
97
|
layout="total, sizes, prev, pager, next, jumper"
|
|
98
98
|
:current-page="Number(pageData.offset)"
|
|
99
|
-
:page-sizes="
|
|
99
|
+
:page-sizes="defaultPageSizes"
|
|
100
100
|
:page-size="Number(pageData.limit)"
|
|
101
101
|
:total="Number(pageData.total)"
|
|
102
102
|
@size-change="(val) => handlePageChange('limit', val)"
|
|
@@ -252,13 +252,16 @@ export default {
|
|
|
252
252
|
hoverStyle: {
|
|
253
253
|
type: Boolean,
|
|
254
254
|
default: true
|
|
255
|
+
},
|
|
256
|
+
pageSizes: {
|
|
257
|
+
type: Array
|
|
255
258
|
}
|
|
256
259
|
},
|
|
257
260
|
|
|
258
261
|
data() {
|
|
259
262
|
return {
|
|
260
263
|
isPresetProp,
|
|
261
|
-
|
|
264
|
+
defaultPageSizes: [20, 50, 100, 200, 500, 1000],
|
|
262
265
|
tableHeight: '',
|
|
263
266
|
checkTab: '',
|
|
264
267
|
useMaps: {},
|
|
@@ -397,6 +400,8 @@ export default {
|
|
|
397
400
|
// 设置默认tab
|
|
398
401
|
this.checkTab = this.defaultTab;
|
|
399
402
|
|
|
403
|
+
this.defaultPageSizes = this.pageSizes || this.$UICONFIG.pageSizes;
|
|
404
|
+
|
|
400
405
|
// 默认map
|
|
401
406
|
this.useMaps = JSON.parse(JSON.stringify(this.tableMap));
|
|
402
407
|
},
|