!6 update tuniao-ui/components/tn-avatar/tn-avatar.vue.

Merge pull request !6 from wssam/N/A
This commit is contained in:
Mandy
2024-04-08 06:20:30 +00:00
committed by Gitee

View File

@@ -1,7 +1,7 @@
<template> <template>
<view <view
class="tn-avatar-class tn-avatar" class="tn-avatar-class tn-avatar"
:class="[backgroundColorClass,avatarClass]" :class="[backgroundColorClass,fontColorClass,avatarClass]"
:style="[avatarStyle]" :style="[avatarStyle]"
@tap="click" @tap="click"
> >
@@ -176,6 +176,14 @@
} else if (this.shadow && this.showImg) { } else if (this.shadow && this.showImg) {
style.backgroundImage = `url(${this.src})` style.backgroundImage = `url(${this.src})`
} }
if(this.fontColorStyle) {
style.color = this.fontColorStyle
}
if(this.fontSizeStyle) {
style.fontSize = this.fontSizeStyle
}
if (this.border) { if (this.border) {
style.border = `${this.borderSize}rpx solid ${this.borderColor}` style.border = `${this.borderSize}rpx solid ${this.borderColor}`