* 创建复选框
(param)
| 230 | * 创建复选框 |
| 231 | */ |
| 232 | createCheckboxInput(param) { |
| 233 | const wrapper = document.createElement('div'); |
| 234 | wrapper.className = 'checkbox-wrapper'; |
| 235 | |
| 236 | const input = document.createElement('input'); |
| 237 | input.type = 'checkbox'; |
| 238 | input.id = `checkbox_${param.name}`; |
| 239 | |
| 240 | const label = document.createElement('label'); |
| 241 | label.htmlFor = input.id; |
| 242 | label.textContent = param.checkboxLabel || '启用'; |
| 243 | |
| 244 | wrapper.appendChild(input); |
| 245 | wrapper.appendChild(label); |
| 246 | |
| 247 | return wrapper; |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * 创建下拉选择框 |