three-trees-ui 1.0.16 → 1.0.18

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": "three-trees-ui",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -553,7 +553,9 @@
553
553
  )
554
554
  },
555
555
  sortDisplayfield() {
556
- return this.displayfield.sort((a, b) => {
556
+ let reverseArr = JSON.parse(JSON.stringify(this.displayfield))
557
+ reverseArr.reverse()
558
+ return reverseArr.sort((a, b) => {
557
559
  return a.sort > b.sort ? 1 : -1
558
560
  })
559
561
  },
@@ -1691,14 +1693,12 @@
1691
1693
  }
1692
1694
  // 需根据key 找到对应 返回数据的返回名称
1693
1695
  let returnMap = returnStr.find((k) => {
1694
- return (
1695
- k.field.toLowerCase() == jumpParamValue.toLowerCase()
1696
- )
1696
+ return k.field.toLowerCase() == jumpParamValue.toLowerCase()
1697
1697
  })
1698
1698
  let returnMapKey = returnMap ? returnMap.comment : ''
1699
- val += `${decodeURIComponent(item[from])}¯${
1700
- jumpParamKey
1701
- }:${decodeURIComponent(item[returnMapKey])},`
1699
+ val += `${decodeURIComponent(
1700
+ item[from]
1701
+ )}¯${jumpParamKey}:${decodeURIComponent(item[returnMapKey])},`
1702
1702
  } else {
1703
1703
  val += decodeURIComponent(item[from]) + ','
1704
1704
  }
@@ -478,7 +478,9 @@
478
478
  )
479
479
  },
480
480
  sortDisplayfield() {
481
- return this.displayfield.sort((a, b) => {
481
+ let reverseArr = JSON.parse(JSON.stringify(this.displayfield))
482
+ reverseArr.reverse()
483
+ return reverseArr.sort((a, b) => {
482
484
  return a.sort > b.sort ? 1 : -1
483
485
  })
484
486
  },
@@ -528,7 +528,7 @@
528
528
  }
529
529
 
530
530
  .el-dialog:not(.custom-dialog-form) {
531
- height: 90%;
531
+ height: 86%;
532
532
  min-height: 400px;
533
533
  }
534
534
  @media (max-height: 960px) {