Commit 0ad3d835 authored by chenshouchao's avatar chenshouchao

feat: 操作列排版修改

parent 3cb7850c
...@@ -56,8 +56,6 @@ const ProjectData = observer(() => { ...@@ -56,8 +56,6 @@ const ProjectData = observer(() => {
const { currentProjectStore } = useStores(); const { currentProjectStore } = useStores();
const fileToken = toJS(currentProjectStore.currentProjectInfo.filetoken); const fileToken = toJS(currentProjectStore.currentProjectInfo.filetoken);
const projectId = toJS(currentProjectStore.currentProjectInfo.id); const projectId = toJS(currentProjectStore.currentProjectInfo.id);
console.log(fileToken);
console.log(projectId);
/** 路由信息 */ /** 路由信息 */
const location = useLocation(); const location = useLocation();
// 当前文件路径 // 当前文件路径
...@@ -343,13 +341,18 @@ const ProjectData = observer(() => { ...@@ -343,13 +341,18 @@ 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:
item.type !== "dataSet" && item.type !== "directory"
? "visible"
: "hidden",
}} }}
variant="text" variant="text"
size="small" size="small"
...@@ -357,7 +360,6 @@ const ProjectData = observer(() => { ...@@ -357,7 +360,6 @@ const ProjectData = observer(() => {
> >
下载 下载
</Button> </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