描述问题:
input-table编辑表格组件我想根据条件批量删除数据,但是无效,我使用的是示例代码
{
"type": "page",
"body": [
{
"type": "form",
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "button",
"label": "删除行(指定条件表达式)",
"onEvent": {
"click": {
"actions": [
{
"componentId": "deleteItem-input-table",
"groupType": "component",
"actionType": "deleteItem",
"args": {
"condition": "${a == 'a3' || b == 'b4'}"
}
}
]
}
},
"id": "u:c15fea0657fd"
},
{
"type": "input-table",
"label": "表格表单",
"id": "deleteItem-input-table",
"name": "table",
"columns": [
{
"name": "a",
"label": "A",
"id": "u:a6ac4e675171"
},
{
"name": "b",
"label": "B",
"id": "u:d190b3740d33"
}
],
"addable": true,
"footerAddBtn": {
"label": "新增",
"icon": "fa fa-plus",
"hidden": true,
"id": "u:887f4096dcd4"
},
"strictMode": true,
"minLength": 0,
"needConfirm": false,
"showTableAddBtn": false
}
],
"data": {
"table": [
{
"id": 1,
"a": "a1",
"b": "b1"
},
{
"id": 2,
"a": "a2",
"b": "b2"
},
{
"id": 3,
"a": "a3",
"b": "b3"
},
{
"id": 4,
"a": "a4",
"b": "b4"
},
{
"id": 5,
"a": "a5",
"b": "b5"
}
]
},
"id": "u:1c62486e5bcb",
"feat": "Insert",
"dsType": "api",
"title": "月度工作量上报"
}
],
"id": "u:2171b7caea79",
"title": "月度工作量上报",
"asideResizor": false,
"pullRefresh": {
"disabled": true
}
}
截图或视频:
可以的话,尽可能提供截图或视频来补充描述你的问题...
如何复现(请务必完整填写下面内容):
- 你是如何使用 amis 的?
sdk
、npm
或其他
... - amis 版本是什么?请先在最新 beta 版本测试问题是否存在
- 粘贴有问题的完整
amis schema
代码:
code here...
- 操作步骤
请简单描述一下复现的操作步骤...
1条答案
按热度按时间mspsb9vt1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.