mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
36 lines
846 B
TypeScript
36 lines
846 B
TypeScript
import React from 'react';
|
|
import { Anchor, Row, Col } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Row>
|
|
<Col span={16}>
|
|
<div id="part-1" style={{ height: '100vh', background: 'rgba(255,0,0,0.02)' }} />
|
|
<div id="part-2" style={{ height: '100vh', background: 'rgba(0,255,0,0.02)' }} />
|
|
<div id="part-3" style={{ height: '100vh', background: 'rgba(0,0,255,0.02)' }} />
|
|
</Col>
|
|
<Col span={8}>
|
|
<Anchor
|
|
items={[
|
|
{
|
|
key: 'part-1',
|
|
href: '#part-1',
|
|
title: 'Part 1',
|
|
},
|
|
{
|
|
key: 'part-2',
|
|
href: '#part-2',
|
|
title: 'Part 2',
|
|
},
|
|
{
|
|
key: 'part-3',
|
|
href: '#part-3',
|
|
title: 'Part 3',
|
|
},
|
|
]}
|
|
/>
|
|
</Col>
|
|
</Row>
|
|
);
|
|
|
|
export default App;
|