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
e3b48dbb
Commit
e3b48dbb
authored
Sep 28, 2023
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 确山 历史数据,grid模式,只有个图表时,100%显示
parent
f2829e5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
GridChart.js
packages/extend-components/EC_HistoryView/src/GridChart.js
+9
-2
No files found.
packages/extend-components/EC_HistoryView/src/GridChart.js
View file @
e3b48dbb
...
...
@@ -77,7 +77,7 @@ const GridChart = memo((props) => {
option
:
option
,
};
});
return
_options
return
_options
;
},
[
gridData
,
smooth
,
curveCenter
]);
return
(
...
...
@@ -88,7 +88,14 @@ const GridChart = memo((props) => {
!
item
.
option
.
series
.
length
||
!
item
.
option
.
series
.
find
((
e
)
=>
e
.
data
&&
e
.
data
.
length
>
0
);
return
(
<
div
key
=
{
item
.
key
}
className
=
{
`
${
prefixCls
}
-grid-item`
}
>
<
div
key
=
{
item
.
key
}
className
=
{
`
${
prefixCls
}
-grid-item`
}
style
=
{{
height
:
gridData
.
length
===
1
?
'100%'
:
''
,
width
:
gridData
.
length
===
1
?
'100%'
:
''
,
}}
>
<
div
className
=
{
`
${
prefixCls
}
-grid-item-wrap`
}
>
<
ChartTitle
prefixCls
=
{
prefixCls
}
title
=
{
sensorName
}
unit
=
{
unit
}
/
>
{
isEmpty
?
(
...
...
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