import { defineComponent, computed, openBlock, createBlock, mergeProps, renderSlot } from 'vue'; var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var script = defineComponent({ name: "ElIcon", props: { size: { type: Number }, color: { type: String } }, setup(props) { return { style: computed(() => { if (!props.size && !props.color) { return {}; } return __spreadValues(__spreadValues({}, props.size ? { "--font-size": `${props.size}px` } : {}), props.color ? { "--color": props.color } : {}); }) }; } }); function render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createBlock("i", mergeProps({ class: "el-icon", style: _ctx.style }, _ctx.$attrs), [ renderSlot(_ctx.$slots, "default") ], 16); } script.render = render; script.__file = "packages/icon/src/index.vue"; script.install = (app) => { app.component(script.name, script); }; const _Icon = script; export default _Icon;