Skip to content

Commit a5bc46d

Browse files
committed
fix: 修复样式影响
1 parent a89bdd9 commit a5bc46d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/packages/avatar/avatar.taro.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ export const Avatar: FunctionComponent<
136136
{(showMax || !groupMax || avatarIndex <= groupMax) && (
137137
<View
138138
className={cls}
139-
// {...rest}
140139
style={!showMax ? styles : maxStyles}
141140
onClick={clickAvatar}
142141
ref={avatarRef}
@@ -147,7 +146,7 @@ export const Avatar: FunctionComponent<
147146
<Image
148147
className={`nut-avatar-img nut-avatar-${groupSize || size || 'normal'}-img`}
149148
src={src}
150-
style={{ objectFit: fit, ...styles }}
149+
style={{ objectFit: fit }}
151150
onError={errorEvent}
152151
/>
153152
)}

0 commit comments

Comments
 (0)