UNPKG

@wfrog/vc

Version:

vue3 组件库 vc

47 lines (41 loc) 1.38 kB
import './index.css' import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot, createElementVNode } from 'vue'; import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs'; const _hoisted_1 = ["xlink:href"]; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "svg-icon", props: { name: {}, size: {}, color: {} }, setup(__props) { const props = __props; return (_ctx, _cache) => { return openBlock(), createElementBlock("svg", { class: normalizeClass(["svg-icon", [_ctx.$style.icon]]), "aria-hidden": "true", style: normalizeStyle({ fontSize: __props.size, color: __props.color }) }, [ renderSlot(_ctx.$slots, "default", {}, () => [ createElementVNode("use", { "xlink:href": `#icon-${props.name}` }, null, 8, _hoisted_1) ]) ], 6); }; } }); /* unplugin-vue-components disabled */const icon = "_icon_15t6e_1"; const style0 = { icon: icon }; const cssModules = { "$style": style0 }; const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]); const __vite_glob_0_27 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ __proto__: null, default: Component }, Symbol.toStringTag, { value: 'Module' })); export { Component as C, __vite_glob_0_27 as _ };