Blame view

src/RadioButton/RadioButton.js 370 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
  import template from "./RadioButton.html";
  
  class RadioButton {
      props = {
          value: String,
      };
  
      state = {
          checked: false,
      };
  
81f8a467   Imshann   调整组件前缀
12
13
      constructor(antdRadioGroup) {
          this.antdRadioGroup = antdRadioGroup.getContext()
3a3ecabe   Imshann   init
14
15
16
17
          $element.removeAttr("value");
      }
  
      handleClick(event) {
81f8a467   Imshann   调整组件前缀
18
          this.antdRadioGroup.setValue(event);
3a3ecabe   Imshann   init
19
20
      }
  }