Browse Source
* ✨ feat: Breadcrumb Component Token * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: update dome * ✨ feat: update * ✨ feat: update * ✨ feat: update domepull/42390/merge
黑雨
2 years ago
committed by
GitHub
10 changed files with 635 additions and 37 deletions
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
Component Token Debug. |
|||
|
|||
## en-US |
|||
|
|||
Component Token Debug. |
@ -0,0 +1,80 @@ |
|||
import { HomeOutlined, UserOutlined } from '@ant-design/icons'; |
|||
import { Breadcrumb, ConfigProvider } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const menuItems = [ |
|||
{ |
|||
key: '1', |
|||
label: ( |
|||
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/"> |
|||
General |
|||
</a> |
|||
), |
|||
}, |
|||
{ |
|||
key: '2', |
|||
label: ( |
|||
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/"> |
|||
Layout |
|||
</a> |
|||
), |
|||
}, |
|||
{ |
|||
key: '3', |
|||
label: ( |
|||
<a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/"> |
|||
Navigation |
|||
</a> |
|||
), |
|||
}, |
|||
]; |
|||
export default () => ( |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Breadcrumb: { |
|||
itemColor: '#b02121', |
|||
lastItemColor: '#0f3a88', |
|||
iconFontSize: 28, |
|||
linkColor: '#979a42', |
|||
linkHoverColor: '#9450c0', |
|||
separatorColor: '#b41b60', |
|||
separatorMargin: 22, |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<Breadcrumb |
|||
separator=">" |
|||
items={[ |
|||
{ |
|||
title: 'Home', |
|||
}, |
|||
{ |
|||
title: <a href="">Application Center</a>, |
|||
}, |
|||
{ |
|||
title: <a href="">General</a>, |
|||
menu: { items: menuItems }, |
|||
}, |
|||
{ |
|||
title: 'Application Center', |
|||
href: '', |
|||
}, |
|||
{ |
|||
href: '', |
|||
title: <HomeOutlined />, |
|||
}, |
|||
{ |
|||
href: '', |
|||
title: ( |
|||
<> |
|||
<UserOutlined /> |
|||
<span>Application List</span> |
|||
</> |
|||
), |
|||
}, |
|||
]} |
|||
/> |
|||
</ConfigProvider> |
|||
); |
Loading…
Reference in new issue