style:table渲染图片 修改弹窗类名

This commit is contained in:
songwc
2022-10-20 10:51:25 +08:00
parent fd063e6ff4
commit ab652a0924
6 changed files with 322 additions and 290 deletions

View File

@@ -1485,6 +1485,28 @@ export default {
width: 50,
align: "center",
className: "h",
customRender: (text) => {
if (text.record.rank == "1") {
return (
<div
style={{
width: 24,
height: 24,
backgroundImage:
"url(" +
require("../../assets/images/taskpage/one.png") +
")",
}}
>fewfwe</div>
);
} else if (text.record.rank == "2") {
return <div>ggg</div>;
} else if (text.record.rank == "3") {
return <div>ggg</div>;
} else {
return <div>{text.record.rank}</div>;
}
},
},
{
title: "名称",