mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Image): failed to display loading when using lazy-load (#11809)
This commit is contained in:
parent
5874fc787e
commit
7726eee160
@ -214,7 +214,7 @@ export default defineComponent({
|
|||||||
// https://github.com/youzan/vant/issues/11335
|
// https://github.com/youzan/vant/issues/11335
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (imageRef.value?.complete) {
|
if (imageRef.value?.complete && !props.lazyLoad) {
|
||||||
triggerLoad();
|
triggerLoad();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user