优化消息渲染中的上传文件。不过滤表单工具yxd_tool_name": "sendFrom",气泡渲染表单工具。

This commit is contained in:
2026-08-06 18:07:19 +08:00
parent 5c3769019e
commit 53ca1cd851
6 changed files with 596 additions and 85 deletions

View File

@@ -1567,6 +1567,82 @@ to { opacity: 1; transform: translateY(0);
.chat-content-user .file-size[data-v-5eb7b895] {
color: rgba(255, 255, 255, 0.7);
}
/* sendFrom 工具表单卡片 */
.chat-content-assistant .tool-form-card[data-v-5eb7b895] {
margin: -0.25rem -0.375rem;
}
.tool-form-card[data-v-5eb7b895] {
background: #f8f9fc;
border-radius: 0.625rem;
padding: 1rem 0.75rem;
border: 0.03125rem solid #e8ecf2;
}
.tool-form-title[data-v-5eb7b895] {
font-size: 1.0625rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.tool-form-desc[data-v-5eb7b895] {
font-size: 0.875rem;
color: #909399;
margin-bottom: 0.625rem;
}
.tool-form-fields[data-v-5eb7b895] {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.tool-form-text[data-v-5eb7b895] {
font-size: 0.875rem;
color: #606266;
padding: 0.25rem 0;
}
.tool-form-field[data-v-5eb7b895] {
display: flex;
flex-direction: column;
gap: 0.3125rem;
}
.tool-form-label[data-v-5eb7b895] {
font-size: 0.875rem;
color: #303133;
font-weight: 500;
}
.tool-form-input[data-v-5eb7b895] {
font-size: 0.875rem;
color: #303133;
padding: 1.25rem 0.625rem;
background: #fff;
border-radius: 0.375rem;
border: 0.03125rem solid #e4e7ed;
width: 100%;
box-sizing: border-box;
}
.tool-form-textarea[data-v-5eb7b895] {
font-size: 0.875rem;
color: #303133;
padding: 0.5625rem 0.625rem;
background: #fff;
border-radius: 0.375rem;
border: 0.03125rem solid #e4e7ed;
width: 100%;
box-sizing: border-box;
min-height: 3.125rem;
}
.tool-form-submit[data-v-5eb7b895] {
margin-top: 0.75rem;
padding: 0.5625rem 0;
text-align: center;
background: linear-gradient(135deg, #667eea, #764ba2);
color: #fff;
font-size: 0.9375rem;
font-weight: 500;
border-radius: 0.4375rem;
}
.tool-form-submitted[data-v-5eb7b895] {
background: #c0c4cc;
color: #fff;
}
/* ==========聊天输入容器部分========== */
.chat-interactive-container[data-v-5eb7b895] {
display: flex;

View File

@@ -1567,6 +1567,82 @@ to { opacity: 1; transform: translateY(0);
.chat-content-user .file-size[data-v-fdf84df1] {
color: rgba(255, 255, 255, 0.7);
}
/* sendFrom 工具表单卡片 */
.chat-content-assistant .tool-form-card[data-v-fdf84df1] {
margin: -0.25rem -0.375rem;
}
.tool-form-card[data-v-fdf84df1] {
background: #f8f9fc;
border-radius: 0.625rem;
padding: 1rem 0.75rem;
border: 0.03125rem solid #e8ecf2;
}
.tool-form-title[data-v-fdf84df1] {
font-size: 1.0625rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.tool-form-desc[data-v-fdf84df1] {
font-size: 0.875rem;
color: #909399;
margin-bottom: 0.625rem;
}
.tool-form-fields[data-v-fdf84df1] {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.tool-form-text[data-v-fdf84df1] {
font-size: 0.875rem;
color: #606266;
padding: 0.25rem 0;
}
.tool-form-field[data-v-fdf84df1] {
display: flex;
flex-direction: column;
gap: 0.3125rem;
}
.tool-form-label[data-v-fdf84df1] {
font-size: 0.875rem;
color: #303133;
font-weight: 500;
}
.tool-form-input[data-v-fdf84df1] {
font-size: 0.875rem;
color: #303133;
padding: 1.25rem 0.625rem;
background: #fff;
border-radius: 0.375rem;
border: 0.03125rem solid #e4e7ed;
width: 100%;
box-sizing: border-box;
}
.tool-form-textarea[data-v-fdf84df1] {
font-size: 0.875rem;
color: #303133;
padding: 0.5625rem 0.625rem;
background: #fff;
border-radius: 0.375rem;
border: 0.03125rem solid #e4e7ed;
width: 100%;
box-sizing: border-box;
min-height: 3.125rem;
}
.tool-form-submit[data-v-fdf84df1] {
margin-top: 0.75rem;
padding: 0.5625rem 0;
text-align: center;
background: linear-gradient(135deg, #667eea, #764ba2);
color: #fff;
font-size: 0.9375rem;
font-weight: 500;
border-radius: 0.4375rem;
}
.tool-form-submitted[data-v-fdf84df1] {
background: #c0c4cc;
color: #fff;
}
/* ==========聊天输入容器部分========== */
.chat-interactive-container[data-v-fdf84df1] {
display: flex;