forked from github/dataease
feat: 表格滚动
This commit is contained in:
parent
fd65e0ac05
commit
cd4ba8d830
@ -389,7 +389,7 @@ export default {
|
||||
this.myChart.store.set('scrollY', this.scrollTop)
|
||||
this.myChart.render()
|
||||
|
||||
if (senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
|
||||
if (senior.scroll && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
|
||||
const rowHeight = customAttr.size.tableItemHeight
|
||||
const headerHeight = customAttr.size.tableTitleHeight
|
||||
|
||||
|
@ -382,7 +382,7 @@ export default {
|
||||
})
|
||||
}, 0)
|
||||
|
||||
if (senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
|
||||
if (senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
|
||||
let rowHeight = customAttr.size.tableItemHeight
|
||||
if (rowHeight < 36) {
|
||||
rowHeight = 36
|
||||
|
Loading…
Reference in New Issue
Block a user