fix(Image): alt prop not work

This commit is contained in:
chenjiahan 2020-08-16 15:42:07 +08:00
parent 7c2b4c9abc
commit 0a570b2382

View File

@ -142,10 +142,8 @@ export default createComponent({
genImage() {
const imgData = {
alt: this.alt,
class: bem('img'),
attrs: {
alt: this.alt,
},
style: {
objectFit: this.fit,
},