mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 修复一些 ts 异常
This commit is contained in:
parent
bd68aec1ef
commit
eaa62a253e
@ -987,6 +987,7 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
delegate
|
||||
);
|
||||
}
|
||||
return;
|
||||
});
|
||||
}
|
||||
if (
|
||||
|
@ -24,6 +24,7 @@ const collapseStyles: {
|
||||
};
|
||||
|
||||
export interface CollapseProps {
|
||||
id?: string;
|
||||
key?: string;
|
||||
collapseId?: string;
|
||||
propKey?: string;
|
||||
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user