baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。

Home Page:https://baidu.github.io/amis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InputTable 组件 maxLength 配置, 在存在 perPage 配置,超出 maxLength 限制时, 添加按钮未隐藏

jinmingpang opened this issue · comments

描述问题:

InputTable 组件 maxLength 配置, 在存在 perPage 配置,超出 maxLength 限制时, 添加按钮未隐藏。在未配置 perPage 时,maxLength 表现正常。

截图或视频:

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?

npm

  1. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

  1. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": {
    "type": "form",
    "data": {
      "table": [
        {
          "a": "a1",
          "b": "b1"
        },
        {
          "a": "a2",
          "b": "b2"
        },
        {
          "a": "a3",
          "b": "b3"
        }
      ]
    },
    "api": "/amis/api/mock2/form/saveForm",
    "body": [
      {
        "type": "input-table",
        "name": "table",
        "label": "Table",
        "minLength": 1,
        "maxLength": 5,
        "needConfirm": false,
        "addable": true,
        "removable": true,
        "perPage": 3,
        "columns": [
          {
            "label": "A",
            "name": "a",
            "quickEdit": false
          },
          {
            "label": "B",
            "name": "b"
          }
        ]
      }
    ]
  }
}
  1. 操作步骤

持续点击“添加”按钮