gzkx-package 0.1.55 → 0.1.57

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.
@@ -19,6 +19,7 @@ export interface AddItemConfig {
19
19
  dateFormat?: string;
20
20
  group?: any;
21
21
  render?: (props: any) => React.ReactNode;
22
+ component?: React.ComponentType<any>;
22
23
  [key: string]: any;
23
24
  }
24
25
  interface FormItemOption {
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { FormInstance } from 'antd/es/form';
2
3
 
3
4
  interface FormItemOption {
@@ -5,7 +6,7 @@ interface FormItemOption {
5
6
  value: string | number;
6
7
  }
7
8
  export interface FormItemConfig {
8
- type: 'input' | 'select' | 'rangePicker' | 'datePicker' | 'password' | 'treeSelect' | 'radio' | 'deptSelect' | 'orgSelect';
9
+ type: 'input' | 'select' | 'rangePicker' | 'datePicker' | 'password' | 'treeSelect' | 'radio' | 'deptSelect' | 'orgSelect' | 'custom';
9
10
  label: string;
10
11
  name: string;
11
12
  placeholder?: string;
@@ -16,6 +17,8 @@ export interface FormItemConfig {
16
17
  wrapperCol?: number;
17
18
  initialValue?: any;
18
19
  defaultValue?: any;
20
+ render?: (props: any) => React.ReactNode;
21
+ component?: React.ComponentType<any>;
19
22
  [key: string]: any;
20
23
  }
21
24
  interface CustomFormProps {
@@ -40,5 +43,5 @@ interface CustomFormHandle {
40
43
  setFieldsValue: (values: any) => void;
41
44
  getFieldsValue: () => any;
42
45
  }
43
- declare const CustomForm: import('react').ForwardRefExoticComponent<Omit<CustomFormProps, "ref"> & import('react').RefAttributes<CustomFormHandle>>;
46
+ declare const CustomForm: React.ForwardRefExoticComponent<Omit<CustomFormProps, "ref"> & React.RefAttributes<CustomFormHandle>>;
44
47
  export default CustomForm;