diff --git a/docs/QUICK_REF.md b/docs/QUICK_REF.md index 5e1c75b..3489f01 100644 --- a/docs/QUICK_REF.md +++ b/docs/QUICK_REF.md @@ -7,7 +7,7 @@ ## 版本速查 ### 当前版本 -`0.2.7` → 下一目标 `0.2.8` ([M3.8](./M3.md)) +`0.2.8` → 下一目标 `0.2.9` ([M3.9](./M3.md)) ### 模块版本范围 diff --git a/docs/README.md b/docs/README.md index 9054736..df763ca 100644 --- a/docs/README.md +++ b/docs/README.md @@ -65,9 +65,9 @@ M11.10完成 → 1.0.0 (正式发布) ## 当前状态 -**当前版本**: `0.2.7` -**当前进度**: 21/97 (22%) -**下一任务**: [M3.8 加载状态显示](./M3.md#m38-加载状态显示--目标版本-028) +**当前版本**: `0.2.8` +**当前进度**: 22/97 (23%) +**下一任务**: [M3.9 有道词典实现](./M3.md#m39-有道词典实现--目标版本-029) --- diff --git a/docs/VERSION.md b/docs/VERSION.md index 154a4db..5e2c094 100644 --- a/docs/VERSION.md +++ b/docs/VERSION.md @@ -43,7 +43,7 @@ | M3.5 | 0.2.5 | 结果展示组件 | ✅ | 2026-02-11 | | M3.6 | 0.2.6 | 点击图标查词(Mock) | ✅ | 2026-02-11 | | M3.7 | 0.2.7 | 必应词典真实API | ✅ | 2026-02-11 | -| M3.8 | 0.2.8 | 加载状态显示 | ⬜ | - | +| M3.8 | 0.2.8 | 加载状态显示 | ✅ | 2026-02-11 | | M3.9 | 0.2.9 | 有道词典实现 | ⬜ | - | | M3.10 | 0.2.10 | 结果折叠/展开 | ⬜ | - | | M3.11 | 0.2.11 | 词典图标标识 | ⬜ | - | diff --git a/manifest.json b/manifest.json index f025c1c..cb0463e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "沙拉查词", - "version": "0.2.7", + "version": "0.2.8", "description": "聚合词典划词翻译", "permissions": [ "storage", diff --git a/package.json b/package.json index ebcdb72..1aed40e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salad-dict", - "version": "0.2.7", + "version": "0.2.8", "description": "聚合词典划词翻译", "private": true, "type": "module", diff --git a/src/content/components/DictPanel.js b/src/content/components/DictPanel.js index c00178f..73e2aff 100644 --- a/src/content/components/DictPanel.js +++ b/src/content/components/DictPanel.js @@ -142,6 +142,30 @@ export class DictPanel { color: #666; font-size: 13px; } + + .loading { + text-align: center; + padding: 40px 20px; + color: #666; + } + + .loading-spinner { + width: 32px; + height: 32px; + border: 3px solid #e0e0e0; + border-top-color: #4CAF50; + border-radius: 50%; + animation: spin 0.8s linear infinite; + margin: 0 auto 16px; + } + + @keyframes spin { + to { transform: rotate(360deg); } + } + + .loading-text { + font-size: 14px; + }