mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
f566e3b24b
* type: supplementary React.FC type * fix: remove useless code * revert: remove useStyle * revert: card-top * Update card-top.tsx
30 lines
621 B
TypeScript
30 lines
621 B
TypeScript
// @ts-nocheck
|
|
import { PoweroffOutlined } from '@ant-design/icons';
|
|
import { Button, Space } from 'antd';
|
|
import React from 'react';
|
|
|
|
const Text1 = () => '部署';
|
|
const Text2 = () => <span>部署</span>;
|
|
const Text3 = () => 'Submit';
|
|
|
|
const App: React.FC = () => (
|
|
<Space wrap>
|
|
<Button loading>部署</Button>
|
|
<Button loading>
|
|
<Text1 />
|
|
</Button>
|
|
<Button loading>
|
|
<Text2 />
|
|
</Button>
|
|
<Button loading>
|
|
<Text3 />
|
|
</Button>
|
|
<Button loading icon={<PoweroffOutlined />}>
|
|
<Text1 />
|
|
</Button>
|
|
<Button loading>按钮</Button>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|