SelectOption.js
415 Bytes
/**
* 选项
*/
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,
});
}
}