fix(pagination): 统一表格分页与密钥查询交互
统一各中心表格的分页样式与切换行为,保留密钥筛选条件和兑换码搜索分页。 验证:871 项单测、ESLint、Prettier 和本地浏览器验收通过。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import Table from '../../../ui/CenterActionTable';
|
||||
import { Table } from '@/components/ui';
|
||||
import { Modal, Button, Input, Tag, Typography, Select } from 'antd';
|
||||
import { Search } from 'lucide-react';
|
||||
import { copy, showError, showInfo, showSuccess } from '../../../../helpers';
|
||||
@@ -269,10 +269,6 @@ const ModelTestModal = ({
|
||||
pagination={{
|
||||
current: modelTablePage,
|
||||
pageSize: paginationSize,
|
||||
total: filteredModels.length,
|
||||
showSizeChanger: false,
|
||||
showTotal: (total) => t('共 {{total}} 条', { total }),
|
||||
size: 'small',
|
||||
onChange: (page, size) => {
|
||||
setModelTablePage(size !== paginationSize ? 1 : page);
|
||||
setPaginationSize(size);
|
||||
|
||||
@@ -160,7 +160,6 @@ const MissingModelsModal = ({ visible, onClose, onConfigureModel, t }) => {
|
||||
currentPage: currentPage,
|
||||
pageSize: paginationSize,
|
||||
total: filteredModels.length,
|
||||
showSizeChanger: false,
|
||||
onPageChange: (page) => setCurrentPage(page),
|
||||
onPageSizeChange: (size) => {
|
||||
setCurrentPage(1);
|
||||
|
||||
@@ -279,7 +279,6 @@ const UpstreamConflictModal = ({
|
||||
currentPage: currentPage,
|
||||
pageSize: paginationSize,
|
||||
total: filteredDataSource.length,
|
||||
showSizeChanger: false,
|
||||
onPageChange: (page) => setCurrentPage(page),
|
||||
onPageSizeChange: (size) => {
|
||||
setCurrentPage(1);
|
||||
|
||||
Reference in New Issue
Block a user