mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 11:08:30 +08:00
ff31a5b555
This reverts commit 7a07b128d1
.
22 lines
659 B
JavaScript
22 lines
659 B
JavaScript
import React from 'react';
|
|
import ScrollLink from 'rc-scroll-anim/lib/ScrollLink';
|
|
import scrollScreen from 'rc-scroll-anim/lib/ScrollScreen';
|
|
|
|
export default class Link extends React.Component {
|
|
componentDidMount() {
|
|
scrollScreen.init({ docHeight: 4746 });
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div id="list">
|
|
<ScrollLink className="list-point" location="banner" />
|
|
<ScrollLink className="list-point" location="page1" />
|
|
<ScrollLink className="list-point" location="page2" />
|
|
<ScrollLink className="list-point" location="page3" />
|
|
<ScrollLink className="list-point" location="page4" />
|
|
</div>
|
|
);
|
|
}
|
|
}
|