mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-06 05:58:46 +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;
|