fixed(table): fixed column right bug

This commit is contained in:
JiwenBai 2019-12-31 13:39:45 +08:00
parent 3a54201c7c
commit 4f8b092241
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export default {
if (render) {
return render(h, params, index)
} else {
if (title) {
if (title && title.length >= 0) {
params.row = {}
params.row[keyName] = title
}

View File

@ -270,7 +270,7 @@ export default {
},
fixedRightColumndClass () {
return {
'n-advance-table__fixed--active': this.horizontalScrollLeft < 0
'n-advance-table__fixed--active': this.horizontalScrollLeft < this.tbodyWrapperWidth
}
},
tbodyWrapperStl () {
@ -751,7 +751,7 @@ export default {
this.fixedLeftTBodyEl =
this.$refs.fixedLeftTable && this.$refs.fixedLeftTable.$refs.tbody.$el
this.fixedRightTBodyEl =
this.$refs.fixedLeftTable &&
this.$refs.fixedRightTable &&
this.$refs.fixedRightTable.$refs.tbody.$el
this.wrapperWidth = this.$refs.tableWrapper.offsetWidth
this.tbodyWrapperWidth = this.$refs.tbodyWrapper.clientWidth