From 6abe496cbcee269f85db16474286c022f2439b2c Mon Sep 17 00:00:00 2001 From: empty Date: Mon, 12 Jan 2026 02:12:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=BF=81=E7=A7=BB=20ArticleRewrite?= =?UTF-8?q?Panel.vue=20-=20SVG=20=E5=9B=BE=E6=A0=87=E6=9B=BF=E4=BB=A3=20em?= =?UTF-8?q?oji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 完成内容: - 导入 IconLibrary 组件 - 替换头部标题图标 (sparkles) - 替换范式选择条图标 (folder) - 替换三栏标题图标 (document, search, sparkles) - 替换按钮图标 (save, refresh, loading) - 替换空状态图标 (edit, clipboard, sparkles) - 替换状态指示器图标 (check, warning, error) - 替换提示信息图标 (info) - 优化按钮样式 (flexbox, gap, 统一间距) - 空状态使用带背景的图标容器 Emoji 数量: 18+ → 0 Co-Authored-By: Claude --- src/components/ArticleRewritePanel.vue | 82 ++++++++++++++++++-------- 1 file changed, 56 insertions(+), 26 deletions(-) diff --git a/src/components/ArticleRewritePanel.vue b/src/components/ArticleRewritePanel.vue index b11591a..8795733 100644 --- a/src/components/ArticleRewritePanel.vue +++ b/src/components/ArticleRewritePanel.vue @@ -4,7 +4,8 @@

- 🎨 范式润色 + + 范式润色

基于范式规则检查并重写文章句子
@@ -13,7 +14,8 @@
- 📚 当前范式: + + 当前范式: {{ selectedParadigm.icon }} {{ selectedParadigm.name }} @@ -33,7 +35,8 @@

- 📄 原文区 + + 原文区

{{ sentences.length }} 句 @@ -58,8 +61,9 @@ :disabled="isSaving" class="text-xs px-2 py-0.5 rounded bg-green-600 text-white hover:bg-green-500 transition flex items-center gap-1 disabled:opacity-50" > - - 💾 {{ isSaving ? '保存中...' : '保存' }} + + + {{ isSaving ? '保存中...' : '保存' }}
@@ -78,15 +82,18 @@ articleSourceType === 'document' ? 'bg-amber-600 text-white' : 'text-slate-400 hover:text-white']" >文稿库
- - 📄 {{ sourceDocTitle }} + + + {{ sourceDocTitle }}
- 📝 +
+ +

请在下方输入或粘贴文章内容

@@ -105,8 +112,9 @@
-

- 💡 点击句子可选中/取消,选中的句子将被检查 +

+ + 点击句子可选中/取消,选中的句子将被检查

@@ -124,20 +132,23 @@

- 🔍 检查结果 + + 检查结果

- 📋 +
+ +

选中句子后点击「范式检查」

- + AI 正在检查中...
@@ -157,7 +168,9 @@ >
- {{ result.status === 'pass' ? '✅' : result.status === 'warning' ? '⚠️' : '❌' }} + + +

句子 {{ result.sentenceIdx + 1 }}

@@ -172,7 +185,8 @@

- ✨ 重写预览 + + 重写预览

{{ rewrittenSentences.length }} 句 @@ -193,23 +207,28 @@ + > + + 复检 +
- +
+ +

检查完成后点击「AI 重写」

- + AI 正在重写中...
@@ -234,8 +253,9 @@
-

- 💡 点击句子可选中/取消,选中的句子将替换原文 +

+ + 点击句子可选中/取消,选中的句子将替换原文

@@ -267,9 +287,13 @@ class="px-4 py-2 rounded-lg text-sm font-medium text-white transition disabled:opacity-50 disabled:cursor-not-allowed bg-blue-600 hover:bg-blue-500" > - 检查中... + + 检查中... + + + + 范式检查 - 🔍 范式检查
@@ -325,6 +354,7 @@ import { updateDocument, saveDocumentVersion } from '../db/index.js' import ParadigmSelectorModal from './ParadigmSelectorModal.vue' import DocumentSelectorModal from './DocumentSelectorModal.vue' import RequirementParserPanel from './RequirementParserPanel.vue' +import IconLibrary from './icons/IconLibrary.vue' const appStore = useAppStore() const paradigmStore = useParadigmStore()