mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:38:16 +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
|
@autobind
|
||||||
handleChange(value: Array<Option>) {
|
handleChange(value: Array<Option>) {
|
||||||
const {
|
const {joinValues, extractValue, delimiter, valueField, onChange} =
|
||||||
joinValues,
|
this.props;
|
||||||
extractValue,
|
|
||||||
delimiter,
|
|
||||||
valueField,
|
|
||||||
onChange
|
|
||||||
} = this.props;
|
|
||||||
|
|
||||||
let newValue: any = Array.isArray(value) ? value.concat() : [];
|
let newValue: any = Array.isArray(value) ? value.concat() : [];
|
||||||
|
|
||||||
@ -320,6 +315,7 @@ export default class TagControl extends React.PureComponent<
|
|||||||
{({isOpen, highlightedIndex, getItemProps, getInputProps}) => {
|
{({isOpen, highlightedIndex, getItemProps, getInputProps}) => {
|
||||||
return (
|
return (
|
||||||
<div className={cx(className, `TagControl`)}>
|
<div className={cx(className, `TagControl`)}>
|
||||||
|
{/* @ts-ignore 怪了为啥类型不对,后续看 */}
|
||||||
<ResultBox
|
<ResultBox
|
||||||
{...getInputProps({
|
{...getInputProps({
|
||||||
name,
|
name,
|
||||||
|
Loading…
Reference in New Issue
Block a user