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
0ad3d835
Commit
0ad3d835
authored
Jun 16, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 操作列排版修改
parent
3cb7850c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
index.tsx
src/views/Project/ProjectData/index.tsx
+19
-17
No files found.
src/views/Project/ProjectData/index.tsx
View file @
0ad3d835
...
@@ -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,21 +341,25 @@ const ProjectData = observer(() => {
...
@@ -343,21 +341,25 @@ 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
)} */
}
sx=
{
{
<
Button
position
:
"relative"
,
sx=
{
{
left
:
"-4px"
,
position
:
"relative"
,
minWidth
:
"10px"
,
left
:
"-4px"
,
marginRight
:
"10px"
,
minWidth
:
"10px"
,
}
}
marginRight
:
"10px"
,
variant=
"text"
visibility
:
size=
"small"
item
.
type
!==
"dataSet"
&&
item
.
type
!==
"directory"
disabled=
{
selectIds
.
length
>
0
||
!
isPass
(
"PROJECT_DATA_DOWNLOAD"
)
}
?
"visible"
>
:
"hidden"
,
下载
}
}
</
Button
>
variant=
"text"
)
}
size=
"small"
disabled=
{
selectIds
.
length
>
0
||
!
isPass
(
"PROJECT_DATA_DOWNLOAD"
)
}
>
下载
</
Button
>
<
Button
<
Button
sx=
{
{
sx=
{
{
position
:
"relative"
,
position
:
"relative"
,
...
...
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