From 40b0a53cbec991f04cb5d6f3b936a524712ece2c Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 04 十一月 2024 16:32:03 +0800 Subject: [PATCH] 意图分析 --- src/components/chat/Chat.vue | 41 ++++++++++++++++------------------------- 1 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 8c6682c..bd4abd2 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -29,14 +29,17 @@ :style="{ backgroundColor: item.role === RoleEnum.user ? 'rgb(197 224 255)' : 'white' }" > <div class="flex flex-col" v-if="item?.stepList?.length > 0"> - <div - @click="toggleStepList(item)" - class="cursor-pointer border border-gray-300 border-solid w-fit px-2 flex items-center space-x-2 rounded-lg mb-3 hover:bg-gray-100 active:bg-gray-200" - > - <span> - {{ toggleStepLabel(item) }} - </span> - <span class="ywifont" :class="{ 'ywicon-unfold': !item.stepIsShow, 'ywicon-fold': item.stepIsShow }"></span> + <div class="flex items-center mb-3"> + <span class="mr-2">鎰忓浘鍒嗘瀽锛�</span> + <div + @click="toggleStepList(item)" + class="cursor-pointer border border-gray-300 border-solid w-fit px-2 flex items-center space-x-2 rounded-lg hover:bg-gray-100 active:bg-gray-200" + > + <span> + {{ toggleStepLabel(item) }} + </span> + <span class="ywifont" :class="{ 'ywicon-unfold': !item.stepIsShow, 'ywicon-fold': item.stepIsShow }"></span> + </div> </div> <!-- 杩囩▼杈撳嚭 --> @@ -51,7 +54,7 @@ <span v-else class="ywifont ywicon-loading1 animate-spin"></span> </template> --> <template #title> - <span>{{ subItem.title }}</span> + <span class="text-sm">{{ subItem.title }}</span> </template> </el-step> </el-steps> @@ -634,22 +637,10 @@ } } -.el-step.is-horizontal.stepActive { - .el-step__head.is-finish { - .el-step__line { - // 褰撳墠姝ラ鏁版í绾挎牱寮忚缃� - .el-step__line-inner { - width: 50% !important; - border-width: 1px !important; - } - } - - // 褰撳墠姝ラ鏁板渾鍦堟牱寮忚缃� - .el-step__icon.is-text { - // background: #409eff; - color: #fff; - } - } +:deep(.el-step__icon.is-text) { + --radius-size: 24px; + width: var(--radius-size); + height: var((--radius-size)); } :deep(.el-step__icon-inner) { -- Gitblit v1.9.3