docs: v1.5.0 - 更新CHANGELOG/tasks/features文档

This commit is contained in:
2026-06-06 12:20:54 +08:00
parent c271e6e807
commit 22fc8b6228
3 changed files with 51 additions and 7 deletions

View File

@@ -1,5 +1,30 @@
# Changelog
## [v1.5.0] - 2026-06-06
### ✨ 功能新增
- **F009 MAP→List 使用 balllist 模板**`run_map_to_list()` 改查 `BallList-Template.xlsx`,不再共用旧模板
- **F010 List→MAP 使用 ballmap 模板**`run_list_to_map()` 改查 `BallMAP-Template.xlsx`,模板完全分离
- **F011 模板格式提取式应用**:从模板的 cellXfs/fonts/borders/fills 提取实际样式定义,替换硬编码边框和对齐;无模板时完全回退到默认样式
- **F012 验证+回归测试**:新增 `test_f012_pinname_position()` 验证下边 Name 在 max_row-1、上边 Name 在 min_row+1添加 5×5 往返一致性测试
### 🗑️ 废弃
- `_find_template_path()` (PinMAP-Template.xlsx) — 不再自动查找,由 `_find_balllist_template_path()``_find_ballmap_template_path()` 替代
### 📝 文档
- 更新 `docs/tasks.md` T015 状态为已完成
- 更新 `docs/features.md` F009-F012 状态
### 🔧 修改文件
- `Code/src/main.py` — 新增两个模板查找函数,修改两个方向的模板调用
- `Code/src/xlsx_writer.py` — 重写 `_styles_xml()` 支持模板样式提取
- `Code/src/template_reader.py` — 增强 cellXfs 提取xfId、applyAlignment、wrapText
- `Code/src/test_pinmap.py` — 新增 F012 回归测试
## [v1.3.15] - 2026-06-01
### 🐛 Bug 修复