chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+13 -13
View File
@@ -15,26 +15,26 @@ export default createComponent({
lazyLoad: Boolean,
showError: {
type: Boolean,
default: true
default: true,
},
showLoading: {
type: Boolean,
default: true
default: true,
},
errorIcon: {
type: String,
default: 'warning-o'
default: 'warning-o',
},
loadingIcon: {
type: String,
default: 'photo-o'
}
default: 'photo-o',
},
},
data() {
return {
loading: true,
error: false
error: false,
};
},
@@ -42,7 +42,7 @@ export default createComponent({
src() {
this.loading = true;
this.error = false;
}
},
},
computed: {
@@ -63,7 +63,7 @@ export default createComponent({
}
return style;
}
},
},
created() {
@@ -138,11 +138,11 @@ export default createComponent({
const imgData = {
class: bem('img'),
attrs: {
alt: this.alt
alt: this.alt,
},
style: {
objectFit: this.fit
}
objectFit: this.fit,
},
};
if (this.error) {
@@ -161,7 +161,7 @@ export default createComponent({
{...imgData}
/>
);
}
},
},
render() {
@@ -175,5 +175,5 @@ export default createComponent({
{this.genPlaceholder()}
</div>
);
}
},
});