Browse Source
* feat: rename anchor token * docs: add component-token demo * fix: update tokenpull/42518/head
muxin
2 years ago
committed by
GitHub
9 changed files with 257 additions and 23 deletions
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
Component Token Debug. |
|||
|
|||
## en-US |
|||
|
|||
Component Token Debug |
@ -0,0 +1,46 @@ |
|||
import { Anchor, Col, ConfigProvider, Row } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
/** Test usage. Do not use in your production. */ |
|||
|
|||
export default () => ( |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Anchor: { |
|||
linkPaddingBlock: 100, |
|||
linkPaddingInlineStart: 50, |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<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> |
|||
</ConfigProvider> |
|||
); |
Loading…
Reference in new issue