fix: 优化对话框选项卡样式

This commit is contained in:
wangdan-fit2cloud 2024-12-04 16:20:41 +08:00
parent fd35ef281c
commit 635de3a71d
7 changed files with 33 additions and 45 deletions

View File

@ -32,4 +32,6 @@ const prologue = computed(() => {
return temp?.replace(/-\s.+/g, toQuickQuestion)
})
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
</style>

View File

@ -26,34 +26,6 @@
.text {
padding: 6px 0;
}
.problem-button {
width: 100%;
border: none;
border-radius: 8px;
background: var(--app-layout-bg-color);
height: 46px;
padding: 0 12px;
line-height: 46px;
box-sizing: border-box;
color: var(--el-text-color-regular);
-webkit-line-clamp: 1;
word-break: break-all;
&:hover {
background: var(--el-color-primary-light-9);
}
&.disabled {
&:hover {
background: var(--app-layout-bg-color);
}
}
.el-icon {
color: var(--el-color-primary);
}
}
}
&__operate {
background: #f3f7f9;

View File

@ -1,15 +1,23 @@
<template>
<div class="radio_content" v-resize="resize" :style="radioContentStyle">
<el-card
v-for="item in option_list"
:key="item.value"
class="item"
shadow="never"
:class="[inputDisabled ? 'is-disabled' : '', modelValue == item[valueField] ? 'active' : '']"
@click="inputDisabled ? () => {} : selected(item[valueField])"
>
{{ item[textField] }}
</el-card>
<div class="radio_content" :style="radioContentStyle">
<el-row :gutter="12" class="w-full">
<template v-for="(item,index) in option_list" :key="index">
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
<el-card
:key="item.value"
class="item"
shadow="never"
:class="[
inputDisabled ? 'is-disabled' : '',
modelValue == item[valueField] ? 'active' : ''
]"
@click="inputDisabled ? () => {} : selected(item[valueField])"
>
{{ item[textField] }}
</el-card>
</el-col>
</template>
</el-row>
</div>
</template>
<script lang="ts" setup>

View File

@ -3,7 +3,7 @@
<div
v-if="item.type === 'question'"
@click="sendMessage ? sendMessage(item.content, 'new') : (content: string) => {}"
class="problem-button ellipsis-2 mb-8"
class="problem-button ellipsis-2 mt-8"
:class="sendMessage ? 'cursor' : 'disabled'"
>
<el-icon>

View File

@ -277,6 +277,10 @@ h5 {
vertical-align: middle;
}
.line-height-22 {
line-height: 22px;
}
.border {
border: 1px solid var(--el-border-color);
}
@ -745,5 +749,5 @@ h5 {
//企业微信
.wwLogin_qrcode_head {
padding:20px 0 !important;
}
padding: 20px 0 !important;
}

View File

@ -7,6 +7,8 @@
font-size: inherit;
p {
padding: 0 !important;
margin: 0 !important;
line-height: 22px !important;
}
.md-editor-admonition {
margin: 0;

View File

@ -44,7 +44,7 @@
<div class="flex align-center">
<img class="mr-12" src="@/assets/icon_file-doc.svg" alt="" />
<div>
<p>文档TXTMDDOCXHTMLCSVXLSXXLSPDF</p>
<p class="line-height-22 mt-4">文档TXTMDDOCXHTMLCSVXLSXXLSPDF</p>
<el-text class="color-secondary">需要使用文档内容提取节点解析文档内容</el-text>
</div>
</div>
@ -61,7 +61,7 @@
<div class="flex align-center">
<img class="mr-12" src="@/assets/icon_file-image.svg" alt="" />
<div>
<p>图片JPGJPEGPNGGIF</p>
<p class="line-height-22 mt-4">图片JPGJPEGPNGGIF</p>
<el-text class="color-secondary">需要使用图片理解节点解析图片内容</el-text>
</div>
</div>