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