doway-coms 2.4.8 → 2.4.9

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.4.8",
3
+ "version": "2.4.9",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1920,6 +1920,7 @@ export default {
1920
1920
  // }
1921
1921
  }
1922
1922
  if (originCol.controlType === controlType.pulldown) {
1923
+ colParams['selectedSorts'] = originCol.selectedSorts
1923
1924
  colParams['api'] = originCol.api
1924
1925
  colParams['defaultExpression'] = originCol.defaultExpression
1925
1926
  colParams['pageSize'] = originCol.pageSize
@@ -2751,6 +2752,11 @@ export default {
2751
2752
  this.$emit('pulldownBtnClick', btn)
2752
2753
  },
2753
2754
  pulldownMultiSelect(scope, pulldownView, selectRows) {
2755
+ //第一行选中
2756
+ if(scope.column.params.selectedSorts){
2757
+ //存在选择后值排序
2758
+ selectRows = XEUtils.orderBy(selectRows,scope.column.params.selectedSorts)
2759
+ }
2754
2760
  //第一行选中
2755
2761
  pulldownView.setLinkValue(selectRows[0], scope.row)
2756
2762
  this.cellValueChange(scope)