mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 00:49:45 +08:00
增加缺省页组件
This commit is contained in:
4
src/compenents/empty/index.module.scss
Normal file
4
src/compenents/empty/index.module.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
.img-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
12
src/compenents/empty/index.tsx
Normal file
12
src/compenents/empty/index.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import styles from "./index.module.scss";
|
||||
import React from "react";
|
||||
import { Image } from "antd";
|
||||
import empty from "../../assets/images/commen/empty.png";
|
||||
|
||||
export const Empty: React.FC = () => {
|
||||
return (
|
||||
<div className={styles["img-box"]}>
|
||||
<Image src={empty} width={400} height={400} preview={false} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -4,3 +4,4 @@ export * from "./no-header";
|
||||
export * from "./header";
|
||||
export * from "./change-password";
|
||||
export * from "./user-info"
|
||||
export * from "./empty"
|
||||
|
||||
Reference in New Issue
Block a user