feat: 表格增加Tag字段,调整表格宽度以适应新增的字段
This commit is contained in:
parent
f8f819a218
commit
6deaca4d4b
|
@ -17,6 +17,9 @@
|
|||
{{ text }}
|
||||
</div>
|
||||
</template>
|
||||
<template slot="tag" slot-scope="text">
|
||||
{{ text }}
|
||||
</template>
|
||||
</a-table>
|
||||
<a-table :data-source="source2" rowKey="id" :columns="columns" :pagination="false">
|
||||
<template slot="flag" slot-scope="text, record">
|
||||
|
@ -35,6 +38,9 @@
|
|||
{{ text }}
|
||||
</div>
|
||||
</template>
|
||||
<template slot="tag" slot-scope="text">
|
||||
{{ text }}
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -48,13 +54,13 @@ const columns = [
|
|||
scopedSlots: {
|
||||
customRender: 'flag',
|
||||
},
|
||||
width: 40,
|
||||
width: 45,
|
||||
},
|
||||
{
|
||||
title: 'Isotope',
|
||||
dataIndex: 'nuclideName',
|
||||
ellipsis: true,
|
||||
width: 80,
|
||||
width: 83,
|
||||
},
|
||||
{
|
||||
title: 'Concentration',
|
||||
|
@ -62,7 +68,7 @@ const columns = [
|
|||
scopedSlots: {
|
||||
customRender: 'concentration',
|
||||
},
|
||||
width: 128,
|
||||
width: 125,
|
||||
},
|
||||
{
|
||||
title: 'Uncertainty',
|
||||
|
@ -70,7 +76,7 @@ const columns = [
|
|||
scopedSlots: {
|
||||
customRender: 'uncertainty',
|
||||
},
|
||||
width: 118,
|
||||
width: 115,
|
||||
},
|
||||
{
|
||||
title: 'MDC[mBq/m3]',
|
||||
|
@ -78,7 +84,16 @@ const columns = [
|
|||
scopedSlots: {
|
||||
customRender: 'mdc',
|
||||
},
|
||||
width: 133,
|
||||
width: 128,
|
||||
},
|
||||
{
|
||||
title: 'Tag',
|
||||
dataIndex: 'roiOrPeakFit',
|
||||
align: 'center',
|
||||
scopedSlots: {
|
||||
customRender: 'tag',
|
||||
},
|
||||
width: 40,
|
||||
},
|
||||
]
|
||||
export default {
|
||||
|
@ -139,13 +154,15 @@ export default {
|
|||
font-family: MicrosoftYaHei;
|
||||
font-size: 16px;
|
||||
background-color: transparent !important;
|
||||
padding: 6px 4px !important;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
&:last-child {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
// &:first-child {
|
||||
// padding-left: 0 !important;
|
||||
// padding-right: 0 !important;
|
||||
// }
|
||||
// &:last-child {
|
||||
// padding-right: 0 !important;
|
||||
// }
|
||||
}
|
||||
|
||||
.ant-table-tbody {
|
||||
|
|
Loading…
Reference in New Issue
Block a user