feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -33,6 +33,7 @@ import { IconChevronDown, IconChevronUp } from '@/components/ui/icons';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useIsMobile } from '../../../hooks/common/useIsMobile';
|
||||
import { useMinimumLoadingTime } from '../../../hooks/common/useMinimumLoadingTime';
|
||||
import { useConsolePage } from '../../console/ConsoleContext';
|
||||
|
||||
/**
|
||||
* CardTable 响应式表格组件
|
||||
@@ -48,6 +49,7 @@ const CardTable = ({
|
||||
hidePagination = false,
|
||||
...tableProps
|
||||
}) => {
|
||||
const consolePage = useConsolePage();
|
||||
const isMobile = useIsMobile();
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -103,7 +105,7 @@ const CardTable = ({
|
||||
selectableKeys.length > 0 &&
|
||||
selectableKeys.every((key) => selectedKeys.includes(key));
|
||||
|
||||
if (!isMobile) {
|
||||
if (!isMobile || consolePage) {
|
||||
const finalTableProps = hidePagination
|
||||
? { ...tableProps, pagination: false }
|
||||
: tableProps;
|
||||
|
||||
Reference in New Issue
Block a user