用户模块
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ export default function AppLayout() {
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setInterval(() => setTime(new Date().toLocaleString()), 1000);
|
||||
getMenu();
|
||||
//getMenu();
|
||||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user