import React from 'react'; import { Empty } from 'antd'; interface EmptyDataProps { /** 自定义文案 */ description?: string; /** 组件高度 */ height?: number | string; } const EmptyData: React.FC = ({ description = '暂无数据', height = 220 }) => { return (
{description}} />
); }; export default EmptyData;