(result: SimplifyWorkResult | undefined)
| 1191 | |
| 1192 | /** 渲染结果列表 */ |
| 1193 | const createResult = (result: SimplifyWorkResult | undefined) => { |
| 1194 | if (result) { |
| 1195 | return h('div', [ |
| 1196 | createSearchResultAlertElement(result), |
| 1197 | h(SearchInfosElement, { |
| 1198 | infos: result.searchInfos, |
| 1199 | question: result.question, |
| 1200 | type: result.type |
| 1201 | }) |
| 1202 | ]); |
| 1203 | } else { |
| 1204 | return h('div', 'undefined'); |
| 1205 | } |
| 1206 | }; |
| 1207 | |
| 1208 | render(); |
| 1209 | this.onConfigChange('type', render); |
no test coverage detected