GITLAB

essa-platform / es-ng-antd

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • es-ng-antd
  • src
  • Option
  • Option.js
  • 3a3ecabe   init Browse Code »
    Imshann
    2022-01-06 15:29:18 +0800  
Option.js 375 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/**
 * 选项
 */
import template from "./Option.html";

class Option {
    props = { value: String };

    state = {
        label: null,
    };

    template = template;

    constructor(esSelect) {
        this.esSelect = esSelect.getContext();
        this.esSelect.addOption({
            value: this.props.value,
            label: $element.text(),
        });
    }
}