mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-08 07:32:11 +08:00
feat: 新增 RenderEmpty 组件
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
|
||||
const RenderEmpty = (props: { height?: string | number; message: string }) => {
|
||||
const { height = 200, message } = props;
|
||||
return (
|
||||
<>
|
||||
<div className="empty-panel" style={{ height }}>
|
||||
<div className="img" />
|
||||
<div className="text">{message}</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default RenderEmpty;
|
||||
Reference in New Issue
Block a user