Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
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
ReactWeb5
wisdom-components
Commits
dba39ece
Commit
dba39ece
authored
Jun 04, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug
parent
4e99dd86
Pipeline
#29185
failed with stages
in 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
index.js
packages/extend-components/EC_DeviceTree/src/index.js
+2
-2
index.js
packages/extend-components/EC_HistoryInfo/src/index.js
+5
-1
index.less
packages/extend-components/EC_HistoryInfo/src/index.less
+11
-0
No files found.
packages/extend-components/EC_DeviceTree/src/index.js
View file @
dba39ece
...
...
@@ -51,8 +51,8 @@ const DeviceTree = (props) => {
setLoading
(
false
);
setTreeData
(
newData
);
setTotalCount
(
response
.
data
.
totalCount
);
onTreeCheck
(
[
newData
[
0
]
]);
onTreeSelect
(
[
newData
[
0
]
]);
onTreeCheck
(
newData
.
length
>
0
?
[
newData
[
0
]]
:
[
]);
onTreeSelect
(
newData
.
length
>
0
?
[
newData
[
0
]]
:
[
]);
}
else
{
message
.
error
(
response
.
msg
);
}
...
...
packages/extend-components/EC_HistoryInfo/src/index.js
View file @
dba39ece
...
...
@@ -778,8 +778,12 @@ const HistoryInfo = (props) => {
<
TabPane
tab
=
{
item
.
tab
}
key
=
{
item
.
key
}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-content`
)}
>
{
renderOptions
(
item
)}
{
!
tableData
.
length
&&
<
Empty
/>
}
<
Spin
spinning
=
{
loading
}
>
{
!
tableData
.
length
&&
(
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-empty`
)}
>
<
Empty
/>
<
/div
>
)}
{
!!
tableData
.
length
&&
(
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-wrap`
)}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-main`
)}
>
...
...
packages/extend-components/EC_HistoryInfo/src/index.less
View file @
dba39ece
...
...
@@ -24,6 +24,17 @@
display: flex;
flex: 1;
}
.ant-spin-nested-loading > div > .ant-spin {
max-height: none;
}
}
&-empty {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
&-wrap {
...
...
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