* 创建下拉选择框
(param)
| 251 | * 创建下拉选择框 |
| 252 | */ |
| 253 | createSelectInput(param) { |
| 254 | const select = document.createElement('select'); |
| 255 | |
| 256 | if (param.options) { |
| 257 | param.options.forEach(option => { |
| 258 | const optionElement = document.createElement('option'); |
| 259 | optionElement.value = option.value; |
| 260 | optionElement.textContent = option.label; |
| 261 | select.appendChild(optionElement); |
| 262 | }); |
| 263 | } |
| 264 | |
| 265 | return select; |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * 创建文本域 |