mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
chore: 修类型报错 (#2633)
This commit is contained in:
parent
2a3eea7f78
commit
fa87057236
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user