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
90d3c40d
Commit
90d3c40d
authored
Jun 16, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 操作列优化
parent
c8949adb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+12
-1
No files found.
src/views/Project/ProjectData/index.tsx
View file @
90d3c40d
...
@@ -102,6 +102,13 @@ const ProjectData = observer(() => {
...
@@ -102,6 +102,13 @@ const ProjectData = observer(() => {
}
}
},
[
list
,
dataSetList
,
activeTab
]);
},
[
list
,
dataSetList
,
activeTab
]);
// 是否全是文件夹
const
isAllDirectory
=
useMemo
(()
=>
{
return
showList
.
every
((
li
:
any
)
=>
{
return
li
.
type
===
"directory"
;
});
},
[
showList
]);
// 全(文件、文件夹、数据集)列表
// 全(文件、文件夹、数据集)列表
const
allList
=
useMemo
(()
=>
{
const
allList
=
useMemo
(()
=>
{
return
[...
list
,
...
dataSetList
];
return
[...
list
,
...
dataSetList
];
...
@@ -341,13 +348,17 @@ const ProjectData = observer(() => {
...
@@ -341,13 +348,17 @@ const ProjectData = observer(() => {
const
renderButtons
=
(
item
:
any
)
=>
{
const
renderButtons
=
(
item
:
any
)
=>
{
return
(
return
(
<
span
>
<
span
>
{
item
.
type
!==
"dataSet"
&&
item
.
type
!==
"directory"
&&
(
{
!
isAllDirectory
&&
(
<
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"
...
...
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