From 0a570b2382286d3cd469fc476fa82451c8f8b319 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 16 Aug 2020 15:42:07 +0800 Subject: [PATCH] fix(Image): alt prop not work --- src/image/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/image/index.js b/src/image/index.js index db7ef945c..2e4da9c89 100644 --- a/src/image/index.js +++ b/src/image/index.js @@ -142,10 +142,8 @@ export default createComponent({ genImage() { const imgData = { + alt: this.alt, class: bem('img'), - attrs: { - alt: this.alt, - }, style: { objectFit: this.fit, },