!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>
<view
class="tn-avatar-class tn-avatar"
:class="[backgroundColorClass,avatarClass]"
:class="[backgroundColorClass,fontColorClass,avatarClass]"
:style="[avatarStyle]"
@tap="click"
>
@@ -177,6 +177,14 @@
style.backgroundImage = `url(${this.src})`
}
if(this.fontColorStyle) {
style.color = this.fontColorStyle
}
if(this.fontSizeStyle) {
style.fontSize = this.fontSizeStyle
}
if (this.border) {
style.border = `${this.borderSize}rpx solid ${this.borderColor}`
}