UNPKG

vue-instantsearch

Version:

👀 Lightning-fast Algolia search for Vue apps

2 lines (1 loc) • 874 B
import{openBlock as e,createElementBlock as t,normalizeClass as n,renderSlot as s,createElementVNode as a,Fragment as r,renderList as u,toDisplayString as l,createCommentVNode as i}from"vue";var o=["value","selected"];function c(c,f,v,R,m,p){return c.state?(e(),t("div",{key:0,class:n(c.suit())},[s(c.$slots,"default",{items:c.state.options,hasNoResults:c.state.hasNoResults,refine:c.state.refine,currentRefinement:c.state.currentRefinement,canRefine:c.state.canRefine},function(){return[a("select",{class:n(c.suit("select")),onChange:f[0]||(f[0]=function(e){return c.state.refine(e.currentTarget.value)}),"aria-label":"Sort results by"},[(e(!0),t(r,null,u(c.state.options,function(s){return e(),t("option",{key:s.value,class:n(c.suit("option")),value:s.value,selected:s.value===c.state.currentRefinement},l(s.label),11,o)}),128))],34)]})],2)):i("",!0)}export{c as render};