Skip to content

Commit

Permalink
Merge pull request #18 from OVINC-CN/fix_input
Browse files Browse the repository at this point in the history
feat: separate go bottom from input area
  • Loading branch information
OrenZhang authored Feb 5, 2024
2 parents 74c2b21 + 32e073a commit f347641
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
userBehavior: {
type: Boolean,
default: false,
},
});
// emits
Expand Down Expand Up @@ -208,6 +212,13 @@ defineExpose({reGenerate, promptForm});
>
<icon-layers />
</a-button>
<a-button
shape="circle"
@click="emits('toggleUserBehavior', false)"
v-show="userBehavior"
>
<icon-arrow-down />
</a-button>
</a-space>
<a-space>
<a-button
Expand Down
1 change: 1 addition & 0 deletions src/views/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const setPromptForm = (data) => promptForm.value = data;
<a-divider />
<chat-input
ref="chatInputRef"
:user-behavior="userBehavior"
:local-messages="localMessages"
:chat-loading="chatLoading"
@add-message="addMessage"
Expand Down

0 comments on commit f347641

Please sign in to comment.