doway-coms 3.0.9 → 3.1.0

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": "3.0.9",
3
+ "version": "3.1.0",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -25,7 +25,7 @@
25
25
  "vue-router": "3.6.5",
26
26
  "vuedraggable": "^2.24.3",
27
27
  "vuex": "3.6.2",
28
- "vxe-table": "3.11.33",
28
+ "vxe-table": "3.12.1",
29
29
  "vxe-pc-ui":"3.3.83",
30
30
  "xe-clipboard": "1.10.2",
31
31
  "xe-utils": "3.5.4"
@@ -58,6 +58,9 @@
58
58
  :edit-rules="editRules"
59
59
  :tree-config="treeConfig"
60
60
  :row-config="rowConfig"
61
+ :row-drag-config="{
62
+ visibleMethod:rowDragVisibleMethod
63
+ }"
61
64
  @resizable-change="resizableChange"
62
65
  :checkbox-config="checkboxConfig"
63
66
  :expand-config="expandConfig"
@@ -1079,7 +1082,7 @@ export default {
1079
1082
  rowConfig: {
1080
1083
  type: Object,
1081
1084
  default: () => {
1082
- return null
1085
+ return {drag:false}
1083
1086
  },
1084
1087
  deep: true,
1085
1088
  },
@@ -1879,8 +1882,7 @@ export default {
1879
1882
  field: originCol.field,
1880
1883
  title: originCol.title,
1881
1884
  tooltip: originCol.tooltip,
1882
- visible: true,
1883
- editRender:{} //一定要设置,要不然筛选就不会出来,升级3.11后出现的问题
1885
+ visible: true
1884
1886
  }
1885
1887
 
1886
1888
  if (XEUtils.has(originCol, 'showOverflow')) {
@@ -1900,6 +1902,7 @@ export default {
1900
1902
  }
1901
1903
  if (originCol.dragSort === true) {
1902
1904
  colInfo['dragSort'] = true
1905
+ this.rowConfig['drag'] = true
1903
1906
  }
1904
1907
  if (originCol.isMerge === true) {
1905
1908
  //合并行
@@ -2082,11 +2085,11 @@ export default {
2082
2085
  }
2083
2086
 
2084
2087
  //可以编辑
2085
- // colInfo.editRender = {
2086
- // // autofocus: tempAutoSelect,
2087
- // // autoselect:tempAutoSelect,
2088
- // // name:'$input' //originCol.controlType + '_edit',
2089
- // }
2088
+ colInfo.editRender = {
2089
+ // autofocus: tempAutoSelect,
2090
+ // autoselect:tempAutoSelect,
2091
+ // name:'$input' //originCol.controlType + '_edit',
2092
+ }
2090
2093
  //编辑插槽
2091
2094
  customSlot['edit'] = originCol.controlType + '_edit'
2092
2095
  // colInfo['editRender'] = {
@@ -2230,9 +2233,14 @@ export default {
2230
2233
  // colInfo['filterRender'] ={name: filterTypeName,showFilterFooter:false}
2231
2234
  customSlot['filter'] = filterTypeName
2232
2235
  }
2233
- // console.debug(customSlot)
2234
2236
  colInfo.slots = customSlot
2235
- // console.debug(colInfo)
2237
+
2238
+
2239
+ //行拖拽无需设置自定义插槽
2240
+ if(originCol.controlType==='dragSort'){
2241
+ colInfo.slots = {}
2242
+ colInfo.editRender = null
2243
+ }
2236
2244
  return colInfo
2237
2245
  },
2238
2246
  validPrecision({ cellValue, column }) {
@@ -2594,6 +2602,12 @@ export default {
2594
2602
  }
2595
2603
  return isShow
2596
2604
  },
2605
+ rowDragVisibleMethod(scope){
2606
+ if(scope.column.params.edit===true){
2607
+ return true
2608
+ }
2609
+ return false
2610
+ },
2597
2611
  activeCellMethod({ row, column }) {
2598
2612
  let emitData = {
2599
2613
  row: row,