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
93f48eda
Commit
93f48eda
authored
Feb 23, 2023
by
wuyongsheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20221012-environment' into 'master'
hotfix: pdb改为3d效果 See merge request
!221
parents
f7068b9b
b89d6431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
index.tsx
...jectData/SeeDataset/components/DatasetCardTable/index.tsx
+17
-11
No files found.
src/views/Project/ProjectData/SeeDataset/components/DatasetCardTable/index.tsx
View file @
93f48eda
...
@@ -40,14 +40,17 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
...
@@ -40,14 +40,17 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
};
};
// 空盒子用于布局
// 空盒子用于布局
const
nullBox
=
useMemo
(()
=>
{
const
nullBox
=
useMemo
(
if
(
list
.
length
>
4
)
{
()
=>
{
let
nullBoxLength
=
Math
.
abs
(
8
-
list
.
length
);
if
(
list
.
length
>
4
)
{
return
new
Array
(
nullBoxLength
).
fill
(
""
);
let
nullBoxLength
=
Math
.
abs
(
8
-
list
.
length
);
}
else
{
return
new
Array
(
nullBoxLength
).
fill
(
""
);
return
[];
}
else
{
}
return
[];
},
[
list
]);
}
},
[
list
]
);
return
(
return
(
<>
<>
...
@@ -69,7 +72,10 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
...
@@ -69,7 +72,10 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
<
KekuleView
id=
{
`${index}2d`
}
smi=
{
item
.
smiles
}
/>
<
KekuleView
id=
{
`${index}2d`
}
smi=
{
item
.
smiles
}
/>
)
}
)
}
{
graphicDimension
===
"3D"
&&
(
{
graphicDimension
===
"3D"
&&
(
<
NglView
id=
{
`${index}3d`
}
content=
{
item
.
pdb
}
/>
<
NglView
id=
{
`${index}3d`
}
content=
{
item
.
pdb3d
||
item
.
mol2
}
/>
)
}
)
}
</
div
>
</
div
>
<
div
className=
{
style
.
datasetLiBottom
}
>
<
div
className=
{
style
.
datasetLiBottom
}
>
...
@@ -134,13 +140,13 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
...
@@ -134,13 +140,13 @@ const DatasetCardTable = (props: IDatasetCardTableProps) => {
[
style
.
nullBox
]:
true
,
[
style
.
nullBox
]:
true
,
})
}
})
}
key=
{
index
+
"null"
}
key=
{
index
+
"null"
}
></
div
>
/
>
);
);
})
}
})
}
</
div
>
</
div
>
</>
</>
)
}
)
}
{
list
.
length
===
0
&&
<
NoData
text=
"未搜索到相关数据"
></
NoData
>
}
{
list
.
length
===
0
&&
<
NoData
text=
"未搜索到相关数据"
/
>
}
</>
</>
);
);
};
};
...
...
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