mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
41 lines
677 B
TypeScript
41 lines
677 B
TypeScript
|
import React from 'react';
|
||
|
import { Select } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<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',
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|