Vue vben admin开源库中table组件tips
- table如何自定义表头和自定义内容
自定义表头直接使用tittle,自定义内容是customRender
{
title: (
<span>
<img src={alvchat_avatar} style="width:20px;height:20px;vertical-align:bottom"></img>
{t('routes.alerts.columnsAIReview')}
</span>
),
dataIndex: 'reviewMatched',
width: 110,
customRender: ({ text, record }) => {
return (
<span>
{text === true ? <CheckOutlined style="color:green" /> : null}
{text === false ? <CloseOutlined style="color:red" /> : null}
</span>
);
},
},
原文地址:https://blog.csdn.net/weixin_47454566/article/details/142775354
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!