imeik-bizui 1.7.8 → 1.8.0

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.
@@ -18,10 +18,13 @@
18
18
  </div>
19
19
  </div>
20
20
  </div>
21
- <el-popover v-else-if="plantText" trigger="hover">
22
- <div class="departmentPopover">{{ plantText }}</div>
23
- <span slot="reference" class="viewText">{{ plantText }}</span>
24
- </el-popover>
21
+ <template v-else-if="plantText">
22
+ <span v-if="showAll" class="viewText showAll">{{ plantText }}</span>
23
+ <el-popover v-else trigger="hover">
24
+ <div class="departmentPopover">{{ plantText }}</div>
25
+ <span slot="reference" class="viewText">{{ plantText }}</span>
26
+ </el-popover>
27
+ </template>
25
28
  <span v-else>-</span>
26
29
  </template>
27
30
 
@@ -92,6 +95,11 @@ export default {
92
95
  type: Boolean,
93
96
  default: false
94
97
  },
98
+ // 查看的时候是否展示全部
99
+ showAll: {
100
+ type: Boolean,
101
+ default: true
102
+ },
95
103
  // 是否仅展示主公司
96
104
  onlyMainCompany: {
97
105
  type: Boolean,
@@ -281,6 +289,12 @@ export default {
281
289
  white-space: nowrap;
282
290
  text-overflow: ellipsis;
283
291
  cursor: pointer;
292
+
293
+ &.showAll {
294
+ text-overflow: unset;
295
+ overflow: visible;
296
+ white-space: break-spaces;
297
+ }
284
298
  }
285
299
 
286
300
  .labelItem {
@@ -34,7 +34,11 @@ export default {
34
34
  return this.attrs.showDiff || false
35
35
  },
36
36
  diffValue() {
37
- return this.attrs.diffValue
37
+ if (this.isObjectValue) {
38
+ return this.getObjectValue(this.attrs.diffValue)
39
+ } else {
40
+ return this.attrs.diffValue
41
+ }
38
42
  },
39
43
  /**
40
44
  * 标签视图类型