gzkx-package 0.1.56 → 0.1.58

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.
@@ -11,6 +11,8 @@ interface FileUploadProps {
11
11
  maxCount?: number;
12
12
  disabled?: boolean;
13
13
  buttonText?: string;
14
+ baseUrl?: string;
15
+ params?: Record<string, any>;
14
16
  }
15
17
  declare const FileFoldComponent: React.FC<FileUploadProps>;
16
18
  export default FileFoldComponent;
@@ -13,6 +13,8 @@ interface FileUploadProps {
13
13
  maxCount?: number;
14
14
  disabled?: boolean;
15
15
  showFileType?: boolean;
16
+ baseUrl?: string;
17
+ params?: Record<string, any>;
16
18
  }
17
19
  declare const ImageVideoComponent: React.FC<FileUploadProps>;
18
20
  export default ImageVideoComponent;
@@ -51,10 +51,13 @@ interface CustomAddProps {
51
51
  oneditFormChange?: (changedValues: any, allValues: any) => void;
52
52
  CustomModalFooter?: ((record: any) => React.ReactNode);
53
53
  validateConfig?: ValidateConfig;
54
+ activeTab?: string;
55
+ onTabChange?: (key: string) => void;
54
56
  }
55
57
  interface CustomAddHandle {
56
58
  setFieldsValue: (values: any) => void;
57
59
  getFieldsValue: () => any;
60
+ setActiveTab: (key: string) => void;
58
61
  }
59
62
  declare const CustomAdd: React.ForwardRefExoticComponent<CustomAddProps & React.RefAttributes<CustomAddHandle>>;
60
63
  export default CustomAdd;
@@ -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;
@@ -9,6 +9,7 @@ export interface CommonPageHandle {
9
9
  reload: () => void;
10
10
  getSearchFieldsValue: () => any;
11
11
  setSearchFieldsValue: (values: any) => void;
12
+ setActiveTab: (key: string) => void;
12
13
  /** 打开表格配置弹窗 */
13
14
  openSettingModal: () => void;
14
15
  /** 关闭表格配置弹窗 */