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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -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
- this.$refs.baseGrid.clearFilter();
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.filters = [{ data: [] }];
1144
+ this.$refs.baseGrid.clearFilter(col.column);
1145
+ col.column.filters = [
1146
+ {
1147
+ data: {
1148
+ bindingValues: '',
1149
+ displayValues: ''
1150
+ }
1151
+ }
1152
+ ]
1137
1153
  });
1138
- XEUtils.clear(this.filterExpression)
1139
- vm.$emit("filterChange");
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) {