使用antd组件自带的方法怎么写ts
#48250
Replies: 1 comment 2 replies
-
const watchDataChange: FormProps<RecordType>[onFieldsChange'] = xxx |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
<Form form={form} name="basic" layout="vertical" onFinish={onFinish} autoComplete="off" onFieldsChange={watchDataChange} style={{ background: '#fff', padding: '20px' }}>
function watchDataChange(changedFields, allFields) { }
现在changedFields,allFields有ts报错Parameter 'allFields' implicitly has an 'any' type
如何让他不要报错
Beta Was this translation helpful? Give feedback.
All reactions