Blame view

src/Empty/Empty.js 500 Bytes
3a3ecabe   Imshann   init
1
  import template from "./Empty.html";
1b6f912f   Imshann   优化
2
  import style from "antd/lib/empty/style/index.css";
3a3ecabe   Imshann   init
3
4
  
  class Empty {
1b6f912f   Imshann   优化
5
6
7
8
9
10
11
12
13
14
      props = {
          image: String,
      };
  
      state = {
          image: this.props.image || "presented_image_default",
      };
  
      useModules = ["esNgAntd"];
  
3a3ecabe   Imshann   init
15
      template = template;
1b6f912f   Imshann   优化
16
17
18
19
20
21
22
23
24
25
  
      constructor() {
          esNgAntd.createStyle("ant-empty", style);
      }
  }
  
  export default {
      PRESENTED_IMAGE_DEFAULT: "presented_image_default",
      PRESENTED_IMAGE_SIMPLE: "presented_image_simple",
  };