perf: input auto size

This commit is contained in:
ChenZhaoYu 2023-03-31 14:43:40 +08:00
parent b241240fc6
commit 431de382dc
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function handleReset() {
<div class="flex items-center space-x-4"> <div class="flex items-center space-x-4">
<span class="flex-shrink-0 w-[100px]">{{ $t('setting.role') }}</span> <span class="flex-shrink-0 w-[100px]">{{ $t('setting.role') }}</span>
<div class="flex-1"> <div class="flex-1">
<NInput v-model:value="systemMessage" placeholder="" /> <NInput v-model:value="systemMessage" type="textarea" :autosize="{ minRows: 1, maxRows: 4 }" />
</div> </div>
<NButton size="tiny" text type="primary" @click="updateSettings({ systemMessage })"> <NButton size="tiny" text type="primary" @click="updateSettings({ systemMessage })">
{{ $t('common.save') }} {{ $t('common.save') }}