Blame view

src/Card/Card.js 549 Bytes
3a3ecabe   Imshann   init
1
2
3
4
  import template from "./Card.html";
  import style from "antd/lib/card/style/index.css";
  
  class Card {
3a3ecabe   Imshann   init
5
6
7
  
      useModules = ["esNgAntd"];
  
ddd373d9   Imshann   优化Card组件
8
      constructor($element) {
3a3ecabe   Imshann   init
9
10
11
          $element[0].removeAttribute("title");
          $element[0].removeAttribute("extra");
          $element[0].removeAttribute("ng-class");
ddd373d9   Imshann   优化Card组件
12
          this.self = $scope;
3a3ecabe   Imshann   init
13
14
          esNgAntd.createStyle("ant-card", style);
      }
ddd373d9   Imshann   优化Card组件
15
16
17
18
  
      render() {
          return template;
      }
3a3ecabe   Imshann   init
19
  }
ddd373d9   Imshann   优化Card组件
20
21
22
23
24
25
  
  Card.propTypes = {
      title: PropTypes.string,
      extra: PropTypes.string,
      bordered: PropTypes.boolean,
  };