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
  • SelectOption
  • SelectOption.js
  • 81f8a467   调整组件前缀 Browse Code »
    Imshann
    2022-01-20 16:27:25 +0800  
SelectOption.js 415 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 23
/**
 * 选项
 */
import template from "./SelectOption.html";

class SelectOption {
    template = template;

    props = { value: String };

    state = {
        label: null,
    };

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