fix(market): 1.修复模型超市 模糊搜索-模型名称异常的问题
feat(table): 2.新增三中心表格统一策略: - 覆盖 `/user-center/*`、`/org/*`、`/console/*`,包含系统设置。 - 自动识别最后一列的创建、查看、编辑、测试、详情、删除、设置、弹窗、API 回调等交互。 - 操作列统一显示“操作”,固定在右侧。 - 根据按钮和文字实际宽度测量,保持操作文字单行显示。 - 非操作宽表自动固定右侧末 4 / 3 / 2 / 1 列。 - 保留 Ant Design 官方横向滚动行为,不隐藏滚动条。
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
import { writeClipboardText } from '../../helpers/clipboard';
|
||||
import TableEmpty from '../../components/common/table/TableEmpty';
|
||||
import React, { useState, useRef, useEffect, useContext } from 'react';
|
||||
import Table from '../../components/ui/CenterActionTable';
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
@@ -38,7 +39,6 @@ import {
|
||||
Input,
|
||||
Spin,
|
||||
Switch,
|
||||
Table,
|
||||
Tag,
|
||||
Tooltip,
|
||||
} from 'antd';
|
||||
|
||||
@@ -23,7 +23,8 @@ import {
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import TableEmpty from '../../../components/common/table/TableEmpty';
|
||||
import React, { useMemo } from 'react';
|
||||
import { Card, Table, Tag } from 'antd';
|
||||
import Table from '../../../components/ui/CenterActionTable';
|
||||
import { Card, Tag } from 'antd';
|
||||
import { Clock } from 'lucide-react';
|
||||
import { Button, Pagination } from '@/components/ui';
|
||||
import { useTaskLogsData } from '../../../hooks/task-logs/useTaskLogsData';
|
||||
|
||||
@@ -23,16 +23,8 @@ import {
|
||||
RefreshCw as ActionRefreshCw,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
||||
import {
|
||||
Empty,
|
||||
Spin,
|
||||
Table,
|
||||
Button,
|
||||
Modal,
|
||||
Tooltip,
|
||||
Statistic,
|
||||
theme,
|
||||
} from 'antd';
|
||||
import Table from '../../components/ui/CenterActionTable';
|
||||
import { Empty, Spin, Button, Modal, Tooltip, Statistic, theme } from 'antd';
|
||||
import { Server, ChevronRight, Clock } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API, showError } from '../../helpers';
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
.usage-record-page {
|
||||
--ur-card-border: #e6e9ef;
|
||||
--ur-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.02);
|
||||
--ur-filter-bg: linear-gradient(90deg, #fffdf8 0%, #ffffff 55%);
|
||||
--ur-filter-bg: var(--surface-card);
|
||||
--ur-label: #6b7789;
|
||||
--ur-head-bg: #f8f9fc;
|
||||
--ur-head-text: #687589;
|
||||
@@ -29,13 +29,9 @@
|
||||
html.dark .usage-record-page {
|
||||
--ur-card-border: var(--border-subtle);
|
||||
--ur-card-shadow: none;
|
||||
--ur-filter-bg: linear-gradient(
|
||||
90deg,
|
||||
color-mix(in srgb, var(--ui-color-primary) 6%, var(--surface-card)) 0%,
|
||||
var(--surface-card) 55%
|
||||
);
|
||||
--ur-filter-bg: var(--surface-card);
|
||||
--ur-label: var(--text-secondary);
|
||||
--ur-head-bg: var(--ui-color-fill-0);
|
||||
--ur-head-bg: color-mix(in srgb, var(--text-primary) 4%, var(--surface-card));
|
||||
--ur-head-text: var(--text-secondary);
|
||||
--ur-row-split: var(--border-subtle);
|
||||
--ur-time-date: var(--text-secondary);
|
||||
|
||||
Reference in New Issue
Block a user