docs: 更新 CHANGELOG - SectionCard 组件渐变色优化
- 记录 SectionCard 组件重构优化 - 记录三个页面的代码清理 - 遵循 DRY 原则,提升可维护性 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
1 changed file
with
26 additions
and
0 deletions
| 1 | +## [2026-01-31] - 优化 SectionCard 组件内置渐变色逻辑 | ||
| 2 | + | ||
| 3 | +### 重构 | ||
| 4 | +- 重构 `SectionCard` 组件 (`src/components/SectionCard.vue`) | ||
| 5 | + - 内置默认渐变色处理逻辑,使用 `computed` 属性 | ||
| 6 | + - 统一使用浅蓝色渐变 `linear-gradient( 90deg, #EFF6FF 0%, #DBEAFE 100%)` | ||
| 7 | + - 保持 API 返回自定义渐变色的兼容性(通过 `bgGradient` prop) | ||
| 8 | +- 清理三个页面的重复代码 | ||
| 9 | + - 移除 `pages/onboarding/index.vue` 中的渐变色处理逻辑 | ||
| 10 | + - 移除 `pages/signing/index.vue` 中的渐变色处理逻辑 | ||
| 11 | + - 移除 `pages/family-office/index.vue` 中的渐变色处理逻辑 | ||
| 12 | + - 移除模板中的 `:bg-gradient` 属性绑定 | ||
| 13 | + | ||
| 14 | +--- | ||
| 15 | + | ||
| 16 | +**详细信息**: | ||
| 17 | +- **影响文件**: src/components/SectionCard.vue, src/pages/onboarding/index.vue, src/pages/signing/index.vue, src/pages/family-office/index.vue | ||
| 18 | +- **技术栈**: Vue 3, Composition API, computed | ||
| 19 | +- **测试状态**: 已通过 | ||
| 20 | +- **备注**: | ||
| 21 | + - 遵循 DRY 原则(Don't Repeat Yourself) | ||
| 22 | + - 提升代码可维护性:修改默认渐变色只需在一个地方 | ||
| 23 | + - 简化页面代码,专注业务数据 | ||
| 24 | + | ||
| 25 | +--- | ||
| 26 | + | ||
| 1 | ## [2026-01-31] - 修复反馈页面 textarea 样式 | 27 | ## [2026-01-31] - 修复反馈页面 textarea 样式 |
| 2 | 28 | ||
| 3 | ### 修复 | 29 | ### 修复 | ... | ... |
-
Please register or login to post a comment