Open nnmax opened 1 year ago
5.32.4
rc-field-form 导出了一个 RcFormProps 类型,此类型继承了 React.FormHTMLAttributes。因此它包含有原生 form 元素所支持的所有类型。
rc-field-form
RcFormProps
React.FormHTMLAttributes
form
这不是一个破坏性改动,只需要小小的修改该行代码就能实现。比如完全继承 RcFormProps 或者使用 Omit<RcFormProps, 'someProps'> 语法来排除某些字段即可。
Omit<RcFormProps, 'someProps'>
Version of antd-mobile
5.32.4
What is this feature about?
rc-field-form
导出了一个RcFormProps
类型,此类型继承了React.FormHTMLAttributes
。因此它包含有原生form
元素所支持的所有类型。这不是一个破坏性改动,只需要小小的修改该行代码就能实现。比如完全继承
RcFormProps
或者使用Omit<RcFormProps, 'someProps'>
语法来排除某些字段即可。