|
@@ -21,6 +21,7 @@
|
|
|
:table-data="dataSource"
|
|
|
row-key-field-name="id"
|
|
|
:column-width-resize-option="columnWidthResizeOption"
|
|
|
+ :cell-style-option="cellStyleOption"
|
|
|
/>
|
|
|
<div v-show="showEmpty" class="empty-data"><a-empty description="暂无产品" :image="simpleImage"/></div>
|
|
|
</div>
|
|
@@ -125,6 +126,13 @@ export default {
|
|
|
// column resize min width
|
|
|
minWidth: 50
|
|
|
},
|
|
|
+ cellStyleOption: {
|
|
|
+ headerCellClass: ({ column, rowIndex }) => {
|
|
|
+ if (column.align != 'center') {
|
|
|
+ return 'table-header-cell-center'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
isCityPrice: false, // 是否显示市级价
|
|
|
outStockStr: '', // 产品库存不足提示信息
|
|
|
showEmpty: false, // 是否显示空数据图片
|
|
@@ -409,6 +417,12 @@ export default {
|
|
|
top: 50px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
+ .table-header-cell-center{
|
|
|
+ text-align: center!important;
|
|
|
+ }
|
|
|
+ .ant-input-number-sm input{
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
.ve-table-body-td{
|
|
|
.active-title{
|
|
|
display: flex;
|