inputTable组件表格:静态行高度和编辑态行高度不一致,导致静态和编辑态切换的时候表格出现抖动
Opened this issue · 0 comments
pangjiancongl commented
描述问题:
1、inputtable组件使用确认模式 needConfirm 设置为 true
2、表格默认高度为42.4
3、表格点击新增一行 高度变化为 41
4、点击操作列的确认按钮后,数据新增成功 高度变回42.4
5、因为上面切换的时候高度会变化,所以切换的时候会有抖动
截图或视频:
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的?
npm -
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
最新版本 -
粘贴有问题的完整
amis schema
代码:
{
"type": "page",
"body": {
"type": "form",
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
"name": "table",
"addable": true,
"copyable": true,
"editable": true,
"value": [
{
"a": "a1",
"b": "b1"
}
],
"columns": [
{
"name": "a",
"label": "A"
},
{
"name": "b",
"label": "B"
}
]
}
]
}
}
- 操作步骤
1、inputTable组件使用确认模式
2、点击新增