feat(ui): 条目管理增强 — 重命名/删除/重排序

每行右侧增加 ⋯ 按钮,弹出菜单支持重命名、删除、上移、下移。
- renameEntry / deleteEntry / moveEntry 三个 appState 方法
- rowActionMenu 弹出菜单 + renameDialog + confirmDeleteDialog
- 删除自动注销快捷键,所有操作触发配置保存
- 保留顶栏 Add/Remove 全局按钮不变
This commit is contained in:
2026-06-12 09:19:07 +08:00
parent c0dd3b9028
commit 352b1d24b8
7 changed files with 461 additions and 1 deletions
+38
View File
@@ -465,3 +465,41 @@ other = "关闭窗口时最小化到托盘"
[hint_minimize_to_tray]
other = "勾选后点击窗口关闭按钮将隐藏到系统托盘而非退出程序。"
# --- 条目操作(重命名 / 删除 / 重排序) ---
[btn_more]
other = "⋯"
[btn_delete]
other = "删除"
[dialog_row_actions_title]
other = "条目操作"
[action_rename]
other = "重命名..."
[action_delete]
other = "删除..."
[action_move_up]
other = "上移"
[action_move_down]
other = "下移"
[dialog_rename_title]
other = "重命名条目"
[label_entry_name]
other = "新名称"
[msg_empty_name]
other = "名称不能为空。"
[dialog_confirm_delete_title]
other = "确认删除"
[msg_confirm_delete]
other = "确定删除条目 \"%s\"?此操作不可撤销。"