bri-components 1.5.4 → 1.5.5

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.5.4",
3
+ "version": "1.5.5",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -317,14 +317,22 @@
317
317
  };
318
318
  },
319
319
  operationMap () {
320
+ let operations = { ...this.allOperationMap };
321
+ // comp_web图标前缀与其他不同,需特殊处理
322
+ if (this.propsObj._pageType === "comp") {
323
+ operations.canDelete.customIcon = "bri-shanchu";
324
+ operations.canEdit.customIcon = "bri-bianji";
325
+ operations.canDownload.customIcon = "bri-xiazai";
326
+ operations.canPreview.customIcon = "bri-keshi";
327
+ }
320
328
  return this.canEdit
321
329
  ? this.$categoryMapToMap(
322
- this.allOperationMap,
330
+ operations,
323
331
  undefined,
324
332
  this.isShowEditIcon ? [] : ["canEdit"]
325
333
  )
326
334
  : this.$categoryMapToMap(
327
- this.allOperationMap,
335
+ operations,
328
336
  undefined,
329
337
  ["canDelete", "canEdit"]
330
338
  );
@@ -25,7 +25,7 @@ export default {
25
25
  _openText: this.propsObj._openText || "是", // 此行放在 ...this.propsObj的下面目的是,处理_openText为空字符串的情况
26
26
  _closeText: this.propsObj._closeText || "否",
27
27
  _openColor: this.propsObj._openColor || this.controlThemeColor, // 打开时的背景色
28
- _closeColor: this.propsObj._closeColor || "#cccccc" // 关闭时的背景色
28
+ _closeColor: this.propsObj._closeColor || "#aaaaaa" // 关闭时的背景色
29
29
  };
30
30
  },
31
31
  openText () {
@@ -192,7 +192,7 @@ export default {
192
192
  methods: {
193
193
  selfInit () {
194
194
  this.isUseDescSort = this.selfPropsObj._isUseDescSort;
195
- this.pagePropsObj.pagesize = this.selfPropsObj._pagesize;
195
+ this.pagePropsObj.pagesize = this.selfPropsObj._pagesize || this.selfBasePropsObj._pagesize;
196
196
  this.initRowspan();
197
197
  },
198
198
  // 本身的初始化