index.jsx 628 Bytes
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import {
  HomeOutlined,
  SettingFilled,
  SmileOutlined,
  SyncOutlined,
  LoadingOutlined,
} from "@ant-design/icons";
import { Empty } from "antd";

export default ({ isLoading, isEmpty }) => (
  <div style={{ padding: "4px 0 0 0", textAlign: "center" }}>
    {isEmpty ? (
      <div className="center">
        <Empty description="没有匹配的数据" style={{ paddingTop: 60 }}></Empty>
      </div>
    ) : isLoading ? (
      <div className="center">
        <LoadingOutlined style={{ marginRight: 12 }}></LoadingOutlined>{" "}
        拼命加载中...
      </div>
    ) : (
      "加载完成"
    )}
  </div>
);