From 0421f7c73e7ee56dbaf055febcd26a6156136108 Mon Sep 17 00:00:00 2001 From: roninTitans <46179445+Titans1001@users.noreply.github.com> Date: Tue, 18 Aug 2020 09:40:30 +0800 Subject: [PATCH] Update methods.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增footerMethod调用参数,footerMethod({ columns: visibleColumn, data: this.afterFullData, $table: this, $grid: this.$xegrid }) --- packages/table/src/methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table/src/methods.js b/packages/table/src/methods.js index 054b855ab..5bd950b51 100644 --- a/packages/table/src/methods.js +++ b/packages/table/src/methods.js @@ -3423,7 +3423,7 @@ const Methods = { updateFooter () { const { showFooter, visibleColumn, footerMethod } = this if (showFooter && footerMethod) { - this.footerData = visibleColumn.length ? footerMethod({ columns: visibleColumn, data: this.afterFullData }) : [] + this.footerData = visibleColumn.length ? footerMethod({ columns: visibleColumn, data: this.afterFullData, $table: this, $grid: this.$xegrid }) : [] } return this.$nextTick() },