birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
28 lines (27 loc) • 1.28 kB
JavaScript
;
const avatar_vue_vue_type_script_lang = require("./avatar.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
var _a, _b;
const _component_bp_image = vue.resolveComponent("bp-image");
return vue.openBlock(), vue.createElementBlock("div", {
class: vue.normalizeClass(_ctx.cls),
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
}, [
_ctx.imgSrc ? (vue.openBlock(), vue.createBlock(_component_bp_image, {
key: 0,
fit: _ctx.fit,
class: vue.normalizeClass(`${_ctx.name}-image-inner`),
src: _ctx.imgSrc
}, null, 8, ["fit", "class", "src"])) : vue.createCommentVNode("", true),
((_b = (_a = _ctx.slots).default) == null ? void 0 : _b.call(_a)) && !_ctx.imgSrc ? (vue.openBlock(), vue.createElementBlock("span", {
key: 1,
class: vue.normalizeClass(`${_ctx.name}-text`)
}, [
vue.renderSlot(_ctx.$slots, "default")
], 2)) : vue.createCommentVNode("", true)
], 2);
}
const _avatar = /* @__PURE__ */ _pluginVue_exportHelper(avatar_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _avatar;