style(frontend): 表格首列左对齐其余列居中

This commit is contained in:
yml2213
2026-10-24 15:49:51 +08:00
parent 8991263d25
commit 9f2206430f
3 changed files with 33 additions and 4 deletions
@@ -17,7 +17,9 @@ test('百分比表格:按原列宽权重归一化到 100%', () => {
result.map((column) => column.width),
['25.0000%', '75.0000%'],
)
assert.ok(result.every((column) => column.align === 'center'))
assert.equal(result[0]?.align, 'left')
assert.equal(result[1]?.align, 'center')
assert.match(String(result[0]?.className), /percent-table-first-column/)
})
test('百分比表格:没有列宽时平均分配', () => {