mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
c878433e9a
* feat: migrate less to token for Segmented * docs: update docs * feat: add debug demo * feat: optimize code * feat: optimize code * feat: optimize code * style: reset style * style: reset style * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import { ConfigProvider, Segmented } from 'antd';
|
|
import React from 'react';
|
|
|
|
export default () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Segmented: {
|
|
itemColor: '#222',
|
|
itemHoverColor: '#333',
|
|
itemHoverBg: 'rgba(0, 0, 0, 0.06)',
|
|
itemSelectedBg: '#aaa',
|
|
itemActiveBg: '#ccc',
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} />
|
|
</ConfigProvider>
|
|
);
|