Commit 8ea32fdc authored by chenshouchao's avatar chenshouchao

Merge branch 'feat-20220608-projectdata' into 'release'

feat: 样式调优

See merge request !39
parents 2cdb2734 0c956341
......@@ -377,7 +377,12 @@ const ProjectData = observer(() => {
<span>
{item.type !== "dataSet" && item.type !== "directory" && (
<Button
sx={{ position: "relative", left: "-18px", minWidth: '10px', marginRight: '10px' }}
sx={{
position: "relative",
left: "-4px",
minWidth: "10px",
marginRight: "10px",
}}
variant="text"
size="small"
disabled={selectIds.length > 0 || !isPass("PROJECT_DATA_DOWNLOAD")}
......@@ -386,7 +391,12 @@ const ProjectData = observer(() => {
</Button>
)}
<Button
sx={{ position: "relative", left: "-18px", minWidth: '10px', marginRight: '10px' }}
sx={{
position: "relative",
left: "-4px",
minWidth: "10px",
marginRight: "10px",
}}
variant="text"
size="small"
onClick={() => hanleShowMoveFileDialog(item)}
......@@ -397,7 +407,12 @@ const ProjectData = observer(() => {
移动至
</Button>
<Button
sx={{ position: "relative", left: "-18px", minWidth: '10px', marginRight: '10px' }}
sx={{
position: "relative",
left: "-4px",
minWidth: "10px",
marginRight: "10px",
}}
variant="text"
size="small"
color="error"
......@@ -585,15 +600,15 @@ const ProjectData = observer(() => {
return (
<span
key={index}
onClick={() =>{
onClick={() => {
if (index === 1) {
return
return;
}
setPath(
pathArr.slice(0, index + 1).join("/") === ""
? "/"
: pathArr.slice(0, index + 1).join("/")
)
);
}}
className={classnames({
[style.showPathSpan]: true,
......@@ -777,7 +792,7 @@ const ProjectData = observer(() => {
<DialogContent>
<DialogContentText id="alert-dialog-description">
{currentOperateFile
? '确认删除该数据吗?'
? "确认删除该数据吗?"
: `确认删除这${selectIds.length}条数据吗?`}
</DialogContentText>
</DialogContent>
......
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