chore: 修复一些 ts 异常

This commit is contained in:
2betop 2022-06-14 12:01:10 +08:00
parent bd68aec1ef
commit eaa62a253e
3 changed files with 9 additions and 2 deletions

View File

@ -987,6 +987,7 @@ export default class Form extends React.Component<FormProps, object> {
delegate
);
}
return;
});
}
if (

View File

@ -24,6 +24,7 @@ const collapseStyles: {
};
export interface CollapseProps {
id?: string;
key?: string;
collapseId?: string;
propKey?: string;

View File

@ -60,7 +60,7 @@ export interface TextareaControlSchema extends FormBaseControlSchema {
resetValue?: string;
}
export type TextAreaRendererEvent = 'blur' | 'focus';
export type TextAreaRendererEvent = 'blur' | 'focus' | 'change';
export interface TextAreaProps extends FormControlProps {
placeholder?: string;
@ -149,7 +149,12 @@ export default class TextAreaControl extends React.Component<
const {...rest} = this.props;
return (
<Textarea {...rest} onFocus={this.handleFocus} onBlur={this.handleBlur} onChange={this.handleChange} />
<Textarea
{...rest}
onFocus={this.handleFocus}
onBlur={this.handleBlur}
onChange={this.handleChange}
/>
);
}
}