perf: 调整光标位置

This commit is contained in:
ChenZhaoYu 2023-03-31 13:20:55 +08:00
parent 90f0c3a80b
commit 15f3aac88e
1 changed files with 2 additions and 4 deletions

View File

@ -66,14 +66,12 @@ defineExpose({ textRef })
<template>
<div class="text-black" :class="wrapClass">
<div ref="textRef" class="leading-relaxed break-words">
<div v-if="!inversion">
<div v-if="!inversion" class="flex items-end">
<div v-if="!asRawText" class="markdown-body" v-html="text" />
<div v-else class="whitespace-pre-wrap" v-text="text" />
<span v-if="loading" class="dark:text-white w-[4px] h-[20px] block animate-blink" />
</div>
<div v-else class="whitespace-pre-wrap" v-text="text" />
<template v-if="loading">
<span class="dark:text-white w-[4px] h-[20px] block animate-blink" />
</template>
</div>
</div>
</template>