mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
19 lines
324 B
Svelte
19 lines
324 B
Svelte
<script lang="ts">
|
|
import { fade } from 'svelte/transition';
|
|
|
|
export let token;
|
|
export let done = true;
|
|
|
|
let texts = [];
|
|
$: texts = (token?.raw ?? '').split(' ');
|
|
</script>
|
|
|
|
{#if done}
|
|
{token?.raw}
|
|
{:else}
|
|
{#each texts as text}
|
|
<span class="" transition:fade={{ duration: 100 }}>
|
|
{text}
|
|
</span>
|
|
{/each}
|
|
{/if}
|