@empathyco/x-components
Version:
Empathy X Components
38 lines (35 loc) • 1.45 kB
JavaScript
import _sfc_main from './partial-results-list.vue2.js';
import { openBlock, createBlock, resolveDynamicComponent, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode } from 'vue';
import './partial-results-list.vue3.js';
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js';
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return _ctx.partialResults.length ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.animation), {
key: 0,
class: "x-partial-results-list",
"data-test": "partial-results",
tag: "ul"
}, {
default: withCtx(() => [
(openBlock(true), createElementBlock(
Fragment,
null,
renderList(_ctx.partialResults, (partialResult, index) => {
return openBlock(), createElementBlock("li", {
key: `${partialResult.query}-${index}`,
class: "x-partial-result",
"data-test": "partial-result"
}, [
renderSlot(_ctx.$slots, "default", { partialResult }, void 0, true)
]);
}),
128
/* KEYED_FRAGMENT */
))
]),
_: 3
/* FORWARDED */
})) : createCommentVNode("v-if", true);
}
var partialResultsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c06ba696"]]);
export { partialResultsList as default };
//# sourceMappingURL=partial-results-list.vue.js.map