UNPKG

@arco-vue-pro-components/pro-components

Version:
26 lines (25 loc) 786 B
import { Icon } from "@arco-design/web-vue"; import { resolveComponent, openBlock, createBlock } from "vue"; import _export_sfc from "../../_virtual/plugin-vue_export-helper.js"; const IconFont = Icon.addFromIconFontCn({ src: "//at.alicdn.com/t/c/font_4386265_m1qdgig5wh.js" }); const _sfc_main = { name: "MyIcon", props: { type: String, size: Number }, components: { IconFont } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_icon_font = resolveComponent("icon-font"); return openBlock(), createBlock(_component_icon_font, { type: $props.type, size: $props.size }, null, 8, ["type", "size"]); } var MyIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { MyIcon as default };