UNPKG

@empathyco/x-components

Version:
30 lines (27 loc) 1.16 kB
import _sfc_main from './base-switch.vue2.js'; import { openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from 'vue'; import './base-switch.vue3.js'; import _export_sfc from '../_virtual/_plugin-vue_export-helper.js'; const _withScopeId = (n) => (pushScopeId("data-v-3ae6056b"), n = n(), popScopeId(), n); const _hoisted_1 = ["aria-checked"]; const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode( "div", { class: "x-switch__handle" }, null, -1 /* HOISTED */ )); const _hoisted_3 = [ _hoisted_2 ]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("button", { "aria-checked": _ctx.modelValue || void 0, class: normalizeClass([_ctx.cssClasses, "x-switch"]), role: "switch", onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args)) }, [..._hoisted_3], 10, _hoisted_1); } var BaseSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3ae6056b"]]); export { BaseSwitch as default }; //# sourceMappingURL=base-switch.vue.js.map