[update] 解决columns每一个都写dataIndex会有一个横向滚动条的问题

This commit is contained in:
lideqin
2023-09-21 14:56:48 +08:00
parent 4beca1ec6f
commit 02a9f8e792
6 changed files with 16 additions and 44 deletions
@@ -89,13 +89,6 @@
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</template>
<!-- 主起草单位: 为了去掉横向滚动条 -->
<template slot="mainDraftingUnit" slot-scope="{record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</template>
<div class="table-text">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</div>
</a-tooltip>
</template>
</j-table>
</div>
@@ -170,7 +163,8 @@ export default {
title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'),
align: 'center',
width: 180,
scopedSlots: { customRender: 'mainDraftingUnit' }
dataIndex: 'mainDraftingUnit',
scopedSlots: { customRender: 'text' }
}
],
labelCol: {