mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
f703e00c0f
* fix home * update Banner min height
22 lines
704 B
JavaScript
22 lines
704 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" 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} />
|
|
</div>
|
|
);
|
|
}
|
|
}
|