doway-coms 2.5.9 → 2.6.1

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": "doway-coms",
3
- "version": "2.5.9",
3
+ "version": "2.6.1",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -620,12 +620,17 @@ export function getGridPagerButton(datas,dataCode){
620
620
  */
621
621
  export function getStepMaxValue(datas,fieldCode,step){
622
622
  let tempSortStep = step
623
- let tempDtlMaxSort = XEUtils.max(
623
+ let tempMaxObj = XEUtils.max(
624
624
  datas,
625
625
  fieldCode
626
- )?.sort
626
+ )
627
+ let tempDtlMaxSort = 0
628
+ if(tempMaxObj){
629
+ tempDtlMaxSort = tempMaxObj.sort
630
+ }
627
631
  tempDtlMaxSort = XEUtils.divide(tempDtlMaxSort, tempSortStep)
628
632
  tempDtlMaxSort = XEUtils.floor(tempDtlMaxSort, 0)
629
633
  tempDtlMaxSort = XEUtils.add(tempDtlMaxSort, 1)
630
634
  tempDtlMaxSort = XEUtils.multiply(tempDtlMaxSort, tempSortStep)
635
+ return tempDtlMaxSort
631
636
  }