!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueElementUiPlus",[],e):"object"==typeof exports?exports.VueElementUiPlus=e():t.VueElementUiPlus=e()}(self,()=>(()=>{"use strict";var r={1900:(t,e,r)=>{r.d(e,{Z:()=>function(t,e,r,n,i,o,s,a){var c,l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0);n&&(l.functional=!0);o&&(l._scopeId="data-v-"+o);s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i);{var u;c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(t,e){return c.call(e),u(t,e)}):(e=l.beforeCreate,l.beforeCreate=e?[].concat(e,c):[c]))}return{exports:t,options:l}}})}},n={};function i(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},r[t](e,e.exports,i)),e.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var t={};{i.d(t,{default:()=>s});var e={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(t){return"string"==typeof t?["large","medium","small"].includes(t):"number"==typeof t}},shape:{type:String,default:"circle",validator:function(t){return["circle","square"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,r=this.shape,n=["el-avatar"];return t&&"string"==typeof t&&n.push("el-avatar--".concat(t)),e&&n.push("el-avatar--icon"),r&&n.push("el-avatar--".concat(r)),n.join(" ")}},methods:{handleError:function(){var t=this.error;!1!==(t?t():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,r=this.src,n=this.alt,i=this.isImageExist,o=this.srcSet,s=this.fit;return i&&r?t("img",{attrs:{src:r,alt:n,srcSet:o},on:{error:this.handleError},style:{"object-fit":s}}):e?t("i",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,r=this.size;return t("span",{class:e,style:"number"==typeof r?{height:"".concat(r,"px"),width:"".concat(r,"px"),lineHeight:"".concat(r,"px")}:{}},[this.renderAvatar()])}},e;(e=(0,i(1900).Z)(e,void 0,void 0,!1,null,null,null)).options.__file="packages/avatar/src/main.vue";const o=e.exports,s=(o.install=function(t){t.component(o.name,o)},o)}return t.default})());