优化
This commit is contained in:
@@ -150,7 +150,8 @@ const densitySource = readFileSync(resolve(process.cwd(), 'src/styles/adminDensi
|
||||
describe('LocationsView', () => {
|
||||
it('uses bordered striped tables and explicit semantic row actions', () => {
|
||||
expect(locationsSource).toContain('border')
|
||||
expect(locationsSource).toContain('stripe')
|
||||
expect(locationsSource).toContain('<DataTable')
|
||||
expect(locationsSource).not.toContain(':stripe="false"')
|
||||
expect(locationsSource).toMatch(/size="small"\s+class="density-action"/)
|
||||
expect(locationsSource).toContain(':data-tone="(row as PlatformLocationResource).status === \'AVAILABLE\' ? \'danger\' : \'success\'"')
|
||||
expect(locationsSource).toContain('class="density-action" data-tone="danger"')
|
||||
|
||||
@@ -487,7 +487,7 @@ onMounted(() => {
|
||||
|
||||
|
||||
|
||||
<section class="workbench-table is-page-surface" aria-label="库位列表区域"><DataTable appearance="integrated" :stripe="false" column-settings-mode="show" :results-visible="!loadError"
|
||||
<section class="workbench-table is-page-surface" aria-label="库位列表区域"><DataTable appearance="integrated" column-settings-mode="show" :results-visible="!loadError"
|
||||
v-model:page="page"
|
||||
v-model:page-size="pageSize"
|
||||
:data="rows"
|
||||
|
||||
@@ -120,7 +120,8 @@ const densitySource = readFileSync(resolve(process.cwd(), 'src/styles/adminDensi
|
||||
describe('PalletsView', () => {
|
||||
it('uses bordered striped tables and explicit semantic row actions', () => {
|
||||
expect(palletsSource).toContain('border')
|
||||
expect(palletsSource).toContain('stripe')
|
||||
expect(palletsSource).toContain('<DataTable')
|
||||
expect(palletsSource).not.toContain(':stripe="false"')
|
||||
expect(palletsSource).toContain('class="density-action" size="small" title="编辑托盘"')
|
||||
expect(palletsSource).toContain('class="density-action" data-tone="danger"')
|
||||
expect(palletsSource).not.toContain('<Eye :size="15" />')
|
||||
|
||||
@@ -351,7 +351,7 @@ onMounted(() => {
|
||||
|
||||
|
||||
|
||||
<section class="workbench-table is-page-surface" aria-label="托盘列表区域"><DataTable appearance="integrated" :stripe="false" column-settings-mode="show" :results-visible="!loadError"
|
||||
<section class="workbench-table is-page-surface" aria-label="托盘列表区域"><DataTable appearance="integrated" column-settings-mode="show" :results-visible="!loadError"
|
||||
v-model:page="page"
|
||||
v-model:page-size="pageSize"
|
||||
:data="rows"
|
||||
|
||||
Reference in New Issue
Block a user