render: (h, params) => {
if (!params.row.GoodsName) {
return "";
}
let text = params.row.GoodsName;
if (text.length > 5) {
text = text.substr(0, 5) + "...";
}
return h(
"Tooltip",
{
props: {
content: params.row.GoodsName,
placement: "top"
}
},
text
);
}
iview render 名字过长显示省略号
最新推荐文章于 2022-09-16 15:15:51 发布