UNPKG

@empathyco/x-components

Version:
32 lines (29 loc) 1.18 kB
import _sfc_main from './spellcheck-button.vue2.js'; import { openBlock, createElementBlock, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, createCommentVNode } from 'vue'; import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js'; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return _ctx.spellcheckedQuery ? (openBlock(), createElementBlock( "button", { key: 0, ref: "el", class: "x-spellcheck-button", "data-test": "set-spellcheck", onClick: _cache[0] || (_cache[0] = (...args) => _ctx.emitEvents && _ctx.emitEvents(...args)) }, [ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ spellcheckedQuery: _ctx.spellcheckedQuery })), () => [ createTextVNode( toDisplayString(_ctx.spellcheckedQuery), 1 /* TEXT */ ) ]) ], 512 /* NEED_PATCH */ )) : createCommentVNode("v-if", true); } var spellcheckButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { spellcheckButton as default }; //# sourceMappingURL=spellcheck-button.vue.js.map