bri-components 1.4.37 → 1.4.39

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.4.37",
3
+ "version": "1.4.39",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  created () {
54
- this.init();
54
+ // this.init();
55
55
  },
56
56
  methods: {
57
57
  init () {
@@ -62,7 +62,7 @@
62
62
  }
63
63
  },
64
64
  created () {
65
- this.init();
65
+ // this.init();
66
66
  },
67
67
  methods: {
68
68
  init () {
@@ -33,7 +33,7 @@ export default {
33
33
  ...this.propsObj,
34
34
  ...this.commonDealPropsObj,
35
35
 
36
- _changeOnSelect: this.isOnSearch
36
+ _changeOnSelect: this.isInSearch
37
37
  ? true
38
38
  : this.propsObj._changeOnSelect == undefined ? false : this.propsObj._changeOnSelect, // 每级菜单都可取值 -默认取末级
39
39
  _joinSymbol: _joinSymbol // 级联拼接符
@@ -115,7 +115,7 @@ export default {
115
115
  },
116
116
  // 是否为多选模式
117
117
  multipleMode () {
118
- return this.isOnDftSearch || this.isOnSearch
118
+ return this.isInDftSearch || this.isInSearch
119
119
  ? true
120
120
  : ["checkbox", "regions", "cascaders", "labels", "refCheckbox"].includes(this.controlType)
121
121
  ? true
@@ -191,12 +191,12 @@ export default {
191
191
  return !!this.propsObj.inRefDetail;
192
192
  },
193
193
  // 高级搜索状态
194
- isOnSearch () {
195
- return !!this.propsObj.onSearch;
194
+ isInSearch () {
195
+ return !!this.propsObj.inSearch;
196
196
  },
197
197
  // 默认搜索状态
198
- isOnDftSearch () {
199
- return !!this.propsObj.onDftSearch;
198
+ isInDftSearch () {
199
+ return !!this.propsObj.inDftSearch;
200
200
  },
201
201
  isUnitUpdate () {
202
202
  return this.isInTable && !!this.canEdit;
@@ -66,7 +66,7 @@ export default {
66
66
  },
67
67
 
68
68
  highSearch () {
69
- return this.isOnSearch ? true : this.selfPropsObj._highSearch;
69
+ return this.isInSearch ? true : this.selfPropsObj._highSearch;
70
70
  },
71
71
  searchString () {
72
72
  return this.selfPropsObj._searchString;
@@ -147,7 +147,7 @@
147
147
  return this.selfPropsObj._labelType;
148
148
  },
149
149
  onlySelect () {
150
- return this.isOnSearch ? true : this.selfPropsObj._onlySelect;
150
+ return this.isInSearch ? true : this.selfPropsObj._onlySelect;
151
151
  },
152
152
  originLabels () {
153
153
  return this.selfPropsObj._originLabels;
@@ -168,7 +168,7 @@
168
168
  getFormItem (formItem) {
169
169
  return {
170
170
  ...this.formatFormItem(formItem),
171
- onDftSearch: true,
171
+ inDftSearch: true,
172
172
  _line: true,
173
173
  _useColor: false,
174
174
  _optionKind: "dropdown"
@@ -296,7 +296,7 @@ export default {
296
296
  formatFormItem (formItem) {
297
297
  return {
298
298
  ...formItem,
299
- onSearch: true,
299
+ inSearch: true,
300
300
 
301
301
  _key: "fieldValue",
302
302
  __realKey__: formItem._key,
@@ -381,11 +381,12 @@ export default {
381
381
  rowItem.children = [];
382
382
  rowItem.isLeaf = true;
383
383
 
384
- // TODO:特殊处理-叶子节点上注入对应表头列们的name值
385
- const treeNodes = [...parentNodes, rowItem];
386
- treeForm.forEach((treeFormItem, treeFormIndex) => {
387
- rowItem[treeFormItem._key] = treeNodes[treeFormIndex].name;
388
- });
384
+ // // TODO:特殊处理-叶子节点上注入对应表头列们的name值
385
+ // const treeNodes = [...parentNodes, rowItem];
386
+ // treeForm.forEach((treeFormItem, treeFormIndex) => {
387
+ // rowItem[treeFormItem._key] = treeNodes[treeFormIndex].name;
388
+ // // this.$set(rowItem, treeFormItem._key, treeNodes[treeFormIndex].name)
389
+ // });
389
390
  }
390
391
  // 非最后一列(最后一列前的列,非根节点),需继续向下循环
391
392
  else {