birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
26 lines (25 loc) • 1.07 kB
JavaScript
import _sfc_main from "./link.vue2.js";
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot } from "vue";
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
const _hoisted_1 = ["disabled", "href", "target"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_IconLoader4Line = resolveComponent("IconLoader4Line");
return openBlock(), createElementBlock("a", {
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
disabled: _ctx.disabled,
class: normalizeClass(_ctx.clsName),
href: _ctx.href,
target: _ctx.target
}, [
_ctx.loading ? (openBlock(), createBlock(_component_IconLoader4Line, {
key: 0,
class: "left-icon bp-icon-loading",
size: "14px"
})) : createCommentVNode("", true),
renderSlot(_ctx.$slots, "default")
], 10, _hoisted_1);
}
const _link = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
_link as default
};