fix:[FL-196][去掉用户管理页面的视图切换按钮]
- 移除视图切换按钮组件 - 保留根据设备类型自动切换视图的逻辑(浏览器用表格,手机用卡片) - 清理未使用的图标导入(AppstoreOutlined, TableOutlined) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
type CardProps,
|
||||
type MenuProps,
|
||||
} from "antd";
|
||||
import { AppstoreOutlined, MoreOutlined, TableOutlined } from "@ant-design/icons";
|
||||
import { MoreOutlined } from "@ant-design/icons";
|
||||
import type { ColumnsType } from "antd/es/table";
|
||||
import Link from "next/link";
|
||||
import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type ComponentType } from "react";
|
||||
@@ -831,23 +831,6 @@ export default function AdminUsersPage() {
|
||||
搜索
|
||||
</Button>
|
||||
</Form.Item>
|
||||
|
||||
{!isMobile && (
|
||||
<Form.Item style={{ marginLeft: 'auto' }}>
|
||||
<Button.Group>
|
||||
<Button
|
||||
icon={<TableOutlined />}
|
||||
type={viewMode === "table" ? "primary" : "default"}
|
||||
onClick={() => setViewMode("table")}
|
||||
/>
|
||||
<Button
|
||||
icon={<AppstoreOutlined />}
|
||||
type={viewMode === "card" ? "primary" : "default"}
|
||||
onClick={() => setViewMode("card")}
|
||||
/>
|
||||
</Button.Group>
|
||||
</Form.Item>
|
||||
)}
|
||||
</Form>
|
||||
|
||||
{viewMode === "table" ? (
|
||||
|
||||
Reference in New Issue
Block a user