bri-components 1.5.3 → 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.3",
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
  );
@@ -9,8 +9,8 @@
9
9
  :disabled="disabled"
10
10
  :loading="selfPropsObj.loading"
11
11
  :size="selfPropsObj._size"
12
- :true-color="propsObj._openColor"
13
- :false-color="propsObj._closeColor"
12
+ :true-color="selfPropsObj._openColor"
13
+ :false-color="selfPropsObj._closeColor"
14
14
  :true-value="selfPropsObj._openValue"
15
15
  :false-value="selfPropsObj._closeValue"
16
16
  >
@@ -24,8 +24,8 @@ export default {
24
24
 
25
25
  _openText: this.propsObj._openText || "是", // 此行放在 ...this.propsObj的下面目的是,处理_openText为空字符串的情况
26
26
  _closeText: this.propsObj._closeText || "否",
27
- _openColor: this.propsObj._openColor || "#37C45E", // 打开时的背景色
28
- _closeColor: this.propsObj._closeColor || "#E83636" // 关闭时的背景色
27
+ _openColor: this.propsObj._openColor || this.controlThemeColor, // 打开时的背景色
28
+ _closeColor: this.propsObj._closeColor || "#aaaaaa" // 关闭时的背景色
29
29
  };
30
30
  },
31
31
  openText () {
@@ -15,7 +15,7 @@ export default {
15
15
  pagePropsObj: {
16
16
  page: 1,
17
17
  pagesize: 10,
18
- pagesizeOpts: [10, 20, 30, 50]
18
+ pagesizeOpts: [10, 20, 30, 50, 80, 100]
19
19
  }
20
20
  };
21
21
  },
@@ -23,7 +23,8 @@ export default {
23
23
  selfBasePropsObj () {
24
24
  return {
25
25
  _isUseDescSort: false, // 是否使用使用倒序
26
- _mergeRowColKeys: [] // 合并行的列
26
+ _mergeRowColKeys: [], // 合并行的列
27
+ _pagesize: 10 // 列表的分页条数
27
28
  };
28
29
  },
29
30
  // 是不是合并行表格
@@ -191,6 +192,7 @@ export default {
191
192
  methods: {
192
193
  selfInit () {
193
194
  this.isUseDescSort = this.selfPropsObj._isUseDescSort;
195
+ this.pagePropsObj.pagesize = this.selfPropsObj._pagesize || this.selfBasePropsObj._pagesize;
194
196
  this.initRowspan();
195
197
  },
196
198
  // 本身的初始化
@@ -365,7 +365,10 @@
365
365
  name: "briGantt",
366
366
  components: {},
367
367
  props: {
368
- simpleDataColor: String,
368
+ simpleDataColor: {
369
+ type: String,
370
+ default: "#3DB8C5"
371
+ },
369
372
 
370
373
  tasks: Array,
371
374
  options: {
@@ -5,7 +5,6 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
-
9
8
  export default {
10
9
  name: "BriSvg",
11
10
  components: {},
package/src/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file
Binary file