1. 在react-select下拉框中鼠标移入时显示标签的title
// 在react-select下拉框中鼠标移入时显示标签的title
<Select
options={options}
getOptionLabel={(option) => (
<div title={option.label}>{option.label}</div>
)}
/>
2. 增加下拉框层级数值
// 增加下拉框层级数值
const customStyle = {menu: (provided, state) => ({...provided}), control: provided => ({...provided})}
<Select
styles={{...customStyle, menuPortal: base => ({...base, zIndex: 9999})}}
/>