Commit c8949adb authored by chenshouchao's avatar chenshouchao

feat: 操作列可以错位

parent 0ad3d835
...@@ -341,25 +341,21 @@ const ProjectData = observer(() => { ...@@ -341,25 +341,21 @@ const ProjectData = observer(() => {
const renderButtons = (item: any) => { const renderButtons = (item: any) => {
return ( return (
<span> <span>
{/* {item.type !== "dataSet" && item.type !== "directory" && ( {item.type !== "dataSet" && item.type !== "directory" && (
)} */} <Button
<Button sx={{
sx={{ position: "relative",
position: "relative", left: "-4px",
left: "-4px", minWidth: "10px",
minWidth: "10px", marginRight: "10px",
marginRight: "10px", }}
visibility: variant="text"
item.type !== "dataSet" && item.type !== "directory" size="small"
? "visible" disabled={selectIds.length > 0 || !isPass("PROJECT_DATA_DOWNLOAD")}
: "hidden", >
}} 下载
variant="text" </Button>
size="small" )}
disabled={selectIds.length > 0 || !isPass("PROJECT_DATA_DOWNLOAD")}
>
下载
</Button>
<Button <Button
sx={{ sx={{
position: "relative", position: "relative",
......
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