bri-components 1.2.64 → 1.2.65

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.2.64",
3
+ "version": "1.2.65",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -15,6 +15,7 @@
15
15
  >
16
16
  <!-- 左 -->
17
17
  <Checkbox
18
+ v-if="multiple"
18
19
  class="header-checkbox"
19
20
  v-model="groupItem.isSelectAll"
20
21
  @on-change="selectGroupAll(groupItem, $event)"
@@ -78,6 +79,7 @@
78
79
  >
79
80
  <!-- 复选框 -->
80
81
  <Checkbox
82
+ v-if="multiple"
81
83
  class="row-item-checkbox"
82
84
  :label="dataItem._id"
83
85
  @click.native.stop="clickRowCheckbox(dataItem)"
@@ -100,12 +102,12 @@
100
102
  <!-- 标题 -->
101
103
  <bri-tooltip
102
104
  class="title"
103
- :content="dataItem[propsObj.titleField]"
105
+ :content="dataItem[titleField]"
104
106
  placement="top"
105
107
  :transfer="true"
106
108
  >
107
109
  <div class="title-name">
108
- {{ dataItem[propsObj.titleField] }}
110
+ {{ dataItem[titleField] }}
109
111
  </div>
110
112
  </bri-tooltip>
111
113
 
@@ -251,6 +253,9 @@
251
253
  }
252
254
  },
253
255
 
256
+ multiple () {
257
+ return !!this.propsObj.multiple;
258
+ },
254
259
  groupField () {
255
260
  return this.propsObj.groupField;
256
261
  },
@@ -512,6 +517,7 @@
512
517
  flex-direction: row;
513
518
 
514
519
  &-label {
520
+ width: auto;
515
521
  font-weight: 400;
516
522
  color: #515A6E;
517
523