fix:[FL-21][角色管理页面:卡片视图操作按钮缺少图标]

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:47 +08:00
parent 4445217815
commit 0f2dfe7e67
+26 -7
View File
@@ -7,6 +7,7 @@ import {
Button,
Card,
Col,
Dropdown,
Empty,
Form,
Input,
@@ -18,7 +19,9 @@ import {
Table,
Typography,
type CardProps,
type MenuProps,
} from "antd";
import { EditOutlined, MoreOutlined, DeleteOutlined } from "@ant-design/icons";
import type { ColumnsType } from "antd/es/table";
import type { CSSProperties, ComponentType } from "react";
@@ -332,13 +335,29 @@ export default function AdminRolesPage() {
}
extra={
canManage ? (
<Space size="small">
<Button size="small" onClick={() => startEdit(role)}>
</Button>
<Button danger size="small" onClick={() => removeRole(role)}>
</Button>
<Space size={4}>
<Button
type="text"
size="small"
icon={<EditOutlined />}
onClick={() => startEdit(role)}
/>
<Dropdown
menu={{
items: [
{
key: "delete",
label: "删除",
danger: true,
icon: <DeleteOutlined />,
onClick: () => removeRole(role),
},
],
}}
trigger={["click"]}
>
<Button type="text" size="small" icon={<MoreOutlined />} />
</Dropdown>
</Space>
) : null
}