x-extends / vxe-table

Vxe table 的表格组件
https://vxetable.cn
MIT License
7.61k stars 1.05k forks source link

表格reloadData之后footer不实时更新和渲染,下一次操作前才渲染 #981

Closed Titans1001 closed 4 years ago

Titans1001 commented 4 years ago

(必填)请填写问题描述或截图: 表格reloadData之后footer不实时更新和渲染,下一次操作前才渲染

同时,footerMethod回调参数需要新增第二个联系上下文参数 footerMethod({ columns: visibleColumn, data: this.afterFullData }, { $grid: this.$xegrid, $table: this })

updateFooter: function updateFooter() { var showFooter = this.showFooter var visibleColumn = this.visibleColumn var footerMethod = this.footerMethod

if (showFooter && footerMethod) {
  this.footerData = visibleColumn.length ? footerMethod({
    columns: visibleColumn,
    data: this.afterFullData
  }, {
    $grid: this.$xegrid,
    $table: this
  }) : []
}

return this.$nextTick()

},

xe-bot[bot] commented 4 years ago

机器人助手: