feat 完善注释

This commit is contained in:
Ironsp
2026-10-01 17:24:57 +08:00
parent 2b59f68fd7
commit 9f4a5c7cda
183 changed files with 485 additions and 3615 deletions

View File

@@ -3,7 +3,6 @@ import { nextTick, ref } from 'vue'
import { ElMessage } from 'element-plus'
import { AppButton } from '@/components'
/** 单文件大小上限 1GB */
const MAX_FILE_SIZE = 1024 * 1024 * 1024
const content = ref('')
@@ -87,19 +86,18 @@ function onFileChange(event: Event): void {
<style lang="less" scoped>
.chat-input {
.flex(column, flex-start, stretch);
gap: 16px; // 输入框→提示行 23 × 0.77
padding: 12px 16px 24px; // 上 13 / 左右 21 / 下 36 × 0.77
border-top: 1px solid @project-divider; // 设计 38 分割线 @project-divider
gap: 16px;
padding: 12px 16px 24px;
border-top: 1px solid @project-divider;
background: @white;
// 设计 38:文本域灰底无描边,占位文案 #1F2937(13 → 11)
&__textarea {
width: 100%;
height: 57px; // 文本域高 74 × 0.77(覆盖 rows 固有高)
height: 57px;
padding: 11px 10px;
border: none;
border-radius: 6px;
background: @finance-row-bg; // 设计 38 实取 @finance-row-bg
background: @finance-row-bg;
color: @heading-color;
font-size: 11px;
line-height: 1.6;
@@ -114,7 +112,7 @@ function onFileChange(event: Event): void {
}
&::placeholder {
color: @heading-color; // 设计 38 占位即标注 @heading-color
color: @heading-color;
}
}
@@ -125,7 +123,6 @@ function onFileChange(event: Event): void {
width: 100%;
}
// 设计 38:提示 11 / #9CA3AF(覆盖 text-secondary)
&__hint {
font-size: 11px;
color: @text-color-disabled;
@@ -156,7 +153,6 @@ function onFileChange(event: Event): void {
display: none;
}
// 「发送」:设计 38 #024FFF 小按钮(12 → 11 / 500)
.app-button {
height: 24px; // 31 × 0.77
padding: 0 14px;