style(F006-W17.7): list 页表头统一居中显示

- DataTable 组件 header-cell-style textAlign: left → center (覆盖大多数 list 页)
- 3 个裸 el-table list 页补 header-cell-style (categoryGood/region/coupon)
- 单元格内容对齐不变 (仍 left), 只动表头
This commit is contained in:
Sisyphus 2026-07-09 14:56:31 +08:00
parent 63b32e999f
commit 87e278749b
4 changed files with 4 additions and 2 deletions

View File

@ -113,7 +113,7 @@ function onLimitChange(l: number) { emit('limit-change', l) }
textTransform: 'uppercase', textTransform: 'uppercase',
letterSpacing: '0.04em', letterSpacing: '0.04em',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
textAlign: 'left', textAlign: 'center',
lineHeight: '20px' lineHeight: '20px'
}" }"
:cell-style="{ :cell-style="{

View File

@ -167,6 +167,7 @@ onMounted(load)
borderless borderless
empty-text="暂无分类" empty-text="暂无分类"
class="cat-table" class="cat-table"
:header-cell-style="{ textAlign: 'center' }"
@selection-change="onSelectionChange" @selection-change="onSelectionChange"
> >
<el-table-column type="selection" width="50" /> <el-table-column type="selection" width="50" />

View File

@ -139,7 +139,7 @@ onMounted(load)
/> />
<div class="rr-card"> <div class="rr-card">
<el-table :data="list" border style="width: 100%" v-loading="loading" :empty-text="error || '暂无优惠券'" @selection-change="onSelectionChange" row-key="id"> <el-table :data="list" border style="width: 100%" v-loading="loading" :empty-text="error || '暂无优惠券'" @selection-change="onSelectionChange" row-key="id" :header-cell-style="{ textAlign: 'center' }">
<el-table-column type="selection" width="50" align="center" /> <el-table-column type="selection" width="50" align="center" />
<el-table-column type="index" label="#" width="50" align="center" /> <el-table-column type="index" label="#" width="50" align="center" />
<el-table-column prop="name" label="优惠券名称" min-width="180" show-overflow-tooltip /> <el-table-column prop="name" label="优惠券名称" min-width="180" show-overflow-tooltip />

View File

@ -127,6 +127,7 @@ onMounted(load)
borderless borderless
empty-text="暂无行政区划" empty-text="暂无行政区划"
class="region-table" class="region-table"
:header-cell-style="{ textAlign: 'center' }"
> >
<el-table-column prop="name" label="名称" min-width="200" /> <el-table-column prop="name" label="名称" min-width="200" />
<el-table-column prop="id" label="区划代码" min-width="140" /> <el-table-column prop="id" label="区划代码" min-width="140" />