蚂蚁设计,只有一页时隐藏分页

问题描述

根据文档(first FAQ of Table documentation),我有下面的代码

<Table
    key={index + plant.name}
    columns={setColumns(plant.name,plant.id)}
    data={setData(plant)}
    pagination={{ defaultPageSize: 10,hideOnSinglePage: true }}
  />

但是它仍然出现分页

But it is still appearing the pagination:

我还尝试了以下所有组合:

  • pagination = {{false}}
  • pagination = {false}
  • pagination = {“ false”}

但是没有任何东西运行正常。请问你能帮帮我吗? 当前要测试的最大值数是4个进入表中。

我正在使用的配置:

  • MacOS版本10.15.6(19G2021)
  • 蚂蚁设计版本^ 4.5.4
  • 反应^ 16.13.1

非常感谢您的光临!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)