|
|
@@ -53,22 +53,19 @@
|
|
|
<el-input
|
|
|
v-model="data.questionContent"
|
|
|
ref="inputRef"
|
|
|
- type="textarea"
|
|
|
- :autosize="{ minRows: 1, maxRows: 2 }"
|
|
|
:placeholder="`Message ${data.model} ...`"
|
|
|
- />
|
|
|
-<!-- <el-spin v-if="data.loading" style="margin-right: 10px" />-->
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
<el-button
|
|
|
- type="text"
|
|
|
:disabled="data.questionContent === ''"
|
|
|
@click="handleSendQuestion"
|
|
|
- :class="$style.button"
|
|
|
+ style="width: 40px; border: none"
|
|
|
v-loading="data.loading"
|
|
|
>
|
|
|
- <el-icon v-if="!data.loading"><Top/></el-icon>
|
|
|
+ <el-icon><Top/></el-icon>
|
|
|
</el-button>
|
|
|
<el-dropdown @command="handleMenuClick">
|
|
|
- <el-button type="text" :class="$style.button">
|
|
|
+ <el-button type="text" style="width: 40px;">
|
|
|
<el-icon><ArrowDown/></el-icon>
|
|
|
</el-button>
|
|
|
<template #dropdown>
|
|
|
@@ -96,6 +93,17 @@
|
|
|
import {onMounted, reactive, ref, defineProps, watch, onUnmounted} from "vue";
|
|
|
import {ArrowDown, Top} from '@element-plus/icons-vue'
|
|
|
|
|
|
+ const svg = `
|
|
|
+ <path class="path" d="
|
|
|
+ M 30 15
|
|
|
+ L 28 17
|
|
|
+ M 25.61 25.61
|
|
|
+ A 15 15, 0, 0, 1, 15 30
|
|
|
+ A 15 15, 0, 1, 1, 27.99 7.5
|
|
|
+ L 15 15
|
|
|
+ " style="fill: rgba(0, 0, 0, 0)"/>
|
|
|
+ `
|
|
|
+
|
|
|
interface IProps {
|
|
|
dialogueId: string;
|
|
|
messages: IDialogue[]
|