fix transitions not localised

This commit is contained in:
Tee Ming 2022-09-30 13:44:37 +08:00
commit 540263591b
2 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@
style="width: 100%;{$$restProps.style}"
src="{src}"
alt="{alt}"
transition:fade="{{ duration: fadeIn ? fast02 : 0 }}"
transition:fade|local="{{ duration: fadeIn ? fast02 : 0 }}"
/>
{/if}
{#if error}
@ -103,7 +103,7 @@
style="width: 100%;{$$restProps.style}"
src="{src}"
alt="{alt}"
transition:fade="{{ duration: fadeIn ? fast02 : 0 }}"
transition:fade|local="{{ duration: fadeIn ? fast02 : 0 }}"
/>
{/if}
{#if error}

View file

@ -88,7 +88,7 @@
bind:this="{refPanel}"
class:bx--header-panel="{true}"
class:bx--header-panel--expanded="{true}"
transition:slide="{{
transition:slide|local="{{
...transition,
duration: transition === false ? 0 : transition.duration,
}}"