MCPcopy
hub / github.com/ocsjs/ocsjs / createResult

Function createResult

packages/scripts/src/projects/common.ts:1193–1206  ·  view source on GitHub ↗
(result: SimplifyWorkResult | undefined)

Source from the content-addressed store, hash-verified

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);

Callers 1

methodsFunction · 0.85

Calls 1

Tested by

no test coverage detected