cloud-web-corejs 1.0.54-dev.228 → 1.0.54-dev.229

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.228",
4
+ "version": "1.0.54-dev.229",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -868,6 +868,19 @@ modules = {
868
868
  if (this.widget.options.hideGridCheckBox) {
869
869
  otherConfig.checkBoxRequired = false;
870
870
  }
871
+
872
+ let gridPageSize = this.widget.options.gridPageSize;
873
+ let gridPageSizeList = this.widget.options.gridPageSizeList || [];
874
+ if(!gridPageSizeList || !gridPageSizeList.length){
875
+ pagerConfig.pageSizes = [50,100,200,500]
876
+ if(!gridPageSize)gridPageSize = 100
877
+ pagerConfig.pageSize = gridPageSize
878
+ }else{
879
+ pagerConfig.pageSizes = gridPageSizeList.filter(item=>item.value).map(item=>item.value);
880
+ if(!gridPageSize)gridPageSize = pagerConfig.pageSizes[0]
881
+ pagerConfig.pageSize = gridPageSize
882
+ }
883
+
871
884
  let tableOption = {
872
885
  // vue: this,
873
886
  tableRef: tableRef,