ant-vue a-table和内嵌div/p 一行显示文本,给超出部分隐藏鼠标显示整体内容
只要再column指定设定的列设置ellipsis:true即可
{
title: '关联图纸文件(仅显示 .PcbDoc/.pdf/.dwg)',
key: 'tags',
dataIndex: 'tags',
scopedSlots: { customRender: 'tags' },
ellipsis: true,
width:300
},
内嵌到单元格的标签和普通的一样设置:
<template slot="beizhu" slot-scope="text, record, index"> <span v-if="!record.isEdit">
<p :title='record.beizhu' style="width:100px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"> {{record.beizhu}}</p> ...