UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

29 lines (28 loc) 1.15 kB
import _sfc_main from "./button.vue2.js"; import { openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from "vue"; import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js"; const _hoisted_1 = ["disabled"]; const _hoisted_2 = { key: 0, class: "left-icon" }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("button", { class: normalizeClass(_ctx.btnClass), type: "button", disabled: _ctx.isDisabled, onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)) }, [ _ctx.btnIcon || _ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_2, [ (openBlock(), createBlock(resolveDynamicComponent(_ctx.btnIcon), { class: normalizeClass({ "bp-icon-loading": _ctx.loading }), size: "14" }, null, 8, ["class"])) ])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default") ], 10, _hoisted_1); } const _button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { _button as default };