InputTable 组件 maxLength 配置, 在存在 perPage 配置,超出 maxLength 限制时, 添加按钮未隐藏
jinmingpang opened this issue · comments
Jeremy commented
描述问题:
InputTable 组件 maxLength 配置, 在存在 perPage 配置,超出 maxLength 限制时, 添加按钮未隐藏。在未配置 perPage 时,maxLength 表现正常。
截图或视频:
如何复现(请务必完整填写下面内容):
- 你是如何使用 amis 的?
npm
- amis 版本是什么?请先在最新 beta 版本测试问题是否存在
是
- 粘贴有问题的完整
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"
}
]
}
]
}
}
- 操作步骤
持续点击“添加”按钮