2023-06-01 15:16:58 +08:00
|
|
|
import { EditOutlined, EllipsisOutlined, SettingOutlined } from '@ant-design/icons';
|
|
|
|
import React from 'react';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { Card, ConfigProvider } from 'antd';
|
2023-06-01 15:16:58 +08:00
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
Card: {
|
|
|
|
headerBg: '#e6f4ff',
|
|
|
|
headerFontSize: 20,
|
|
|
|
headerFontSizeSM: 20,
|
|
|
|
headerHeight: 60,
|
|
|
|
headerHeightSM: 60,
|
|
|
|
actionsBg: '#e6f4ff',
|
|
|
|
actionsLiMargin: `2px 0`,
|
|
|
|
tabsMarginBottom: 0,
|
|
|
|
extraColor: 'rgba(0,0,0,0.25)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Card
|
|
|
|
title="Card title"
|
|
|
|
actions={[
|
|
|
|
<SettingOutlined key="setting" />,
|
|
|
|
<EditOutlined key="edit" />,
|
|
|
|
<EllipsisOutlined key="ellipsis" />,
|
|
|
|
]}
|
|
|
|
extra="More"
|
|
|
|
tabList={[
|
|
|
|
{
|
|
|
|
key: 'tab1',
|
|
|
|
label: 'tab1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'tab2',
|
|
|
|
label: 'tab2',
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
</Card>
|
|
|
|
<Card size="small" title="Small size card" extra={<a href="#">More</a>} style={{ width: 300 }}>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
</Card>
|
|
|
|
</ConfigProvider>
|
|
|
|
);
|