ant-design/components/select/demo/debug-flip-shift.tsx
lijianan a5e7c4e849
refactor: use Array.from() instead new Array() (#52792)
* refactor: use Array.from() instead new Array()

* chore: fix

* chore: fix
2025-02-14 10:16:15 +08:00

15 lines
274 B
TypeScript

import React from 'react';
import { Select } from 'antd';
const App: React.FC = () => (
<Select
style={{ width: 120, marginTop: '50vh' }}
open
options={Array.from({ length: 100 }).map((_, index) => ({
value: index,
}))}
/>
);
export default App;