Blame view

src/CheckableTag/CheckableTag.js 445 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
  import template from "./CheckableTag.html";
  import style from "antd/lib/tag/style/index.css";
  
  class CheckableTag {
  
      useModules = ["esNgAntd"];
  
      template = template;
  
      props = {
          checked: Boolean,
          onChange: Function,
      }
  
      handleClick() {
          this.props.onChange({
              checked: !(this.props.checked==="true")
          })
      }
  
      constructor() {
          esNgAntd.createStyle("ant-tag", style);
      }
  }