效果

antd组件自定义table单元格内容样式_数据

判断数据的值修改显示字体的颜色

在使用 columns 时,可以通过scopedSlots属性配置支持 slot-scope 的属性。


{{ text }}%

{{ text }}%


{
title: '日常剔除比例',
dataIndex: '日常剔除比例',
key: '日常剔除比例',
width: 120,
scopedSlots: { customRender: '日常剔除比例' },
}