Skip to content

Commit

Permalink
perf: input auto size
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Mar 31, 2023
1 parent b241240 commit 431de38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Setting/Advanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function handleReset() {
<div class="flex items-center space-x-4">
<span class="flex-shrink-0 w-[100px]">{{ $t('setting.role') }}</span>
<div class="flex-1">
<NInput v-model:value="systemMessage" placeholder="" />
<NInput v-model:value="systemMessage" type="textarea" :autosize="{ minRows: 1, maxRows: 4 }" />
</div>
<NButton size="tiny" text type="primary" @click="updateSettings({ systemMessage })">
{{ $t('common.save') }}
Expand Down

0 comments on commit 431de38

Please sign in to comment.