Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e14cb97232 | |||
| 2c7b23ac77 |
@@ -115,7 +115,7 @@
|
|||||||
"label": "新增记录",
|
"label": "新增记录",
|
||||||
"description": "添加待办事项。",
|
"description": "添加待办事项。",
|
||||||
"replaces": "create",
|
"replaces": "create",
|
||||||
"placements": [],
|
"placements": ["toolbar"],
|
||||||
"executionProfile": "sync",
|
"executionProfile": "sync",
|
||||||
"interaction": "form",
|
"interaction": "form",
|
||||||
"bind": {
|
"bind": {
|
||||||
@@ -172,6 +172,51 @@
|
|||||||
"{{due-at}}"
|
"{{due-at}}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "todo-delete",
|
||||||
|
"label": "删除记录",
|
||||||
|
"description": "删除待办事项。",
|
||||||
|
"replaces": "delete",
|
||||||
|
"placements": ["row"],
|
||||||
|
"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}}"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user