UNPKG

@dooboostore/dom-render

Version:
52 lines 1.81 kB
import { ComponentBase } from '../ComponentBase'; import { DomRender } from '../../DomRender'; import { RawSet } from '../../rawsets/RawSet'; export var Select; (function (Select_1) { Select_1.selector = 'dr-select'; // @Component({ // template: '<option class="${`${@this@.getAttribute(\'class\')} select-option-container`}$">#innerHTML#</option>', // styles: '', // selector: `${selector}.Option` // }) class Option extends ComponentBase { constructor() { super({ onlyParentType: [Select] }); } } Select_1.Option = Option; // @Component({ // template: '', // styles: '', // selector: `${selector}` // }) class Select extends ComponentBase { onCreateRender(...param) { } onDestroyRender(...metaData) { } } Select_1.Select = Select; })(Select || (Select = {})); // 아직 사용한적없으니 사용할때 만드세유~ export default { selectOption: (config) => { return RawSet.createComponentTargetElement({ name: `${Select.selector}-other-wise`, template: '<option class="${`${@this@.getAttribute(\'class\')} select-option-container`}$">#innerHTML#</option>', objFactory: (e, o, r2, counstructorParam) => { return DomRender.run({ rootObject: new Select.Option(), config: config }); } }); }, select: (config) => { return RawSet.createComponentTargetElement({ name: `${Select.selector}`, template: '', objFactory: (e, o, r2, counstructorParam) => { return DomRender.run({ rootObject: new Select.Select(...counstructorParam), config: config }); } }); }, }; //# sourceMappingURL=Select.js.map