You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
677 B
40 lines
677 B
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;
|
|
|