NEZ-2066 fix:column 配置折叠时 增加显示 title
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
|||||||
? document.body.clientWidth
|
? document.body.clientWidth
|
||||||
: document.documentElement.clientWidth
|
: document.documentElement.clientWidth
|
||||||
let leftOffSetView = 0
|
let leftOffSetView = 0
|
||||||
let leftOffSet = this.detailList ? -80 : 10
|
let leftOffSet = this.detailList ? -60 : 20
|
||||||
let topOffSet = this.detailList ? 60 : 22
|
let topOffSet = this.detailList ? 60 : 22
|
||||||
let topOffSetView = 0
|
let topOffSetView = 0
|
||||||
let labelPosition = {
|
let labelPosition = {
|
||||||
@@ -122,9 +122,8 @@ export default {
|
|||||||
}
|
}
|
||||||
if (position.left > clientWidth / 2) {
|
if (position.left > clientWidth / 2) {
|
||||||
delete labelPosition.left
|
delete labelPosition.left
|
||||||
|
|
||||||
labelPosition.right =
|
labelPosition.right =
|
||||||
clientWidth - position.left - leftOffSetView - position.width * 3.3 + 'px'
|
clientWidth - position.left - leftOffSetView + 'px'
|
||||||
}
|
}
|
||||||
return labelPosition
|
return labelPosition
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -488,7 +488,7 @@
|
|||||||
<i class="nz-icon nz-icon-arrow-down" :class="item.show?'':'is-active'" @click="showColumns(index)"></i>
|
<i class="nz-icon nz-icon-arrow-down" :class="item.show?'':'is-active'" @click="showColumns(index)"></i>
|
||||||
<span v-show="!item.show" class="title-content-left">
|
<span v-show="!item.show" class="title-content-left">
|
||||||
<span>
|
<span>
|
||||||
{{item.value}}
|
{{item.title}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user