2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
2023-12-21 13:39:04 +08:00
|
|
|
import { Flex, Select } from 'antd';
|
2022-11-09 12:28:04 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
2023-12-21 13:39:04 +08:00
|
|
|
<Flex gap={12} vertical>
|
|
|
|
<Flex gap={8}>
|
|
|
|
<Select
|
|
|
|
placeholder="Outlined"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
<Select
|
|
|
|
mode="multiple"
|
|
|
|
defaultValue={['lucy']}
|
|
|
|
placeholder="Outlined"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</Flex>
|
|
|
|
<Flex gap={8}>
|
|
|
|
<Select
|
|
|
|
placeholder="Filled"
|
|
|
|
variant="filled"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
<Select
|
|
|
|
mode="multiple"
|
|
|
|
defaultValue={['lucy']}
|
|
|
|
placeholder="Filled"
|
|
|
|
variant="filled"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</Flex>
|
|
|
|
<Flex gap={8}>
|
|
|
|
<Select
|
|
|
|
placeholder="Borderless"
|
|
|
|
variant="borderless"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
<Select
|
|
|
|
mode="multiple"
|
|
|
|
defaultValue={['lucy']}
|
|
|
|
placeholder="Borderless"
|
|
|
|
variant="borderless"
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
options={[
|
|
|
|
{ value: 'jack', label: 'Jack' },
|
|
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</Flex>
|
|
|
|
</Flex>
|
2022-11-09 12:28:04 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|