diff --git a/components/card/index.tsx b/components/card/index.tsx index 75612d3c15..0ba1e74090 100644 --- a/components/card/index.tsx +++ b/components/card/index.tsx @@ -10,6 +10,7 @@ export interface CardProps { style?: React.CSSProperties; loading?: boolean; children?: any; + id?: string; } export default (props: CardProps) => { diff --git a/components/form/Form.tsx b/components/form/Form.tsx index fd88fb3c8a..0eff34e27c 100644 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -69,7 +69,7 @@ export type WrappedFormUtils = { rules?: Array; /** 是否和其他控件互斥,特别用于 Radio 单选控件 */ exclusive?: boolean; - }): Array; + }): (node: React.ReactNode) => React.ReactNode; } export interface FormComponentProps {