@wfrog/vc
Version:
vue3 组件库 vc
47 lines (41 loc) • 1.35 kB
JavaScript
import './index.css'
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, resolveDynamicComponent } from 'vue';
import * as Icons from '@element-plus/icons-vue';
import { ElIcon } from 'element-plus';
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "el-icon",
props: {
name: {},
color: { default: "" },
size: { default: "" }
},
setup(__props) {
const props = __props;
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(ElIcon), {
size: __props.size,
color: __props.color,
class: normalizeClass(_ctx.$style.icon)
}, {
default: withCtx(() => [
(openBlock(), createBlock(resolveDynamicComponent(Icons[props.name])))
]),
_: 1
}, 8, ["size", "color", "class"]);
};
}
});
/* unplugin-vue-components disabled */const icon = "_icon_1iurh_1";
const style0 = {
icon: icon
};
const cssModules = {
"$style": style0
};
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
const __vite_glob_0_16 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
__proto__: null,
default: Component
}, Symbol.toStringTag, { value: 'Module' }));
export { Component as C, __vite_glob_0_16 as _ };