align(生成记录·像素复刻样办): RecordsHistoryPage 重写为自绘复刻 admin panel-history(旧版 form-box/panel-box/原生控件/table-scroll/thumb 缩略图/旧式分页/大图 modal CSS);脚本沿用现有 API,测试断言适配自绘结构

This commit is contained in:
2026-09-06 22:08:32 +08:00
parent 7adef149d8
commit 4276a90236
5 changed files with 509 additions and 143 deletions
@@ -7,8 +7,8 @@ import { historyEmptyText } from '../src/pages/records/history-feedback.ts'
test('align_history_column_labels', () => {
const page = readSource('src/pages/records/RecordsHistoryPage.vue')
assert.match(page, /label="类型"/, '列名对齐参考「类型」')
assert.match(page, /label="创建时间"/, '列名对齐参考「创建时间」')
assert.match(page, /<th[^>]*>类型<\/th>/, '列名对齐参考「类型」(自绘 th)')
assert.match(page, /<th[^>]*>创建时间<\/th>/, '列名对齐参考「创建时间」(自绘 th)')
assert.doesNotMatch(page, /记录类型/, '去掉“记录类型”列名')
assert.doesNotMatch(page, /label="生成时间"/, '去掉“生成时间”列名')
})