|
156 | 156 | </el-space> |
157 | 157 | </div> |
158 | 158 | </el-scrollbar> |
159 | | - <div class="flex" :style="{ alignItems: isMicrophone ? 'center' : 'end' }"> |
160 | | - <TouchChat |
161 | | - v-if="isMicrophone" |
162 | | - @TouchStart="startRecording" |
163 | | - @TouchEnd="TouchEnd" |
164 | | - :time="recorderTime" |
165 | | - :start="recorderStatus === 'START'" |
166 | | - :disabled="loading" |
167 | | - /> |
168 | | - <el-input |
169 | | - v-else |
170 | | - ref="quickInputRef" |
171 | | - v-model="inputValue" |
172 | | - :placeholder=" |
173 | | - recorderStatus === 'START' |
174 | | - ? `${$t('chat.inputPlaceholder.speaking')}...` |
175 | | - : recorderStatus === 'TRANSCRIBING' |
176 | | - ? `${$t('chat.inputPlaceholder.recorderLoading')}...` |
177 | | - : $t('chat.inputPlaceholder.default') |
178 | | - " |
179 | | - :autosize="{ minRows: 1, maxRows: isMobile ? 4 : 10 }" |
180 | | - type="textarea" |
181 | | - :maxlength="100000" |
182 | | - @keydown.enter="sendChatHandle($event)" |
183 | | - @paste="handlePaste" |
184 | | - @drop="handleDrop" |
185 | | - /> |
186 | | - |
187 | | - <div class="operate flex align-center"> |
| 159 | + |
| 160 | + <TouchChat |
| 161 | + v-if="isMicrophone" |
| 162 | + @TouchStart="startRecording" |
| 163 | + @TouchEnd="TouchEnd" |
| 164 | + :time="recorderTime" |
| 165 | + :start="recorderStatus === 'START'" |
| 166 | + :disabled="loading" |
| 167 | + /> |
| 168 | + <el-input |
| 169 | + v-else |
| 170 | + ref="quickInputRef" |
| 171 | + v-model="inputValue" |
| 172 | + :placeholder=" |
| 173 | + recorderStatus === 'START' |
| 174 | + ? `${$t('chat.inputPlaceholder.speaking')}...` |
| 175 | + : recorderStatus === 'TRANSCRIBING' |
| 176 | + ? `${$t('chat.inputPlaceholder.recorderLoading')}...` |
| 177 | + : $t('chat.inputPlaceholder.default') |
| 178 | + " |
| 179 | + :autosize="{ minRows: 1, maxRows: isMobile ? 4 : 10 }" |
| 180 | + type="textarea" |
| 181 | + :maxlength="100000" |
| 182 | + @keydown.enter="sendChatHandle($event)" |
| 183 | + @paste="handlePaste" |
| 184 | + @drop="handleDrop" |
| 185 | + /> |
| 186 | + |
| 187 | + <div class="operate flex-between"> |
| 188 | + <div> |
| 189 | + <!-- <el-button |
| 190 | + v-if="isUserInput || isAPIInput" |
| 191 | + class="user-input-button mb-8" |
| 192 | + type="primary" |
| 193 | + text |
| 194 | + @click="toggleUserInput" |
| 195 | + > |
| 196 | + <AppIcon iconName="app-user-input"></AppIcon> |
| 197 | + </el-button> --> |
| 198 | + </div> |
| 199 | + |
| 200 | + <div> |
188 | 201 | <template v-if="props.applicationDetails.stt_model_enable"> |
189 | 202 | <span v-if="mode === 'mobile'"> |
190 | 203 | <el-button text @click="switchMicrophone(!isMicrophone)"> |
|
277 | 290 | </div> |
278 | 291 | </div> |
279 | 292 | </div> |
| 293 | + |
280 | 294 | <div class="text-center" v-if="applicationDetails.disclaimer" style="margin-top: 8px"> |
281 | 295 | <el-text type="info" v-if="applicationDetails.disclaimer" style="font-size: 12px"> |
282 | 296 | <auto-tooltip :content="applicationDetails.disclaimer_value"> |
|
0 commit comments