doway-coms 3.0.8 → 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
|
|
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.
|
|
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
|
|
1085
|
+
return {drag:false}
|
|
1083
1086
|
},
|
|
1084
1087
|
deep: true,
|
|
1085
1088
|
},
|
|
@@ -1223,7 +1226,7 @@ export default {
|
|
|
1223
1226
|
type:Object,
|
|
1224
1227
|
default:()=>{
|
|
1225
1228
|
return {
|
|
1226
|
-
enabled:true,gt:0
|
|
1229
|
+
enabled:true,gt:0,mode:'default'
|
|
1227
1230
|
}
|
|
1228
1231
|
}
|
|
1229
1232
|
}
|
|
@@ -1879,7 +1882,7 @@ export default {
|
|
|
1879
1882
|
field: originCol.field,
|
|
1880
1883
|
title: originCol.title,
|
|
1881
1884
|
tooltip: originCol.tooltip,
|
|
1882
|
-
visible: true
|
|
1885
|
+
visible: true
|
|
1883
1886
|
}
|
|
1884
1887
|
|
|
1885
1888
|
if (XEUtils.has(originCol, 'showOverflow')) {
|
|
@@ -1899,6 +1902,7 @@ export default {
|
|
|
1899
1902
|
}
|
|
1900
1903
|
if (originCol.dragSort === true) {
|
|
1901
1904
|
colInfo['dragSort'] = true
|
|
1905
|
+
this.rowConfig['drag'] = true
|
|
1902
1906
|
}
|
|
1903
1907
|
if (originCol.isMerge === true) {
|
|
1904
1908
|
//合并行
|
|
@@ -2229,9 +2233,14 @@ export default {
|
|
|
2229
2233
|
// colInfo['filterRender'] ={name: filterTypeName,showFilterFooter:false}
|
|
2230
2234
|
customSlot['filter'] = filterTypeName
|
|
2231
2235
|
}
|
|
2232
|
-
// console.debug(customSlot)
|
|
2233
2236
|
colInfo.slots = customSlot
|
|
2234
|
-
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
//行拖拽无需设置自定义插槽
|
|
2240
|
+
if(originCol.controlType==='dragSort'){
|
|
2241
|
+
colInfo.slots = {}
|
|
2242
|
+
colInfo.editRender = null
|
|
2243
|
+
}
|
|
2235
2244
|
return colInfo
|
|
2236
2245
|
},
|
|
2237
2246
|
validPrecision({ cellValue, column }) {
|
|
@@ -2593,6 +2602,12 @@ export default {
|
|
|
2593
2602
|
}
|
|
2594
2603
|
return isShow
|
|
2595
2604
|
},
|
|
2605
|
+
rowDragVisibleMethod(scope){
|
|
2606
|
+
if(scope.column.params.edit===true){
|
|
2607
|
+
return true
|
|
2608
|
+
}
|
|
2609
|
+
return false
|
|
2610
|
+
},
|
|
2596
2611
|
activeCellMethod({ row, column }) {
|
|
2597
2612
|
let emitData = {
|
|
2598
2613
|
row: row,
|