bri-components 1.3.0 → 1.3.2

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.3.0",
3
+ "version": "1.3.2",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -9,7 +9,7 @@
9
9
  customIcon: 'bico-Cascadetable'
10
10
  }]"></dsh-icons>
11
11
  <span class="cascaderTable-unit-text">
12
- {{ curVal && curVal.tree.length }}
12
+ {{ showVal }}
13
13
  </span>
14
14
  </span>
15
15
 
@@ -131,6 +131,10 @@
131
131
  showSlotClose: false,
132
132
  closable: true
133
133
  };
134
+ },
135
+
136
+ showVal () {
137
+ return `${this.curVal ? this.$getTreeLeafTotal(this.curVal.tree) : 0} 行`;
134
138
  }
135
139
  },
136
140
  created () {},
@@ -191,7 +191,7 @@ export default {
191
191
  const parameterTypeName = (this.parameterPropsObj._data.find(parameterTypeItem => parameterTypeItem._key === parameterType) || { name: `${parameterType}不存在` }).name;
192
192
 
193
193
  const operators = fieldData[!dynamicList.length && ["set"].includes(this.mode) ? "operatorsSet" : "operators"] || fieldData.operators || [];
194
- const fieldOperator = initContion.fieldOperator || (operators[0] || {})._key;
194
+ const fieldOperator = initContion.fieldOperator || (["reference"].includes(fieldType) ? "eq" : (operators[0] || {})._key);
195
195
  const fieldOperatorName = (operators.find(operatorItem => operatorItem._key === fieldOperator) || { name: `${fieldOperator}不存在` }).name;
196
196
 
197
197
  return {
@@ -341,7 +341,7 @@ export default {
341
341
  : item[key]
342
342
  )
343
343
  : item[key]
344
- }), {})
344
+ }), {})
345
345
  );
346
346
  };
347
347