You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
611 B
29 lines
611 B
// @ts-nocheck
|
|
import React from 'react';
|
|
import { PoweroffOutlined } from '@ant-design/icons';
|
|
import { Button, Space } from 'antd';
|
|
|
|
const Text1 = () => '部署';
|
|
const Text2 = () => <span>部署</span>;
|
|
const Text3 = () => 'Submit';
|
|
|
|
const App = () => (
|
|
<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;
|
|
|