This commit is contained in:
超级老白兔
2025-09-13 10:38:36 +08:00
parent 55286bdfe5
commit 7d3b5dbbe9
2 changed files with 13 additions and 6 deletions

View File

@@ -9,6 +9,11 @@ import {
FileTextOutlined,
RobotOutlined,
UserAddOutlined,
AppstoreOutlined,
SoundOutlined,
TeamOutlined,
FolderOutlined,
BarChartOutlined,
} from "@ant-design/icons";
export interface FeatureCard {
@@ -24,6 +29,7 @@ export interface FeatureCard {
export interface TabItem {
key: string;
label: string;
icon?: React.ReactNode;
active?: boolean;
}
@@ -104,10 +110,10 @@ export const featureCards: FeatureCard[] = [
];
export const tabItems: TabItem[] = [
{ key: "all", label: "全部功能" },
{ key: "marketing", label: "营销推广" },
{ key: "customer", label: "客户管理" },
{ key: "ai", label: "AI智能" },
{ key: "content", label: "内容管理" },
{ key: "data", label: "数据分析" },
{ key: "all", label: "全部功能", icon: <AppstoreOutlined /> },
{ key: "marketing", label: "营销推广", icon: <SoundOutlined /> },
{ key: "customer", label: "客户管理", icon: <TeamOutlined /> },
{ key: "ai", label: "AI智能", icon: <RobotOutlined /> },
{ key: "content", label: "内容管理", icon: <FolderOutlined /> },
{ key: "data", label: "数据分析", icon: <BarChartOutlined /> },
];

View File

@@ -54,6 +54,7 @@ const PowerCenter: React.FC = () => {
activeTab === item.key ? styles.activeTab : styles.tab
}
onClick={() => handleTabClick(item.key)}
icon={item.icon}
>
{item.label}
</Button>