()
| 4 | import '../../assets/index.less'; |
| 5 | |
| 6 | const Test: React.FC = () => { |
| 7 | const [value, setValue] = React.useState<string[]>(['1']); |
| 8 | |
| 9 | const onChange = (v: any) => { |
| 10 | setValue(v); |
| 11 | }; |
| 12 | |
| 13 | return ( |
| 14 | <> |
| 15 | <h2>Multiple with maxCount</h2> |
| 16 | <Select |
| 17 | maxCount={4} |
| 18 | mode="multiple" |
| 19 | value={value} |
| 20 | animation="slide-up" |
| 21 | choiceTransitionName="rc-select-selection__choice-zoom" |
| 22 | style={{ width: 500 }} |
| 23 | optionFilterProp="children" |
| 24 | optionLabelProp="children" |
| 25 | placeholder="please select" |
| 26 | onChange={onChange} |
| 27 | options={Array.from({ length: 20 }, (_, i) => ({ |
| 28 | label: <span>中文{i}</span>, |
| 29 | value: i.toString(), |
| 30 | }))} |
| 31 | /> |
| 32 | </> |
| 33 | ); |
| 34 | }; |
| 35 | |
| 36 | export default Test; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…