bri-components 1.4.82 → 1.4.83

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.82",
3
+ "version": "1.4.83",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -53,7 +53,7 @@
53
53
  :isLoading="isLoading"
54
54
  :columns="showColumns"
55
55
  :data="isLoading ? [] : showListData"
56
- :propsObj="tablePropsObj"
56
+ :propsObj="tableInModalPropsObj"
57
57
  @changeSelect="changeSelect"
58
58
  @selectAll="changeSelect"
59
59
  ></bri-table>
@@ -136,6 +136,7 @@ export default {
136
136
  btnType: "errorText",
137
137
  icon: "md-trash",
138
138
  size: "small",
139
+ color: "#E83636",
139
140
  disabled: false,
140
141
  event: "clickDelete"
141
142
  }
@@ -450,22 +451,17 @@ export default {
450
451
  .map(rowItem => rowItem._id)
451
452
  .filter(id => !!id);
452
453
  },
453
- // 渲染过的行
454
- renderedListData () {
455
- return this.allListData.filter(rowItem => {
456
- this.dealSearchShow(rowItem);
457
-
458
- return rowItem.__isRendered__;
459
- });
460
- },
461
454
  // 全部数据 或 筛选时符合条件的数据
462
455
  showListData () {
463
- return this.renderedListData
464
- .filter(rowItem => !!rowItem[this.controlShowKey])
456
+ return this.allListData
457
+ .filter(rowItem => {
458
+ this.dealSearchShow(rowItem);
459
+ return rowItem.__isRendered__ && !!rowItem[this.controlShowKey];
460
+ })
465
461
  .map((rowItem, rowIndex) => {
466
462
  rowItem.__index__ = rowIndex + 1;
467
463
  return rowItem;
468
- });
464
+ });
469
465
  },
470
466
  // 全部数据 或 筛选时符合条件的数据 -总数
471
467
  selfTotal () {
@@ -487,11 +483,11 @@ export default {
487
483
  ? initDftVal
488
484
  : dftVal
489
485
  : dftInRowVal
490
- // [column._key]: this.$isEmptyData(dftInRowVal)
491
- // ? this.$isEmptyData(dftVal)
492
- // ? initDftVal
493
- // : dftVal
494
- // : dftInRowVal
486
+ // [column._key]: this.$isEmptyData(dftInRowVal)
487
+ // ? this.$isEmptyData(dftVal)
488
+ // ? initDftVal
489
+ // : dftVal
490
+ // : dftInRowVal
495
491
  });
496
492
  }, {});
497
493
  },
@@ -1179,7 +1175,7 @@ export default {
1179
1175
  e.stopPropagation();
1180
1176
  }
1181
1177
  }
1182
- });
1178
+ });
1183
1179
  },
1184
1180
  topSearchRender (h) {
1185
1181
  return this.searchFormList.length
@@ -1465,7 +1461,7 @@ export default {
1465
1461
  getRowDelBtnCanEdit (row, rowIndex) {
1466
1462
  return row.__readonly__ !== true && // 不能为只读数据
1467
1463
  (this.disabledDeleteDftRow ? row.__isDefault__ !== true : true) && // 默认数据可删除
1468
- (this.disabledDeleteOldRow ? row.__old__ !== true : true); // 老数据可删除
1464
+ (this.disabledDeleteOldRow ? row.__old__ !== true : true); // 老数据可删除
1469
1465
  },
1470
1466
  // 行内容是否可编辑
1471
1467
  getRowCanEdit (row, rowIndex) {