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