feat(item): add delete functionality

This commit introduces the ability to delete items. A new `ItemDeleteModal` component provides a confirmation step
before removal.

- Adds a 'Delete' option to the action menu in the items table.
- Refactors the `useItems` composable to ensure reactivity with `useLocalStorage` by creating new array references on
add/remove operations.
- Renames `AddModal` to `EditModal` to better align with its future role in both adding and editing items.
This commit is contained in:
xiaomai
2025-10-14 10:43:23 +08:00
parent e05c41eb07
commit 675704e4da
5 changed files with 109 additions and 30 deletions

View File

@@ -36,7 +36,7 @@ const items = computed<NavigationMenuItem[]>(() => [
{
label: "物品管理",
to: "/",
icon: "marketeq:home-alt-3",
icon: "marketeq:box",
},
{
label: "导出配置",