[improvement] Toast: optimize image icon display (#3895)

This commit is contained in:
neverland
2019-07-19 09:55:42 +08:00
committed by GitHub
parent 7893399fb0
commit dc0fba3be3
8 changed files with 15 additions and 22 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ export default createComponent({
type: Boolean,
default: true
},
loadingPlaceholder: {
showLoading: {
type: Boolean,
default: true
}
@@ -99,7 +99,7 @@ export default createComponent({
},
renderPlaceholder() {
if (this.loading && this.loadingPlaceholder) {
if (this.loading && this.showLoading) {
return (
<div class={bem('loading')}>
{this.slots('loading') || <Icon name="photo-o" size="22" />}