mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: update
This commit is contained in:
parent
263875dff8
commit
8427390971
@ -1,21 +1,21 @@
|
||||
import React from 'react';
|
||||
import { Select, Space } from 'antd';
|
||||
|
||||
const handleChange = (value: string) => {
|
||||
console.log(`selected ${value}`);
|
||||
};
|
||||
|
||||
const App: React.FC = () => (
|
||||
<Space wrap>
|
||||
<Select
|
||||
defaultValue="lucy"
|
||||
style={{ width: 120 }}
|
||||
allowClear
|
||||
onChange={(value) => console.log('onChange', value)}
|
||||
onActive={(val) => console.log('onActive', val)}
|
||||
onSelect={(val) => console.log('onSelect', val)}
|
||||
onChange={handleChange}
|
||||
options={[
|
||||
{ value: 'jack', label: 'Jack' },
|
||||
{ value: 'lucy', label: 'Lucy' },
|
||||
{ value: 'Yiminghe', label: 'yiminghe' },
|
||||
{ value: 'disabled', label: 'Disabled', disabled: true },
|
||||
{ value: 'Bob', label: 'Bob' },
|
||||
]}
|
||||
/>
|
||||
<Select
|
||||
|
Loading…
Reference in New Issue
Block a user