✨ feat: 完善文件状态、取件记录与表格交互
* 支持当前页下载状态的手动和定时检测,仅显示标签与检测时间 * 区分查件时间和下载点击时间,保留重复查件前的取件时间 * 将查件事件按时间并入现有取件记录,共用展开与收起 * 统一表头居中,支持拖拽和键盘调整列宽并限制最小宽度 * 修复筛选面板收起结束时顶部间距突然消失的顿挫 * 补充单元、集成与浏览器验证,覆盖查询下载、列宽和动画行为
This commit is contained in:
1 parent
272741ee49
commit
4fefcd0f0a
29 files changed
+765
-41
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { test } from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import { resizeColumn } from '../src/utils/column-width.ts'
|
||||
|
||||
test('dragging changes only the selected column and preserves the starting widths', () => {
|
||||
const widths = [100, 240, 180]
|
||||
assert.deepEqual(resizeColumn(widths, 1, 65, 80), [100, 305, 180])
|
||||
assert.deepEqual(resizeColumn(widths, 1, -50, 80), [100, 190, 180])
|
||||
assert.deepEqual(widths, [100, 240, 180])
|
||||
})
|
||||
|
||||
test('narrowing stops at the header minimum and widening works again', () => {
|
||||
const widths = [100, 240, 180]
|
||||
assert.deepEqual(resizeColumn(widths, 2, -1000, 96), [100, 240, 96])
|
||||
assert.deepEqual(resizeColumn([100, 240, 96], 2, 16, 96), [100, 240, 112])
|
||||
assert.deepEqual(resizeColumn(widths, 0, 0, 72), widths)
|
||||
})
|
||||
Reference in new issue
Block a user