surely-vue / surely-table

Performant advanced table component

Home Page:https://www.surely.cool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onShowSizeChange Expected Function, got Array

lz520520 opened this issue · comments

使用STablePaginationConfig里的onShowSizeChange属性时,会提示如下报错
image

我是在官方例子里添加了这个属性,没有其他改动
https://www.surely.cool/doc/pagination#config

image

    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,升级完不告警了