onShowSizeChange Expected Function, got Array
lz520520 opened this issue · comments
使用STablePaginationConfig里的onShowSizeChange属性时,会提示如下报错
我是在官方例子里添加了这个属性,没有其他改动
https://www.surely.cool/doc/pagination#config
const pagination = ref<STablePaginationConfig>({
showQuickJumper: true,
showSizeChanger: true,
showTotal: total => `Total ${total} items`,
pageSize: 40,
onShowSizeChange: function (current: number, size: number) {
}
});
update to 4.1.12
ok,升级完不告警了