@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
66 lines (63 loc) • 1.82 kB
JavaScript
import { createElementVNode, defineComponent, openBlock, createElementBlock, normalizeClass, unref } from 'vue';
import '../../../hooks/index.mjs';
import { checkProps } from './check.mjs';
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
const _hoisted_1 = /* @__PURE__ */ createElementVNode(
"path",
{
fill: "none",
d: "M 4.7071 12.2929 l 5 5 c 0.3905 0.3905 1.0237 0.3905 1.4142 0 l 11 -11"
},
null,
-1
);
const _hoisted_2 = [
_hoisted_1
];
const __default__ = defineComponent({
name: "IconCheck"
});
const _sfc_main = defineComponent({
...__default__,
props: checkProps,
setup(__props) {
const ns = useNamespace("icon-check");
return (_ctx, _cache) => {
return openBlock(), createElementBlock(
"i",
{
class: normalizeClass([
unref(ns).b(),
unref(ns).is("indeterminate", _ctx.indeterminate),
unref(ns).is("active", _ctx.active)
])
},
[
_ctx.indeterminate ? (openBlock(), createElementBlock(
"div",
{
key: 0,
class: normalizeClass(unref(ns).e("line"))
},
null,
2
)) : (openBlock(), createElementBlock(
"svg",
{
key: 1,
class: normalizeClass(unref(ns).e("check")),
viewBox: "0 0 24 24"
},
_hoisted_2,
2
))
],
2
);
};
}
});
var Check = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vuesax-alpha/vuesax-alpha/packages/components/icon/src/check.vue"]]);
export { Check as default };
//# sourceMappingURL=check2.mjs.map