()
| 15 | } |
| 16 | |
| 17 | const Test: React.FC = () => { |
| 18 | const [value, setValue] = React.useState<string[]>(['b11']); |
| 19 | |
| 20 | const onChange = (v: any) => { |
| 21 | console.log('onChange', v); |
| 22 | setValue(v); |
| 23 | }; |
| 24 | |
| 25 | return ( |
| 26 | <div> |
| 27 | <h2>multiple readonly default selected item</h2> |
| 28 | <div style={{ width: 300 }}> |
| 29 | <Select |
| 30 | mode="multiple" |
| 31 | value={value} |
| 32 | animation="slide-up" |
| 33 | choiceTransitionName="rc-select-selection__choice-zoom" |
| 34 | style={{ width: 500 }} |
| 35 | optionFilterProp="children" |
| 36 | optionLabelProp="children" |
| 37 | placeholder="please select" |
| 38 | onChange={onChange} |
| 39 | > |
| 40 | {children} |
| 41 | </Select> |
| 42 | </div> |
| 43 | </div> |
| 44 | ); |
| 45 | }; |
| 46 | |
| 47 | export default Test; |
| 48 | /* eslint-enable */ |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…