Blame view

src/Row/Row.js 544 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
26
  import template from "./Row.html";
  import style from "antd/lib/grid/style/index.css";
  
  class Row {
  
      useModules = ["esNgAntd"];
  
      template = template;
  
      props = {
          gutter: String,
      };
  
      state = {
          gutterHalf: null,
      };
  
      constructor() {
          esNgAntd.createStyle("ant-grid", style);
          $element[0].removeAttribute("ng-style");
          $element[0].removeAttribute("ng-transclude");
          if (this.props.gutter) {
              this.state.gutterHalf = parseInt(this.props.gutter) / 2;
          }
      }
  }