diff --git a/assets/actions.json b/assets/actions.json index 6c02d9b..035b2d8 100644 --- a/assets/actions.json +++ b/assets/actions.json @@ -173,6 +173,47 @@ ] } }, + { + "id": "todo-done-row", + "label": "完成本行", + "description": "将当前待办标记为已完成。", + "placements": [ + "row" + ], + "executionProfile": "sync", + "interaction": "direct", + "bind": { + "tables": [ + "todos" + ] + }, + "inputSchema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "number", + "title": "编号", + "readOnly": true + } + } + }, + "hostEffects": { + "onSuccess": [ + "reloadTable" + ] + }, + "entrypoint": { + "type": "cli", + "command": "todo", + "args": [ + "done", + "{{id}}" + ] + } + }, { "id": "todo-delete", "label": "删除记录",