用户模块

This commit is contained in:
mmc
2026-04-29 12:49:47 +08:00
parent e5360f49b6
commit 935b2eb46a
5 changed files with 273 additions and 220 deletions

View File

@@ -1,20 +1,16 @@
import React from 'react';
import { Empty } from 'antd';
import { FileTextOutlined } from '@ant-design/icons';
interface EmptyDataProps {
/** 自定义文案 */
description?: string;
/** 组件高度 */
height?: number | string;
/** 图标大小 */
iconSize?: number;
}
const EmptyData: React.FC<EmptyDataProps> = ({
description = '暂无数据',
height = 220,
iconSize = 56
height = 220
}) => {
return (
<div
@@ -28,8 +24,8 @@ const EmptyData: React.FC<EmptyDataProps> = ({
}}
>
<Empty
image={<FileTextOutlined style={{ fontSize: iconSize, color: '#c5c8ce' }} />}
description={<span style={{ color: '#999', fontSize: 16 }}>{description}</span>}
image={Empty.PRESENTED_IMAGE_SIMPLE}
description={<span style={{ color: '#999', fontSize: 14 }}>{description}</span>}
/>
</div>
);

View File

@@ -43,7 +43,7 @@ export default function AppLayout() {
useEffect(() => {
const timer = setInterval(() => setTime(new Date().toLocaleString()), 1000);
getMenu();
//getMenu();
return () => clearInterval(timer);
}, []);