|
@ -272,7 +272,21 @@ const builder = { |
|
|
* @param {Modifier} modifier |
|
|
* @param {Modifier} modifier |
|
|
* @returns {Component} |
|
|
* @returns {Component} |
|
|
*/ |
|
|
*/ |
|
|
select: function (attr = {}, modifier = null) { return builder.genTag("select", attr, modifier); }, |
|
|
select: function (attr = {}, modifier = null) { |
|
|
|
|
|
let comp = new InputComponent( |
|
|
|
|
|
document.createElement("select"), |
|
|
|
|
|
attr, |
|
|
|
|
|
modifier |
|
|
|
|
|
) |
|
|
|
|
|
.addStyleClass(`el-input`); |
|
|
|
|
|
|
|
|
|
|
|
if (this.components.previous) { |
|
|
|
|
|
comp._parentComponent = this.components.previous; |
|
|
|
|
|
this.components.previous = null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return comp; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* |
|
|
* |
|
|