UNPKG

vue-instantsearch-ssr

Version:

👀 Lightning-fast Algolia search for Vue apps

3 lines (2 loc) • 987 B
import{createSuitMixin as t}from"../mixins/suit.js";import{createWidgetMixin as e}from"../mixins/widget.js";import{_objectSpread as s}from"../util/polyfills.js";import a from"../connectors/connectStateResults.js";export default{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state&&t.state.state&&t.state.results?s("div",{class:t.suit()},[t._t("default",[s("p",[t._v(" Use this component to have a different layout based on a certain state. ")]),t._v(" "),s("p",[t._v(" Fill in the slot, and get access to the following things: ")]),t._v(" "),s("pre",[t._v("results: "+t._s(Object.keys(t.state.results)))]),t._v(" "),s("pre",[t._v("state: "+t._s(Object.keys(t.state.state)))])],null,t.stateResults)],2):t._e()},staticRenderFns:[],name:"AisStateResults",mixins:[e({connector:a}),t({name:"StateResults"})],computed:{stateResults:function(){var t=this.state,e=t.state,a=t.results;return s({},a,{results:a,state:e})}}}; //# sourceMappingURL=StateResults.vue.js.map