[fix]:[FL-27][菜单管理页面:添加缺失的卡片视图编辑按钮图标]

- 在 web/src/app/admin/menus/page.tsx 中添加 EditOutlined 图标导入
- 在卡片 extra 区域添加编辑按钮,与用户管理页面保持一致
- 使用 Space 容器包裹编辑按钮和更多操作按钮
- 更多操作按钮添加 type="text" 属性

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-19 15:52:58 +08:00
parent e58f05dc49
commit 7206f7965b
+13 -4
View File
@@ -26,7 +26,7 @@ import {
type MenuProps,
type TableColumnsType,
} from "antd";
import { MoreOutlined } from "@ant-design/icons";
import { MoreOutlined, EditOutlined, DeleteOutlined } from "@ant-design/icons";
import type { CSSProperties, ComponentType } from "react";
import { useAuth } from "@/components/auth-provider";
@@ -504,9 +504,18 @@ export default function AdminMenusPage() {
}
extra={
canManage ? (
<Dropdown menu={{ items: moreMenuItems }} trigger={["click"]}>
<Button size="small" disabled={menuBusy} icon={<MoreOutlined />} />
</Dropdown>
<Space size={4}>
<Button
type="text"
size="small"
disabled={menuBusy}
icon={<EditOutlined />}
onClick={() => startEdit(menuItem)}
/>
<Dropdown menu={{ items: moreMenuItems }} trigger={["click"]}>
<Button type="text" size="small" disabled={menuBusy} icon={<MoreOutlined />} />
</Dropdown>
</Space>
) : null
}
>