邮寄列表table宽度

This commit is contained in:
姚亚男
2021-09-16 17:53:08 +08:00
parent 998c7634ee
commit 0a6cd5c314
+9 -2
View File
@@ -67,7 +67,7 @@
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:scroll="{x:true}" :scroll="{x: 1600}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
@@ -77,7 +77,12 @@
@change="handleTableChange"> @change="handleTableChange">
<template slot="htmlSlot" slot-scope="text, record"> <template slot="htmlSlot" slot-scope="text, record">
<div class="primary-color" v-html="text"></div> <a-tooltip placement="top">
<template slot="title">
<span>{{text}}</span>
</template>
<span class="primary-color">{{text}}</span>
</a-tooltip>
</template> </template>
<span slot="print" slot-scope="text, record" class="action-span-cell"> <span slot="print" slot-scope="text, record" class="action-span-cell">
@@ -134,6 +139,8 @@ export default {
}, },
{ {
title: '来款项目', title: '来款项目',
width: 300,
ellipsis: true,
align: 'center', align: 'center',
dataIndex: 'projectName', dataIndex: 'projectName',
scopedSlots: {customRender: 'htmlSlot'} scopedSlots: {customRender: 'htmlSlot'}