doway-coms 1.4.18 → 1.4.20
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/dist/css/chunk-vendors.7f83d8f9.css +8 -0
- package/dist/css/index.7946d50b.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +340 -0
- package/dist/js/index.49bc6add.js +2 -0
- package/lib/doway-coms.common.js +120397 -0
- package/lib/doway-coms.css +1 -0
- package/lib/doway-coms.umd.js +120407 -0
- package/lib/doway-coms.umd.min.js +328 -0
- package/package.json +1 -1
- package/packages/BaseGrid/src/index.vue +21 -4
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
@pulldownMultiSelect="pulldownMultiSelect"
|
|
40
40
|
:edit-rules="validRules"
|
|
41
41
|
:tree-config="treeConfig"
|
|
42
|
+
:row-config="rowConfig"
|
|
42
43
|
@resizable-change="resizableChange"
|
|
43
44
|
:checkbox-config="checkboxConfig"
|
|
44
45
|
:expand-config="expandConfig"
|
|
@@ -699,6 +700,13 @@ export default {
|
|
|
699
700
|
},
|
|
700
701
|
deep: true,
|
|
701
702
|
},
|
|
703
|
+
rowConfig: {
|
|
704
|
+
type: Object,
|
|
705
|
+
default: () => {
|
|
706
|
+
return null;
|
|
707
|
+
},
|
|
708
|
+
deep: true,
|
|
709
|
+
},
|
|
702
710
|
expandConfig: {
|
|
703
711
|
type: Object,
|
|
704
712
|
default: () => {
|
|
@@ -1123,7 +1131,7 @@ export default {
|
|
|
1123
1131
|
case "clearFilter":
|
|
1124
1132
|
// 示例
|
|
1125
1133
|
const filterList = this.$refs.baseGrid.getCheckedFilters();
|
|
1126
|
-
|
|
1134
|
+
|
|
1127
1135
|
filterList.forEach((col) => {
|
|
1128
1136
|
// if (
|
|
1129
1137
|
// col.column.params.controlType === "select" ||
|
|
@@ -1133,10 +1141,19 @@ export default {
|
|
|
1133
1141
|
// } else {
|
|
1134
1142
|
// col.column.filters = [{ data: [] }];
|
|
1135
1143
|
// }
|
|
1136
|
-
col.column
|
|
1144
|
+
this.$refs.baseGrid.clearFilter(col.column);
|
|
1145
|
+
col.column.filters = [
|
|
1146
|
+
{
|
|
1147
|
+
data: {
|
|
1148
|
+
bindingValues: '',
|
|
1149
|
+
displayValues: ''
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
]
|
|
1137
1153
|
});
|
|
1138
|
-
|
|
1139
|
-
|
|
1154
|
+
// this.$refs.baseGrid.clearFilter();
|
|
1155
|
+
XEUtils.clear(this.filterExpression)
|
|
1156
|
+
vm.$emit("filterChange");
|
|
1140
1157
|
break;
|
|
1141
1158
|
case "desc":
|
|
1142
1159
|
if (this.sortRemote) {
|