column里面增加customCell。然后customRender里面直接返回HTML内容。
customCell: (record, index) => { return { domProps: { innerHTML: record.text } } }
在data中生成一个status和汉字的映射关系对象,封装一个函数,页面使用插槽传参status给函数调用转换颜色和文字信息
87,996
社区成员
224,708
社区内容
加载中
试试用AI创作助手写篇文章吧