Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
85869caa
Commit
85869caa
authored
Sep 04, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2146 Water chart no update
parent
80e2a58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/components/Charts/WaterWave/index.js
src/components/Charts/WaterWave/index.js
+9
-1
No files found.
src/components/Charts/WaterWave/index.js
View file @
85869caa
...
...
@@ -6,7 +6,6 @@ import styles from './index.less';
/* eslint no-mixed-operators: 0 */
// riddle: https://riddle.alibaba-inc.com/riddles/2d9a4b90
export
default
@
autoHeight
()
class
WaterWave
extends
PureComponent
{
state
=
{
...
...
@@ -25,6 +24,13 @@ class WaterWave extends PureComponent {
);
}
componentDidUpdate
(
props
)
{
const
{
percent
}
=
this
.
props
;
if
(
props
.
percent
!==
percent
)
{
this
.
renderChart
();
}
}
componentWillUnmount
()
{
cancelAnimationFrame
(
this
.
timer
);
if
(
this
.
node
)
{
...
...
@@ -203,3 +209,5 @@ class WaterWave extends PureComponent {
);
}
}
export
default
WaterWave
;
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