Blame view

src/Card/Card.js 527 Bytes
3a3ecabe   Imshann   init
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 template from "./Card.html";
  import style from "antd/lib/card/style/index.css";
  
  class Card {
      props = {
          title: String,
          extra: String,
          bordered: Boolean,
      };
  
      state = {
          extra: this.props.extra,
      };
  
      useModules = ["esNgAntd"];
  
      template = template;
  
      constructor() {
          $element[0].removeAttribute("title");
          $element[0].removeAttribute("extra");
          $element[0].removeAttribute("ng-class");
          esNgAntd.createStyle("ant-card", style);
      }
  }