Blame view

src/InputSearch/InputSearch.js 488 Bytes
3a3ecabe   Imshann   init
1
  import template from "./InputSearch.html";
1b6f912f   Imshann   优化
2
  import style from "antd/lib/input/style/index.css";
3a3ecabe   Imshann   init
3
4
  
  class InputSearch {
1b6f912f   Imshann   优化
5
6
7
  
      useModules = ["$compile", "esNgAntd"];
  
3a3ecabe   Imshann   init
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      props = {
          value: String,
          placeholder: String,
          onSearch: Function
      };
  
      state = {
          value: null,
      }
  
      template = template;
  
      handleChange(event) {
          this.state.value = event.target.value;
      }
1b6f912f   Imshann   优化
23
24
25
26
  
      constructor() {
          esNgAntd.createStyle("ant-input", style);
      }
3a3ecabe   Imshann   init
27
  }