是否可以在过滤的选项中添加全选或当我选择一个选项时阻止过滤器清除搜索?
这是我的选择代码:
<Select
showArrow={true}
suffixIcon={<CaretDownOutlined />}
getPopupContainer={node => node.parentNode}
mode={"tags"}
value={this.state.domainsToClassify}
bordered={false}
style={{ width: "100%" }}
placeholder={"Please select a domain"}
loading={this.props.massiveLoading}
disabled={this.props.massiveLoading}
onChange={this.domainSelectChange.bind(this)}
maxTagCount={0}
maxTagPlaceholder={`${this.state.domainsToClassify.length} selected`}
options={this.props.domainsMassive}
optionFilterProp={'label'}
/>
这是一个代码沙箱示例 https://codesandbox.io/s/distracted-gould-wlu1r?file=/index.js