SelectOption.js
407 Bytes
/**
* 选项
*/
import template from "./SelectOption.html";
class SelectOption {
template = template;
props = { value: String };
state = {
label: null,
};
constructor(esSelect) {
this.esSelect = esSelect.getContext();
this.esSelect.addOption({
value: this.props.value,
label: null,
element: $element,
});
}
}