doway-coms 2.9.8 → 2.10.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": "2.
|
|
3
|
+
"version": "2.10.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.8.24",
|
|
29
29
|
"xe-clipboard": "1.10.2",
|
|
30
30
|
"xe-utils": "3.5.4"
|
|
31
31
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
@preSearch="preSearch"
|
|
56
56
|
@pulldownBtnClick="pulldownBtnClick"
|
|
57
57
|
@pulldownMultiSelect="pulldownMultiSelect"
|
|
58
|
-
:edit-rules="
|
|
58
|
+
:edit-rules="editRules"
|
|
59
59
|
:tree-config="treeConfig"
|
|
60
60
|
:row-config="rowConfig"
|
|
61
61
|
@resizable-change="resizableChange"
|
|
@@ -808,6 +808,7 @@ export default {
|
|
|
808
808
|
internalColumns: [],
|
|
809
809
|
gridEdit: false,
|
|
810
810
|
addBtnEdit: true,
|
|
811
|
+
editRules:null,
|
|
811
812
|
validRules: {},
|
|
812
813
|
footerSum: [],
|
|
813
814
|
mergeFields: [],
|
|
@@ -1206,6 +1207,9 @@ export default {
|
|
|
1206
1207
|
this.internalColumns[i].slots.header = this.columns[i].field
|
|
1207
1208
|
}
|
|
1208
1209
|
}
|
|
1210
|
+
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
1211
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1212
|
+
|
|
1209
1213
|
|
|
1210
1214
|
// 初始化排序和筛选
|
|
1211
1215
|
if (this.sortRemote) {
|
|
@@ -1371,6 +1375,9 @@ export default {
|
|
|
1371
1375
|
this.internalColumns[i].slots.header = this.columns[i].field
|
|
1372
1376
|
}
|
|
1373
1377
|
}
|
|
1378
|
+
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
1379
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1380
|
+
|
|
1374
1381
|
},
|
|
1375
1382
|
// 关闭所有展开行
|
|
1376
1383
|
closeAllExpand() {
|
|
@@ -2899,12 +2906,20 @@ export default {
|
|
|
2899
2906
|
columns.forEach((column) => {
|
|
2900
2907
|
this.internalColumns.push(this.initColumns(column))
|
|
2901
2908
|
})
|
|
2909
|
+
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
2910
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2911
|
+
|
|
2902
2912
|
this.$refs.baseGrid.refreshColumn()
|
|
2903
2913
|
},
|
|
2904
2914
|
addRules(fields, rules) {
|
|
2915
|
+
this.validRules = {}
|
|
2905
2916
|
fields.forEach((field) => {
|
|
2906
|
-
this
|
|
2917
|
+
this.validRules[field] = rules
|
|
2918
|
+
// this.$set(this.validRules, field, rules)
|
|
2907
2919
|
})
|
|
2920
|
+
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
2921
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2922
|
+
|
|
2908
2923
|
this.$refs.baseGrid.refreshColumn()
|
|
2909
2924
|
},
|
|
2910
2925
|
displayValueSearchTextChange(colInfo) {
|