mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-26 00:09:15 +08:00
fix(Image): alt prop not work
This commit is contained in:
parent
7c2b4c9abc
commit
0a570b2382
@ -142,10 +142,8 @@ export default createComponent({
|
|||||||
|
|
||||||
genImage() {
|
genImage() {
|
||||||
const imgData = {
|
const imgData = {
|
||||||
|
alt: this.alt,
|
||||||
class: bem('img'),
|
class: bem('img'),
|
||||||
attrs: {
|
|
||||||
alt: this.alt,
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
objectFit: this.fit,
|
objectFit: this.fit,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user