代码:
const [
columns,
setColums
] = useState([
// 主要代码
title: <div style={{
"position": "relative"
}}>
<div style={{ "text-align": "right" }}>参数</div>
<div style={{ "text-align": "left" }}>变量</div>
<div style={{
"content": "",
"position": "absolute",
"width": "1px",
"height": "140px",
"top": "-48px",
"left": "42px",
"backgroundColor": "#1A3A50",
"display": "block",
"transform": "rotate(-57deg)"
}}>
</div>
</div>,
dataIndex: "indexName",
key: "indexName",
width: "9%"
])
效果: