fix: 调整光标到底部

main
ChenZhaoYu 2 years ago
parent 439104f195
commit 44f00c95cd

@ -66,12 +66,14 @@ defineExpose({ textRef })
<template> <template>
<div class="text-black" :class="wrapClass"> <div class="text-black" :class="wrapClass">
<div ref="textRef" class="leading-relaxed break-words"> <div ref="textRef" class="leading-relaxed break-words">
<div v-if="!inversion" class="flex items-end"> <div v-if="!inversion">
<div v-if="!asRawText" class="w-full markdown-body" v-html="text" /> <div v-if="!asRawText" class="markdown-body" v-html="text" />
<div v-else class="w-full whitespace-pre-wrap" v-text="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>
<div v-else class="whitespace-pre-wrap" v-text="text" /> <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>
</div> </div>
</template> </template>

Loading…
Cancel
Save