1
1
<script setup lang="ts">
2
2
import { ref , created , onMounted , computed } from " vue"
3
3
import { Refresh , CircleClose , Delete } from " @element-plus/icons-vue"
4
+ import { ThumbsUp , CloseOne } from " @icon-park/vue-next"
4
5
import { fetchBotList , fetchChatAPIProcess } from " @/api"
5
6
import Compare from " @/components/Bot/Compare.vue"
6
7
import MessageBox from " @/components/Bot/MessageBox.vue"
@@ -273,27 +274,39 @@ onMounted(() => {
273
274
<el-button class =" !ml-0" @click =" handleShowName" type =" primary" >Tie</el-button >
274
275
<el-button class =" !ml-0" @click =" handleShowName" type =" primary" >Both are bad</el-button >
275
276
</div >
276
- <div class =" mt-8 flex items-center justify-between space-x-2" >
277
- <el-button size =" large" circle :icon =" CircleClose" :disabled =" !loading" @click =" handleStop" >
278
- </el-button >
279
- <el-button
280
- size =" large"
281
- circle
282
- :icon =" Refresh"
283
- :disabled =" loading"
284
- @click =" handleRegenerate"
285
- ></el-button >
286
- <el-button
287
- size =" large"
288
- type =" danger"
289
- circle
290
- class =" "
291
- :icon =" Delete"
292
- :disabled =" loading"
293
- @click =" handleDelete"
294
- ></el-button >
277
+ <div class =" mt-8 flex items-center justify-between space-x-4" >
278
+ <el-tooltip effect =" dark" content =" 停止生成" placement =" top" >
279
+ <el-button size =" large" circle :icon =" CloseOne" :disabled =" !loading" @click =" handleStop" >
280
+ </el-button >
281
+ </el-tooltip >
295
282
296
- <el-input size =" large" v-model =" prompt" placeholder =" " @keypress =" handleEnter" />
283
+ <el-tooltip effect =" dark" content =" 重新生成" placement =" top" >
284
+ <el-button
285
+ size =" large"
286
+ circle
287
+ :icon =" Refresh"
288
+ :disabled =" loading"
289
+ @click =" handleRegenerate"
290
+ ></el-button >
291
+ </el-tooltip >
292
+ <el-tooltip effect =" dark" content =" 清除历史记录" placement =" top" >
293
+ <el-button
294
+ size =" large"
295
+ type =" danger"
296
+ circle
297
+ :icon =" Delete"
298
+ :disabled =" loading"
299
+ @click =" handleDelete"
300
+ ></el-button >
301
+ </el-tooltip >
302
+
303
+ <el-input
304
+ class =" my-box"
305
+ size =" large"
306
+ v-model =" prompt"
307
+ placeholder =" "
308
+ @keypress =" handleEnter"
309
+ />
297
310
<el-button
298
311
size =" large"
299
312
class =" ml-4"
@@ -306,8 +319,14 @@ onMounted(() => {
306
319
</div >
307
320
</template >
308
321
309
- <style scoped >
322
+ <style >
310
323
.my-box {
311
324
box-shadow : 0 0 2px #919eab33 , 0 4px 24px #919eab24 ;
312
325
}
326
+ .el-input__wrapper {
327
+ /* box-shadow: 0 0 2px #dcdfe6, 0 2px 6px #dcdfe6; */
328
+ }
329
+ .el-input__wrapper :hover {
330
+ /* box-shadow: 0 0 2px #dcdfe6, 0 2px 6px #dcdfe6; */
331
+ }
313
332
</style >
0 commit comments