【fix ESLint】src/components/AvatarList
This commit is contained in:
@@ -34,7 +34,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
avatarSize () {
|
||||
return this.size !== 'mini' && this.size || 20
|
||||
return ((this.size !== 'mini') && this.size) || 20
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -74,10 +74,9 @@ export default {
|
||||
items = items.slice(0, this.maxLength)
|
||||
items.push((<Avatar size={ this.size } style={ this.excessItemsStyle }>{`+${this.maxLength}`}</Avatar>))
|
||||
}
|
||||
const itemList = items.map((item) => (
|
||||
return items.map((item) => (
|
||||
<li class={ classString }>{ item }</li>
|
||||
))
|
||||
return itemList
|
||||
}
|
||||
},
|
||||
render () {
|
||||
|
||||
Reference in New Issue
Block a user