UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

46 lines (43 loc) 2.02 kB
import _sfc_main from './index.vue_vue_type_script_lang.mjs'; import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createCommentVNode, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue'; import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs'; const _hoisted_1 = ["src"]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_ivue_icon = resolveComponent("ivue-icon"); return openBlock(), createElementBlock("span", { class: normalizeClass(_ctx.wrapperClasses), style: normalizeStyle(_ctx.wrapperStyles), ref: "wrapper" }, [ createCommentVNode(" \u56FE\u7247 "), renderSlot(_ctx.$slots, "img", {}, () => [ _ctx.src ? (openBlock(), createElementBlock("img", { key: 0, class: normalizeClass(`${_ctx.prefixCls}-img`), src: _ctx.src, onError: _cache[0] || (_cache[0] = (...args) => _ctx.handleImageError && _ctx.handleImageError(...args)) }, null, 42, _hoisted_1)) : createCommentVNode("v-if", true) ]), createCommentVNode(" icon "), renderSlot(_ctx.$slots, "icon", {}, () => [ _ctx.icon ? (openBlock(), createBlock(_component_ivue_icon, { key: 0 }, { default: withCtx(() => [ createTextVNode(toDisplayString(_ctx.icon), 1) ]), _: 1 })) : createCommentVNode("v-if", true) ]), createCommentVNode(" text "), _ctx.$slots.default ? (openBlock(), createElementBlock("span", { key: 0, class: normalizeClass(`${_ctx.prefixCls}-text`), style: normalizeStyle(_ctx.slotStyles), ref: "text" }, [ renderSlot(_ctx.$slots, "default") ], 6)) : createCommentVNode("v-if", true) ], 6); } var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-avatar\\index.vue"]]); export { Avatar as default }; //# sourceMappingURL=index2.mjs.map