[update] 解决columns每一个都写dataIndex会有一个横向滚动条的问题
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user