Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
ee149c72
Commit
ee149c72
authored
Jun 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 点击弹窗外不关闭
parent
ca9eacba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
MyDialog.tsx
src/components/mui/MyDialog.tsx
+5
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+7
-3
No files found.
src/components/mui/MyDialog.tsx
View file @
ee149c72
...
...
@@ -26,7 +26,11 @@ const MyDialog = (props: any) => {
setOpen
(
true
);
};
const
handleClose
=
()
=>
{
const
handleClose
=
(
event
:
any
=
{},
reason
:
any
=
"other"
)
=>
{
// 点击弹窗外不关闭弹窗
if
(
reason
===
"backdropClick"
)
{
return
;
}
setOpen
(
false
);
};
...
...
src/views/Project/ProjectData/index.tsx
View file @
ee149c72
...
...
@@ -386,7 +386,7 @@ const ProjectData = observer(() => {
size=
"small"
onClick=
{
()
=>
hanleShowMoveFileDialog
(
item
)
}
disabled=
{
selectIds
.
length
>
0
&&
!
isPass
(
"PROJECT_DATA_MOVE"
,
"USER"
)
selectIds
.
length
>
0
||
!
isPass
(
"PROJECT_DATA_MOVE"
,
"USER"
)
}
>
移动至
...
...
@@ -398,7 +398,7 @@ const ProjectData = observer(() => {
color=
"error"
onClick=
{
()
=>
hanleDeleteFile
(
item
)
}
disabled=
{
selectIds
.
length
>
0
&&
!
isPass
(
"PROJECT_DATA_DELETE"
,
"USER"
)
selectIds
.
length
>
0
||
!
isPass
(
"PROJECT_DATA_DELETE"
,
"USER"
)
}
>
删除
...
...
@@ -429,7 +429,11 @@ const ProjectData = observer(() => {
};
// 删除文件
const
handleDeleteDialogClose
=
()
=>
{
const
handleDeleteDialogClose
=
(
event
:
any
=
{},
reason
:
any
=
"other"
)
=>
{
// 点击弹窗外不关闭弹窗
if
(
reason
===
"backdropClick"
)
{
return
;
}
setDeleteDialogOpen
(
false
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment