UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

42 lines (41 loc) 1.12 kB
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue"; import { getPrefixCls } from "../_utils/global-config.js"; import _export_sfc from "../_virtual/plugin-vue_export-helper.js"; const _sfc_main = defineComponent({ name: "IconHover", props: { prefix: { type: String }, size: { type: String, default: "medium" }, disabled: { type: Boolean, default: false } }, setup() { const prefixCls = getPrefixCls("icon-hover"); return { prefixCls }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("span", { class: normalizeClass([ _ctx.prefixCls, { [`${_ctx.prefix}-icon-hover`]: _ctx.prefix, [`${_ctx.prefixCls}-size-${_ctx.size}`]: _ctx.size !== "medium", [`${_ctx.prefixCls}-disabled`]: _ctx.disabled } ]) }, [ renderSlot(_ctx.$slots, "default") ], 2); } var IconHover = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { IconHover as default };