You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
gender
参数用来设置颜色不太合适吧?如果用户想要的与性别相关的颜色跟组件内置的颜色不一致如何解决呢?其实本质上还是细粒度的样式定义问题。width
和height
两个参数没必要吧?可以增加size
参数,预置三种或者四种大小,如果仍然不能满足用户需要,用户可以通过自定义样式来解决。本质上还是细粒度的样式定义问题。isRound
参数命名改为round
是否更合适?imgSrc
参数命名改为src
是否更合适?customText
参数,用default
插槽代替更合适吧?name
参数不设置或者参数值无效,都展示默认头像吧?应该不需要细分为用户不存在和默认头像两种情况吧?name
参数文案描述有问题,不应该是必选,必选是组件内部参数设置了required: true
,不设置的时候会报错或者警告。customText
建议改为默认插槽,优先级建议:默认插槽 > src > name。Beta Was this translation helpful? Give feedback.
All reactions