Skip to content

Conversation

@Titans1001
Copy link
Contributor

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

updateFooter () {
    const { showFooter, visibleColumn, footerMethod } = this
    if (showFooter && footerMethod) {
      this.footerData = visibleColumn.length ? footerMethod({ columns: visibleColumn, data: this.afterFullData },{$table: this, $grid: this.$xegrid}) : []
    }
    return this.$nextTick()
  },
@Titans1001
Copy link
Contributor Author

footerMethod需要第二个参数Context来联系上下文进行其他操作
添加footerMethod回调第二个参数

@Titans1001
Copy link
Contributor Author

The footerMethod requires a second argument, Context({$table: this, $grid: this.$xegrid}), to contact the Context for other operations
Add the footerMethod callback for the second parameter

@xuliangzhan
Copy link
Collaborator

所有事件及参数方法不允许存在多个参数,只允许接收一个参数 params

@Titans1001
Copy link
Contributor Author

Titans1001 commented Aug 16, 2020 via email

@xuliangzhan
Copy link
Collaborator

请修改为:footerMethod({ columns: visibleColumn, data: this.afterFullData, $table: this, $grid: this.$xegrid })

@Titans1001
Copy link
Contributor Author

Titans1001 commented Aug 16, 2020 via email

@xuliangzhan
Copy link
Collaborator

加个微信好友交流哈,我也喜欢折腾,一直干的前端开发,我微信号19993170150,逍遥子 发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: xuliangzhan <notifications@github.com> 发送时间: 2020年8月16日 12:21 收件人: x-extends/vxe-table <vxe-table@noreply.github.com> 抄送: roninTitans <2396757591@qq.com>, Author <author@noreply.github.com> 主题: 回复:[x-extends/vxe-table] 添加footerMethod回调第二个参数 (#998) 所有事件及参数方法不允许存在多个参数,只允许接收一个参数 params — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

看得出来你也是个很喜欢折腾的人👍

@Titans1001
Copy link
Contributor Author

请修改为:footerMethod({ columns: visibleColumn, data: this.afterFullData, $table: this, $grid: this.$xegrid })

已修改提交

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants