(spec: any)
| 300 | }; |
| 301 | |
| 302 | dispatch_ctrl_message(spec: any) { |
| 303 | // 恢复原本可点击的按钮 |
| 304 | this.element.find('button:not([data-pywebio-disabled])').prop("disabled", false); |
| 305 | // 移除上传进度条 |
| 306 | this.element.find('.progress').remove(); |
| 307 | |
| 308 | if (!(spec.target_name in this.name2input)) { |
| 309 | return console.error('Can\'t find input[name=%s] element in curr form!', spec.target_name); |
| 310 | } |
| 311 | |
| 312 | this.name2input[spec.target_name].update_input(spec); |
| 313 | }; |
| 314 | |
| 315 | // 在表单加入DOM树后,触发输入项的on_add_to_dom回调 |
| 316 | after_add_to_dom() { |
no test coverage detected