Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jinmingpang opened this issue Sep 24, 2024 · 0 comments

Comments

@jinmingpang
Copy link
Contributor

描述问题:

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. 操作步骤

持续点击“添加”按钮

@hsm-lv hsm-lv closed this as completed in cd21ac6 Oct 8, 2024
hsm-lv added a commit that referenced this issue Oct 8, 2024
fix: #10951 修复 InputTable 在 配置 perPage 开启分页场景时,底部新增按钮展示异常
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant