UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

52 lines (51 loc) 2.15 kB
import { defineComponent, openBlock, createElementBlock, renderSlot, Fragment, renderList, normalizeClass, unref, createBlock, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString } from "vue"; import { webFooterProps } from "./main.props.mjs"; import "../style/web-footer.css"; import "../../../utils/config.mjs"; import { isVueComponent } from "../../../utils/typescript.mjs"; import "@vueuse/core"; const _hoisted_1 = { class: "cu-web-footer" }; const _hoisted_2 = { key: 0, class: "cu-web-footer__links" }; const _hoisted_3 = ["href", "target"]; const _hoisted_4 = { key: 1, class: "cu-web-footer__copyright" }; const _sfc_main = /* @__PURE__ */ defineComponent({ ...{ name: "CuWebFooter" }, __name: "main", props: webFooterProps, setup(__props) { return (_ctx, _cache) => { return openBlock(), createElementBlock("div", _hoisted_1, [ _ctx.links || _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_2, [ renderSlot(_ctx.$slots, "default", {}, () => [ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => { return openBlock(), createElementBlock("a", { class: normalizeClass(["cu-web-footer__link", { underline: _ctx.underline }]), href: link.href ?? "javascript:void(0);", target: link.href && link.blankTarget ? "_blank" : void 0 }, [ unref(isVueComponent)(link.icon) ? (openBlock(), createBlock(resolveDynamicComponent(link.icon), { key: 0 })) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(link.content), 1) ], 10, _hoisted_3); }), 256)) ]) ])) : createCommentVNode("", true), _ctx.copyright || _ctx.$slots["copyright"] ? (openBlock(), createElementBlock("div", _hoisted_4, [ renderSlot(_ctx.$slots, "copyright", {}, () => [ createTextVNode(toDisplayString(_ctx.copyright), 1) ]) ])) : createCommentVNode("", true) ]); }; } }); export { _sfc_main as default };