bri-components 1.5.4 → 1.5.6
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.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"author": "dengshanghui",
|
|
5
5
|
"description": "a component lib for vue project",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ali-oss": "^6.13.1",
|
|
34
34
|
"axios": "^0.23.0",
|
|
35
|
-
"bri-datas": "^1.3.
|
|
35
|
+
"bri-datas": "^1.3.10",
|
|
36
36
|
"jshint": "^2.12.0",
|
|
37
37
|
"jsonlint": "^1.6.3",
|
|
38
38
|
"minio": "7.1.0",
|
|
@@ -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
|
-
|
|
330
|
+
operations,
|
|
323
331
|
undefined,
|
|
324
332
|
this.isShowEditIcon ? [] : ["canEdit"]
|
|
325
333
|
)
|
|
326
334
|
: this.$categoryMapToMap(
|
|
327
|
-
|
|
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 || "#
|
|
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
|
// 本身的初始化
|