From 4b1c0b9d549925ecfebaa4ce0ff83295117515fc Mon Sep 17 00:00:00 2001 From: empty Date: Mon, 12 Jan 2026 02:05:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=BF=81=E7=A7=BB=20MainContent.vu?= =?UTF-8?q?e=20-=20SVG=20=E5=9B=BE=E6=A0=87=E6=9B=BF=E4=BB=A3=20emoji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 完成内容: - 导入 IconLibrary 组件 - 替换工具栏按钮图标 (copy, trash, save) - 替换 AI 思考路径图标 (sparkles) - 替换质检报告图标 (search, check, warning, error) - 替换空状态图标 (keyboard, document, sparkles, chart) - 替换范式写作页面图标 (copy, download) - 替换范式编辑表单图标 (add, edit, close, info) - 替换分析页面图标 (chart, copy, edit) - 移除 stageLabel 中的 emoji - 优化按钮样式 (flexbox, gap, 统一间距) - 空状态使用带背景的图标容器 保留部分: - iconOptions 数组保留 emoji 并添加 TODO 注释 - 该选择器需后续优化为 SVG 图标网格 Emoji 数量: 27 → 1 (iconOptions 待优化) Co-Authored-By: Claude --- src/components/MainContent.vue | 114 ++++++++++++++++++++------------- 1 file changed, 70 insertions(+), 44 deletions(-) diff --git a/src/components/MainContent.vue b/src/components/MainContent.vue index 2d63bd0..7fb0a34 100644 --- a/src/components/MainContent.vue +++ b/src/components/MainContent.vue @@ -4,7 +4,10 @@
-

🔧 构建的 Prompt 结构预览

+

+ + 构建的 Prompt 结构预览 +

@@ -25,11 +28,13 @@ 字数: {{ generatedContent.length }} {{ isGenerating ? '(生成中...)' : '' }}
- -
@@ -39,11 +44,13 @@ 字数: {{ documentContent.length }}
- -
@@ -55,7 +62,9 @@
- ⌨️ +
+ +

在左侧配置参数,点击生成开始写作

@@ -67,7 +76,7 @@ class="w-full px-4 py-3 flex items-center justify-between text-left hover:bg-indigo-900/20 transition" >
- 🧠 + AI 思考路径 分析中... @@ -89,7 +98,7 @@
- 🔍 + 质检报告 - - ⚠️ - + + +
-

📝 {{ qualityReport.summary }}

+
+ +

{{ qualityReport.summary }}

@@ -160,7 +170,9 @@
- 📄 +
+ +

在左侧选择文稿进行编辑

@@ -216,7 +228,9 @@
- +
+ +

生成的内容将在这里实时预览

选择章节并点击「生成本节」开始

@@ -245,11 +259,13 @@
- -
@@ -260,14 +276,15 @@
-

- {{ paradigmEditState.isAddMode ? '➕ 新增写作范式' : '✏️ 编辑写作范式' }} +

+ + {{ paradigmEditState.isAddMode ? '新增写作范式' : '编辑写作范式' }}

-
@@ -351,7 +368,8 @@
-

- 💡 提示:这是 AI 调用时的核心指令。完整的 Prompt 应包含角色、目标、步骤和输出格式。 +

+ + 提示:这是 AI 调用时的核心指令。完整的 Prompt 应包含角色、目标、步骤和输出格式。

@@ -386,7 +405,9 @@