fix: 修复旧版static-xxx组件inputClassName重复的问题 (#5885)

Co-authored-by: jinye <jinye@baidu.com>
This commit is contained in:
lmaomaoz 2022-12-08 10:15:40 +08:00 committed by GitHub
parent 717e01fb07
commit 2fbe88f793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -860,6 +860,8 @@ export class FormItemWrap extends React.Component<FormItemProps> {
renderControl(): JSX.Element | null {
const {
// 这里解构不可轻易删除避免被rest传到子组件
inputClassName,
formItem: model,
classnames: cx,
children,
@ -1641,6 +1643,8 @@ export function asFormItem(config: Omit<FormItemConfig, 'component'>) {
renderControl() {
const {
// 这里解构不可轻易删除避免被rest传到子组件
inputClassName,
formItem: model,
classnames: cx,
children,