我正在尝试更改react-select? 我能够使用以下代码做到这一点
<AsyncSelect
styles={customStyles}
components={{ DropdownIndicator: () => null, IndicatorSeparator: () => null, NoOptionsMessage: () => "test" }}
className="form-control firm-search"
cacheOptions
defaultOptions
value={selectedValue}
getOptionLabel={e => e.name}
getOptionValue={e => e.path}
loadOptions={loadOptions}
onInputChange={handleInputChange}
onChange={handleChange}
placeholder='test ...'
/>
Run Code Online (Sandbox Code Playgroud)
问题是文本不再样式化。是否可以更改文本但保留默认样式?如果没有,是否可以将 CSS 应用于新文本?