2016-03-03 17:23:08 +08:00
|
|
|
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">
|
2016-11-11 17:56:05 +08:00
|
|
|
<ScrollLink className="list-point" to="banner" toHash={false} />
|
|
|
|
<ScrollLink className="list-point" to="page1" toHash={false} />
|
|
|
|
<ScrollLink className="list-point" to="page2" toHash={false} />
|
|
|
|
<ScrollLink className="list-point" to="page3" toHash={false} />
|
|
|
|
<ScrollLink className="list-point" to="page4" toHash={false} />
|
2016-03-03 17:23:08 +08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|