mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 22:33:40 +08:00
26 lines
710 B
TypeScript
26 lines
710 B
TypeScript
import React from 'react';
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
import { Button, Space, Upload } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical" style={{ width: '100%' }} size="large">
|
|
<Upload
|
|
action="https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188"
|
|
listType="picture"
|
|
maxCount={1}
|
|
>
|
|
<Button icon={<UploadOutlined />}>Upload (Max: 1)</Button>
|
|
</Upload>
|
|
<Upload
|
|
action="https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188"
|
|
listType="picture"
|
|
maxCount={3}
|
|
multiple
|
|
>
|
|
<Button icon={<UploadOutlined />}>Upload (Max: 3)</Button>
|
|
</Upload>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|