mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-10 14:39:45 +08:00
fix(Image): loading status
This commit is contained in:
parent
e0f9382123
commit
0010bfd461
@ -157,14 +157,16 @@ export default createComponent({
|
|||||||
return <img ref="image" vLazy={this.src} {...imgData} />;
|
return <img ref="image" vLazy={this.src} {...imgData} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
if (this.src) {
|
||||||
<img
|
return (
|
||||||
src={this.src}
|
<img
|
||||||
onLoad={this.onLoad}
|
src={this.src}
|
||||||
onError={this.onError}
|
onLoad={this.onLoad}
|
||||||
{...imgData}
|
onError={this.onError}
|
||||||
/>
|
{...imgData}
|
||||||
);
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user