diff --git a/packages/amis-core/src/renderers/Item.tsx b/packages/amis-core/src/renderers/Item.tsx index 19ec13b72..205fbaa44 100644 --- a/packages/amis-core/src/renderers/Item.tsx +++ b/packages/amis-core/src/renderers/Item.tsx @@ -860,6 +860,8 @@ export class FormItemWrap extends React.Component { renderControl(): JSX.Element | null { const { + // 这里解构,不可轻易删除,避免被rest传到子组件 + inputClassName, formItem: model, classnames: cx, children, @@ -1641,6 +1643,8 @@ export function asFormItem(config: Omit) { renderControl() { const { + // 这里解构,不可轻易删除,避免被rest传到子组件 + inputClassName, formItem: model, classnames: cx, children,