amis
amis copied to clipboard
CRUD的动态列的colums的button包含confirmText时,按钮不生效.
描述问题:
在为CRUD添加一个删除按钮的时候发现: CRUD的动态列的colums的button包含confirmText时,按钮不生效,不会发起对应请求操作.
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的?
sdk -
amis 版本是什么?请先在最新 beta 版本测试问题是否存在 1.5.3
-
粘贴有问题的完整
amis schema代码:
crud:
{
"type": "crud",
"api": "..."
}
api返回的数据:
{
"columns": [
{
"label": "id",
"name": "id"
}
{
"buttons": [
{
"actionType": "ajax",
"api": "DELETE:/delete?id=$id",
"confirmText": "确认要删除?",
"label": "删除",
"level": "danger",
"type": "button"
}
],
"label": "操作",
"type": "operation"
}
],
"items": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
}
]
}
- 操作步骤
删掉
buttons里的confirmText就能正常发起请求了
我也遇到了同样的问题,从控制台看到了如下信息:
