You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
6.6 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-avatar/u-avatar"],{"04e6":function(A,t,e){"use strict";e.r(t);var r=e("502b"),n=e.n(r);for(var l in r)"default"!==l&&function(A){e.d(t,A,(function(){return r[A]}))}(l);t["default"]=n.a},"502b":function(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgx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AAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z",n={name:"u-avatar",props:{bgColor:{type:String,default:"transparent"},src:{type:String,default:""},size:{type:[String,Number],default:"default"},mode:{type:String,default:"circle"},text:{type:String,default:""},imgMode:{type:String,default:"aspectFill"},index:{type:[String,Number],default:""},sexIcon:{type:String,default:"man"},levelIcon:{type:String,default:"level"},levelBgColor:{type:String,default:""},sexBgColor:{type:String,default:""},showSex:{type:Boolean,default:!1},showLevel:{type:Boolean,default:!1}},data:function(){return{error:!1,avatar:this.src?this.src:r}},watch:{src:function(A){A?(this.avatar=A,this.error=!1):(this.avatar=r,this.error=!0)}},computed:{wrapStyle:function(){var A={};return A.height="large"==this.size?"120rpx":"default"==this.size?"90rpx":"mini"==this.size?"70rpx":this.size+"rpx",A.width=A.height,A.flex="0 0 ".concat(A.height),A.backgroundColor=this.bgColor,A.borderRadius="circle"==this.mode?"500px":"5px",this.text&&(A.padding="0 6rpx"),A},imgStyle:function(){var A={};return A.borderRadius="circle"==this.mode?"500px":"5px",A},uText:function(){return String(this.text)[0]},uSexStyle:function(){var A={};return this.sexBgColor&&(A.backgroundColor=this.sexBgColor),A},uLevelStyle:function(){var A={};return this.levelBgColor&&(A.backgroundColor=this.levelBgColor),A}},methods:{loadError:function(){this.error=!0,this.avatar=r},click:function(){this.$emit("click",this.index)}}};t.default=n},"853e":function(A,t,e){"use strict";e.d(t,"b",(function(){return n})),e.d(t,"c",(function(){return l})),e.d(t,"a",(function(){return r}));var r={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"a077"))}},n=function(){var A=this,t=A.$createElement,e=(A._self._c,A.__get_style([A.wrapStyle])),r=!A.uText&&A.avatar?A.__get_style([A.imgStyle]):null,n=A.showSex?A.__get_style([A.uSexStyle]):null,l=A.showLevel?A.__get_style([A.uLevelStyle]):null;A.$mp.data=Object.assign({},{$root:{s0:e,s1:r,s2:n,s3:l}})},l=[]},"8fe2":function(A,t,e){"use strict";e.r(t);var r=e("853e"),n=e("04e6");for(var l in n)"default"!==l&&function(A){e.d(t,A,(function(){return n[A]}))}(l);e("f40a");var a,i=e("f0c5"),u=Object(i["a"])(n["default"],r["b"],r["c"],!1,null,"149c199e",null,!1,r["a"],a);t["default"]=u.exports},d25e:function(A,t,e){},f40a:function(A,t,e){"use strict";var r=e("d25e"),n=e.n(r);n.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-avatar/u-avatar-create-component',
{
'uview-ui/components/u-avatar/u-avatar-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("8fe2"))
})
},
[['uview-ui/components/u-avatar/u-avatar-create-component']]
]);