Antd的filterOption的使用
<Select mode="multiple" placeholder="请选择组成辅料" style={{ width: '100%' }} optionFilterProp="children" filterOption={(input, option) => { console.log((option?.label ?? '').includes(input)); return (option?.label ?? '').includes(input); }} options={initData} />
漫思