birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
28 lines (27 loc) • 1.17 kB
JavaScript
;
const button_vue_vue_type_script_lang = require("./button.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../_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 vue.openBlock(), vue.createElementBlock("button", {
class: vue.normalizeClass(_ctx.btnClass),
type: "button",
disabled: _ctx.isDisabled,
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
}, [
_ctx.btnIcon || _ctx.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, [
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.btnIcon), {
class: vue.normalizeClass({ "bp-icon-loading": _ctx.loading }),
size: "14"
}, null, 8, ["class"]))
])) : vue.createCommentVNode("", true),
vue.renderSlot(_ctx.$slots, "default")
], 10, _hoisted_1);
}
const _button = /* @__PURE__ */ _pluginVue_exportHelper(button_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _button;