mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
27 lines
566 B
TypeScript
27 lines
566 B
TypeScript
import React from 'react';
|
|
import { Select, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space wrap>
|
|
<Select
|
|
defaultValue="lucy"
|
|
style={{ width: 120 }}
|
|
bordered={false}
|
|
options={[
|
|
{ value: 'jack', label: 'Jack' },
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
]}
|
|
/>
|
|
<Select
|
|
defaultValue="lucy"
|
|
style={{ width: 120 }}
|
|
disabled
|
|
bordered={false}
|
|
options={[{ value: 'lucy', label: 'Lucy' }]}
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|