From cd96c1e299d28ef872ac3c80ee64d957e145b05f Mon Sep 17 00:00:00 2001 From: geekr Date: Fri, 24 Mar 2023 01:07:09 +0800 Subject: [PATCH] =?UTF-8?q?textarea=E9=9A=8F=E7=9D=80=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E5=A2=9E=E9=95=BF=E9=AB=98=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/Pages/Chat.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/js/Pages/Chat.vue b/resources/js/Pages/Chat.vue index fedfa9e..552583b 100644 --- a/resources/js/Pages/Chat.vue +++ b/resources/js/Pages/Chat.vue @@ -105,7 +105,7 @@ const regenerate = () => {
-
+
{
+ autocomplete="off" v-model="form.prompt" + :style="{ height: (form.prompt && form.prompt.split('\n').length > 1) ? form.prompt.split('\n').length * 2 + 'rem' : '40px' }" + class="block w-full rounded-md border-0 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:py-1.5 sm:text-sm sm:leading-6 resize-none">