chore: update

This commit is contained in:
𝑾𝒖𝒙𝒉 2025-06-03 17:34:16 +08:00
parent 263875dff8
commit 8427390971
No known key found for this signature in database
GPG Key ID: 4E035332466F0370

View File

@ -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