mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
fixed(table): fixed column right bug
This commit is contained in:
parent
3a54201c7c
commit
4f8b092241
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user