diff --git a/assets/actions.json b/assets/actions.json index 4e8d550..e9f9df7 100644 --- a/assets/actions.json +++ b/assets/actions.json @@ -172,6 +172,51 @@ "{{due-at}}" ] } + }, + { + "id": "todo-delete", + "label": "删除记录", + "description": "删除待办事项。", + "replaces": "delete", + "placements": [], + "executionProfile": "sync", + "interaction": "confirm", + "confirmation": { + "message": "确定删除该记录?关联数据将一并清理。" + }, + "bind": { + "tables": [ + "todos" + ] + }, + "hostEffects": { + "onSuccess": [ + "reloadTable", + "clearSelection" + ] + }, + "inputSchema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "number", + "title": "编号", + "readOnly": true + } + } + }, + "entrypoint": { + "type": "cli", + "command": "todo", + "args": [ + "delete", + "ids", + "{{id}}" + ] + } } ] } \ No newline at end of file