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:
parent
63b32e999f
commit
87e278749b
@ -113,7 +113,7 @@ function onLimitChange(l: number) { emit('limit-change', l) }
|
||||
textTransform: 'uppercase',
|
||||
letterSpacing: '0.04em',
|
||||
whiteSpace: 'nowrap',
|
||||
textAlign: 'left',
|
||||
textAlign: 'center',
|
||||
lineHeight: '20px'
|
||||
}"
|
||||
:cell-style="{
|
||||
|
||||
@ -167,6 +167,7 @@ onMounted(load)
|
||||
borderless
|
||||
empty-text="暂无分类"
|
||||
class="cat-table"
|
||||
:header-cell-style="{ textAlign: 'center' }"
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="50" />
|
||||
|
||||
@ -139,7 +139,7 @@ onMounted(load)
|
||||
/>
|
||||
|
||||
<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="index" label="#" width="50" align="center" />
|
||||
<el-table-column prop="name" label="优惠券名称" min-width="180" show-overflow-tooltip />
|
||||
|
||||
@ -127,6 +127,7 @@ onMounted(load)
|
||||
borderless
|
||||
empty-text="暂无行政区划"
|
||||
class="region-table"
|
||||
:header-cell-style="{ textAlign: 'center' }"
|
||||
>
|
||||
<el-table-column prop="name" label="名称" min-width="200" />
|
||||
<el-table-column prop="id" label="区划代码" min-width="140" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user