loading="eager"

This commit is contained in:
tamaina 2023-05-06 17:21:17 +00:00
parent 8a893cfe2a
commit c1e1cb15c7
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div :class="[$style.root, { [$style.cover]: cover }]" :title="title ?? ''"> <div :class="[$style.root, { [$style.cover]: cover }]" :title="title ?? ''">
<img v-if="!loaded && src" :class="$style.loader" :src="src" @load="onLoad"/> <img v-if="!loaded && src" :class="$style.loader" :src="src" loading="eager" @load="onLoad"/>
<Transition <Transition
mode="in-out" mode="in-out"
:enter-active-class="defaultStore.state.animation && (props.transition?.enterActiveClass ?? $style['transition_toggle_enterActive']) || undefined" :enter-active-class="defaultStore.state.animation && (props.transition?.enterActiveClass ?? $style['transition_toggle_enterActive']) || undefined"