UNPKG

vue-instantsearch

Version:

👀 Lightning-fast Algolia search for Vue apps

2 lines (1 loc) • 796 B
import{openBlock as t,createElementBlock as e,normalizeClass as s,renderSlot as a,normalizeProps as l,guardReactiveProps as r,createElementVNode as n,toDisplayString as u,createCommentVNode as o}from"vue";var i=n("p",null," Use this component to have a different layout based on a certain state. ",-1),c=n("p",null,"Fill in the slot, and get access to the following things:",-1);function p(p,f,d,h,v,y){return p.state&&p.state.state&&p.state.results?(t(),e("div",{key:0,class:s(p.suit())},[a(p.$slots,"default",l(r(y.stateResults)),function(){return[i,c,n("pre",null,"results: "+u(Object.keys(p.state.results)),1),n("pre",null,"state: "+u(Object.keys(p.state.state)),1),n("pre",null,"status: "+u(p.state.status),1),n("pre",null,"error: "+u(p.state.error),1)]})],2)):o("",!0)}export{p as render};