@huibo-ui/react-antd 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,14 @@ export interface FormProps {
51
51
  className?: string;
52
52
  [key: string]: any;
53
53
  }
54
- export declare const Form: React.ForwardRefExoticComponent<Omit<FormProps, "ref"> & React.RefAttributes<FormInstance>>;
54
+ type FormType = React.ForwardRefExoticComponent<FormProps & React.RefAttributes<FormInstance>> & {
55
+ Item: any;
56
+ useForm: () => [FormInstance];
57
+ useWatch: (namePath: string | string[], form?: FormInstance) => any;
58
+ List: any;
59
+ Provider: any;
60
+ };
61
+ export declare const Form: FormType;
55
62
  export interface FormItemProps {
56
63
  name?: string | string[];
57
64
  label?: React.ReactNode;
@@ -76,3 +83,4 @@ export interface FormItemProps {
76
83
  [key: string]: any;
77
84
  }
78
85
  export declare function FormItem(props: FormItemProps): React.JSX.Element;
86
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huibo-ui/react-antd",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "antd 兼容层 — 接收 antd 原生 props,内部转换为 huibo-ui,实现丝滑平替",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",