chore: 修类型报错 (#2633)

This commit is contained in:
吴多益 2021-09-29 20:23:21 +08:00 committed by GitHub
parent 2a3eea7f78
commit fa87057236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,13 +177,8 @@ export default class TagControl extends React.PureComponent<
@autobind
handleChange(value: Array<Option>) {
const {
joinValues,
extractValue,
delimiter,
valueField,
onChange
} = this.props;
const {joinValues, extractValue, delimiter, valueField, onChange} =
this.props;
let newValue: any = Array.isArray(value) ? value.concat() : [];
@ -320,6 +315,7 @@ export default class TagControl extends React.PureComponent<
{({isOpen, highlightedIndex, getItemProps, getInputProps}) => {
return (
<div className={cx(className, `TagControl`)}>
{/* @ts-ignore 怪了为啥类型不对,后续看 */}
<ResultBox
{...getInputProps({
name,