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
09185618
Commit
09185618
authored
Oct 24, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复表格部分报错
parent
9f40688e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
index.js
packages/extend-components/EC_HistoryView/src/index.js
+5
-2
No files found.
packages/extend-components/EC_HistoryView/src/index.js
View file @
09185618
...
@@ -1101,7 +1101,7 @@ const HistoryView = (props) => {
...
@@ -1101,7 +1101,7 @@ const HistoryView = (props) => {
let
zoomParam
=
let
zoomParam
=
activeTabKey
===
'curve'
activeTabKey
===
'curve'
?
handleDataThinKey
(
diffYears
,
diffDays
,
diffHours
,
lineDataType
)
?
handleDataThinKey
(
diffYears
,
diffDays
,
diffHours
,
lineDataType
)
:
(
!
isDilute
?{
zoom
:
''
,
unit
:
''
}:
{});
// 表格也支持全数据模式;
:
(
!
isDilute
?
{
zoom
:
''
,
unit
:
''
}
:
{});
// 表格也支持全数据模式;
requestArr
.
push
(
getHistoryInfo
({...
param
,
...
zoomParam
}));
requestArr
.
push
(
getHistoryInfo
({...
param
,
...
zoomParam
}));
});
});
...
@@ -1206,7 +1206,10 @@ const HistoryView = (props) => {
...
@@ -1206,7 +1206,10 @@ const HistoryView = (props) => {
pagination
=
{
false
}
pagination
=
{
false
}
onChange
=
{
handleChange
}
onChange
=
{
handleChange
}
// scroll={{ x: 'max-content', y: 'calc(100% - 40px)' }}
// scroll={{ x: 'max-content', y: 'calc(100% - 40px)' }}
scroll
=
{{
x
:
'max-content'
,
y
:
tableRef
.
current
.
getBoundingClientRect
().
height
-
40
}}
scroll
=
{{
x
:
'max-content'
,
y
:
tableRef
.
current
?
tableRef
.
current
.
getBoundingClientRect
().
height
-
40
:
0
}}
/
>
/
>
)
:
(
)
:
(
<
PandaEmpty
/>
<
PandaEmpty
/>
...
...
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