bri-components 1.2.92 → 1.2.94

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": "bri-components",
3
- "version": "1.2.92",
3
+ "version": "1.2.94",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -21,15 +21,15 @@
21
21
  return {};
22
22
  },
23
23
  computed: {
24
- modForm () {
25
- return this.propsObj.modForm;
24
+ modFormList () {
25
+ return this.propsObj.modForm || [];
26
26
  }
27
27
  },
28
28
  created () {},
29
29
  methods: {
30
30
  // 字段 -点击返回
31
31
  clickBack (operationItem, formItem, formIndex) {
32
- this.$emit("changeField", this.modForm.find(formItem => formItem._key === this.value[this.propsObj._key]), null, null);
32
+ this.$emit("changeField", this.modFormList.find(formItem => formItem._key === this.value[this.controlKey]), null, null);
33
33
  }
34
34
  }
35
35
  };
@@ -168,16 +168,7 @@
168
168
  onDftSearch: true,
169
169
  _line: true,
170
170
  _useColor: false,
171
- _optionKind: "dropdown",
172
-
173
- ...(
174
- // date、daterange类型的(formItem._type基本不会为daterange)
175
- ["date", "daterange"].includes(formItem._type)
176
- ? {
177
- _useShortcuts: false
178
- }
179
- : {}
180
- )
171
+ _optionKind: "dropdown"
181
172
  };
182
173
  }
183
174
  }
@@ -148,10 +148,12 @@ export default {
148
148
  }
149
149
  },
150
150
  // 发生改动
151
- change (operationType, conditionItem, subAdvSearchObj) {
151
+ change (operationType, conditionItem, ...params) {
152
152
  if (operationType === "loopSearch") {
153
+ const subAdvSearchObj = params[0];
153
154
  Object.assign(conditionItem, subAdvSearchObj);
154
155
  } else if (operationType === "subSearch") {
156
+ const subAdvSearchObj = params[0];
155
157
  Object.assign(conditionItem.fieldSearch, subAdvSearchObj);
156
158
  }
157
159
 
@@ -339,7 +341,7 @@ export default {
339
341
  : item[key]
340
342
  )
341
343
  : item[key]
342
- }), {})
344
+ }), {})
343
345
  );
344
346
  };
345
347
 
@@ -173,6 +173,13 @@
173
173
  changePageSize (...params) {
174
174
  this.$emit("changePageSize", ...params);
175
175
  }
176
+ },
177
+ watch: {
178
+ "listPropsObj.checkboxOption.selectedRowKeys" (newVal) {
179
+ if (!newVal.length && this.$refs.list.selections) {
180
+ this.$refs.list.selections = [];
181
+ }
182
+ }
176
183
  }
177
184
  };
178
185
  </script>