Multiple selection of ant design drop-down box has no effect

use the drop-down box of React"s ant design, and ask for help on how to solve the problem according to the fact that there is no multiple selection in the doc, on the official website.

<Select
    multiple
    showSearch
    onSelect={(val,e) => this.setState({xyCode:e.props.code})}
    onSearch={val => this.getXY(val)}
>
    {this.state.xyData.map(d => <Option code={d.departmentNumber} key={d.departmentName}>{d.departmentName}</Option>)}
</Select>

The multiple attribute is no longer supported after version 2.9. Read the document api

carefully
<Select
    mode='multiple'
    showSearch
    onSelect={(val,e) => this.setState({xyCode:e.props.code})}
    onSearch={val => this.getXY(val)}
>
    {this.state.xyData.map(d => <Option code={d.departmentNumber} key={d.departmentName}>{d.departmentName}</Option>)}
</Select>
Menu