style(admin): unify dialog layouts and dense readonly presentation
This commit is contained in:
@@ -43,8 +43,8 @@ describe('finance presentation governance', () => {
|
||||
expect(settlement).not.toContain('class="detail-section surface-panel"')
|
||||
expect(settlement.match(/width="min\(760px, 94vw\)"/g)).toHaveLength(2)
|
||||
expect(settlement.match(/class="settlement-operation-form density-form"/g)).toHaveLength(2)
|
||||
expect(settlement).toContain('grid-template-columns: repeat(2, minmax(0, 1fr));')
|
||||
expect(settlement).toContain('column-gap: var(--admin-space-5);')
|
||||
expect(settlement).toContain('density-table density-table--editable settlement-operation-table')
|
||||
expect(settlement).toContain('.settlement-operation-table td:not([colspan]) { width: 50%; }')
|
||||
})
|
||||
|
||||
it('keeps settlement totals and list actions in the table toolbar', () => {
|
||||
@@ -128,10 +128,11 @@ describe('finance presentation governance', () => {
|
||||
expect(statements).not.toContain('disabled title="接口尚未提供')
|
||||
})
|
||||
|
||||
it('uses bordered striped tables for statement business details', () => {
|
||||
it('keeps bordered statement details and lets the adjustment editor scroll with its dialog', () => {
|
||||
expect(statements).toContain(':data="detail.lines" size="small" border stripe')
|
||||
expect(statements).toContain(':data="detail.revisions" size="small" border stripe')
|
||||
expect(statements).toContain(':data="adjustLines" size="small" max-height="420" border stripe')
|
||||
expect(statements).toContain(':data="adjustLines" size="small" border :stripe="false" row-key="statementLineId"')
|
||||
expect(statements).not.toContain('max-height="420"')
|
||||
})
|
||||
|
||||
it('opens statement details on a compact dedicated route instead of below the list', () => {
|
||||
|
||||
Reference in New Issue
Block a user