-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
When using the showtotal function of pagination label to pass parameters, we encountered the problem of parameter limitation. We hope that we can release the limitation of the number of parameters. Because it is likely that more than one parameter is needed in the displayed content and only one parameter is allowed at present. Although these data can be introduced into the function by other methods, the method of parameter transmission has been provided, so we should allow multiple parameters to be passed
What does the proposed API look like?
pagination: {
total: 0,
num1: 1,
num3: 2,
showTotal: (total, num1, num3) => {
console.log(total, num1, num3)
return 共${ total }条数据,目前加载了${this.num2}条数据
},
// 目前num1会默认修改为rang数组,num3是undefind