Commit ce85626c by zhaochengxiang

样本数据问题

parent b9cb11e2
...@@ -29,15 +29,17 @@ const FC = (props) => { ...@@ -29,15 +29,17 @@ const FC = (props) => {
const newCols = []; const newCols = [];
data?.headers?.forEach(item => { data?.headers?.forEach(item => {
newCols.push({ if (item) {
title: item, newCols.push({
dataIndex: item, title: item,
width: 150, dataIndex: item,
ellipsis: true, width: 150,
render: (value, record) => <Tooltip title={value}> ellipsis: true,
<Typography.Text ellipsis={true}>{value}</Typography.Text> render: (value, record) => <Tooltip title={value}>
</Tooltip> <Typography.Text ellipsis={true}>{value}</Typography.Text>
}); </Tooltip>
});
}
}); });
setCols(newCols); setCols(newCols);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment