szld-libs 0.2.61 → 0.2.63

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.
Files changed (94) hide show
  1. package/es/components/AuthButton/index.d.ts +6 -6
  2. package/es/components/BackHeader/index.d.ts +25 -25
  3. package/es/components/Captcha/index.d.ts +8 -8
  4. package/es/components/CoralButton/index.d.ts +10 -10
  5. package/es/components/CreateForm/index.d.ts +56 -56
  6. package/es/components/CustomPagination/index.d.ts +15 -15
  7. package/es/components/DynamicForm/index.d.ts +102 -102
  8. package/es/components/DynamicForm/myCascader/index.d.ts +16 -16
  9. package/es/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  10. package/es/components/DynamicForm/myRadio/index.d.ts +19 -19
  11. package/es/components/DynamicForm/mySelect/index.d.ts +16 -16
  12. package/es/components/DynamicForm/myUpload/index.d.ts +16 -16
  13. package/es/components/DynamicForm/radioCard/index.d.ts +12 -12
  14. package/es/components/DynamicForm/selectModel/index.d.ts +22 -22
  15. package/es/components/DynamicForm/useDynamicForm.d.ts +32 -32
  16. package/es/components/EditTable/index.d.ts +17 -17
  17. package/es/components/Loading/index.d.ts +4 -4
  18. package/es/components/LoopSlide/index.css +32 -32
  19. package/es/components/LoopSlide/index.d.ts +17 -17
  20. package/es/components/SearchTable/index.d.ts +30 -30
  21. package/es/components/Upload/index.d.ts +14 -14
  22. package/es/components/VirtualTable/index.d.ts +3 -3
  23. package/es/components/WorkFlowNode/index.d.ts +14 -14
  24. package/es/components/common/403.d.ts +2 -2
  25. package/es/components/common/404.d.ts +2 -2
  26. package/es/hooks/useCaptcha.d.ts +11 -11
  27. package/es/hooks/useChangePwd.d.ts +13 -13
  28. package/es/hooks/useConfig.d.ts +8 -8
  29. package/es/hooks/useDetailRender.d.ts +19 -19
  30. package/es/hooks/useRemember.d.ts +9 -9
  31. package/es/hooks/useRowSelection.d.ts +20 -20
  32. package/es/index.d.ts +1 -1
  33. package/es/main.d.ts +28 -28
  34. package/es/utils/aes.d.ts +7 -7
  35. package/es/utils/download.d.ts +9 -9
  36. package/es/utils/filetype.d.ts +35 -35
  37. package/es/utils/formRules.d.ts +55 -55
  38. package/es/utils/hmacSHA512.d.ts +6 -6
  39. package/es/utils/hmacSM3.d.ts +20 -20
  40. package/es/utils/image-compression/UPNG.d.ts +142 -142
  41. package/es/utils/image-compression/image.d.ts +8 -8
  42. package/es/utils/image-compression/index.d.ts +9 -9
  43. package/es/utils/index.d.ts +15 -15
  44. package/es/utils/method.d.ts +48 -48
  45. package/es/utils/verify-code.d.ts +27 -27
  46. package/es/vite-env.d.ts +14 -14
  47. package/lib/components/AuthButton/index.d.ts +6 -6
  48. package/lib/components/BackHeader/index.d.ts +25 -25
  49. package/lib/components/Captcha/index.d.ts +8 -8
  50. package/lib/components/CoralButton/index.d.ts +10 -10
  51. package/lib/components/CreateForm/index.d.ts +56 -56
  52. package/lib/components/CustomPagination/index.d.ts +15 -15
  53. package/lib/components/DynamicForm/index.d.ts +102 -102
  54. package/lib/components/DynamicForm/myCascader/index.d.ts +16 -16
  55. package/lib/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  56. package/lib/components/DynamicForm/myRadio/index.d.ts +19 -19
  57. package/lib/components/DynamicForm/mySelect/index.d.ts +16 -16
  58. package/lib/components/DynamicForm/myUpload/index.d.ts +16 -16
  59. package/lib/components/DynamicForm/radioCard/index.d.ts +12 -12
  60. package/lib/components/DynamicForm/selectModel/index.d.ts +22 -22
  61. package/lib/components/DynamicForm/useDynamicForm.d.ts +32 -32
  62. package/lib/components/EditTable/index.d.ts +17 -17
  63. package/lib/components/Loading/index.d.ts +4 -4
  64. package/lib/components/LoopSlide/index.css +32 -32
  65. package/lib/components/LoopSlide/index.d.ts +17 -17
  66. package/lib/components/SearchTable/index.d.ts +30 -30
  67. package/lib/components/Upload/index.d.ts +14 -14
  68. package/lib/components/VirtualTable/index.d.ts +3 -3
  69. package/lib/components/WorkFlowNode/index.d.ts +14 -14
  70. package/lib/components/common/403.d.ts +2 -2
  71. package/lib/components/common/404.d.ts +2 -2
  72. package/lib/hooks/useCaptcha.d.ts +11 -11
  73. package/lib/hooks/useChangePwd.d.ts +13 -13
  74. package/lib/hooks/useConfig.d.ts +8 -8
  75. package/lib/hooks/useDetailRender.d.ts +19 -19
  76. package/lib/hooks/useRemember.d.ts +9 -9
  77. package/lib/hooks/useRowSelection.d.ts +20 -20
  78. package/lib/index.d.ts +1 -1
  79. package/lib/main.d.ts +28 -28
  80. package/lib/utils/aes.d.ts +7 -7
  81. package/lib/utils/download.d.ts +9 -9
  82. package/lib/utils/filetype.d.ts +35 -35
  83. package/lib/utils/formRules.d.ts +55 -55
  84. package/lib/utils/hmacSHA512.d.ts +6 -6
  85. package/lib/utils/hmacSM3.d.ts +20 -20
  86. package/lib/utils/image-compression/UPNG.d.ts +142 -142
  87. package/lib/utils/image-compression/image.d.ts +8 -8
  88. package/lib/utils/image-compression/index.d.ts +9 -9
  89. package/lib/utils/index.d.ts +15 -15
  90. package/lib/utils/method.d.ts +48 -48
  91. package/lib/utils/verify-code.d.ts +27 -27
  92. package/lib/vite-env.d.ts +14 -14
  93. package/package.json +49 -49
  94. package/readme.md +25 -25
@@ -1,102 +1,102 @@
1
- import dayjs from 'dayjs';
2
-
3
- export interface IformConfigItem {
4
- xh: number;
5
- asid: string;
6
- astype: number;
7
- tname: string;
8
- attrid: string;
9
- attrname: string;
10
- attrtype: number;
11
- info: string;
12
- info_base64: number;
13
- createtime: string;
14
- attrvalue: any;
15
- serialnum: number;
16
- children: IformConfigItem[];
17
- json: Ijson;
18
- }
19
-
20
- export interface Ijson {
21
- input: InputType;
22
- length?: number;
23
- 'label-value'?: string; //代表属性固定取值,并且不可在实例化时修改
24
- hide: true;
25
- 'upload-accept'?: string;
26
- 'upload-max-count'?: number;
27
- 'upload-size'?: number;
28
- //代表弹窗标题
29
- 'modal-caption'?: string;
30
- //代表弹窗宽度
31
- 'modal-width'?: number;
32
- //代表弹窗高度
33
- 'modal-height'?: number;
34
- //代表弹窗列表表头内容
35
- 'modal-field-list'?: { [key: string]: string }; // 键值对,键为属性名,值为属性显示的列表表头内容
36
- inputType?: 'local' | 'dictionary' | 'url';
37
- data?: string[];
38
- //代表调用【字典管理系统】的值
39
- classify?: number | string | undefined;
40
- //代表调用字典对应的归类名 ID
41
- //代表从"action-url"从获取选择的数据
42
- 'action-url'?: string;
43
- //代表执行一个动作的 UCE 的 url
44
- 'key-field'?: { list: string[]; delimiter: string };
45
- default?: string | number | boolean | null | undefined | dayjs.Dayjs;
46
- //代表属性默认值,如果没配置或空着,则代表没有默认值
47
- instruction?: '';
48
- //代表在实例化时对属性的填写说明,会作为提示语显示在属性名称旁
49
- 'instruction-color'?: '#000000';
50
- //代表在实例化时对属性的填写说明,字体颜色的配置,如果不配置默认#333333
51
- must?: true;
52
- //代表属性值是否必填,true 为必填、false 为非必填,如果没配置则默认为 false
53
- 'cascader-delimiter'?: string;
54
- options?: { label: string; value: string | number }[];
55
- format?: string;
56
- }
57
-
58
- // 定义支持的输入类型枚举
59
- export type InputType =
60
- | 'text'
61
- | 'textarea'
62
- | 'number'
63
- | 'select'
64
- | 'mult-select'
65
- | 'modal-select'
66
- | 'modal-mult-select'
67
- | 'date-picker'
68
- | 'time-picker'
69
- | 'week-picker'
70
- | 'month-picker'
71
- | 'quarter-picker'
72
- | 'year-picker'
73
- | 'second-picker'
74
- | 'image'
75
- | 'file'
76
- | 'video'
77
- | 'audio'
78
- | 'label'
79
- | 'radio'
80
- | 'checkbox'
81
- | 'cascader'
82
- | string;
83
-
84
- // 定义文件上传值类型
85
- export interface CustomUploadFile {
86
- FilePath: string;
87
- FileName: string;
88
- FileId: string;
89
- url?: string;
90
- name?: string;
91
- uid?: string;
92
- }
93
-
94
- export interface IformItemStyle {
95
- type: InputType;
96
- style?: React.CSSProperties;
97
- }
98
-
99
- export interface Iselect {
100
- label: string;
101
- value: string | number;
102
- }
1
+ import dayjs from 'dayjs';
2
+
3
+ export interface IformConfigItem {
4
+ xh: number;
5
+ asid: string;
6
+ astype: number;
7
+ tname: string;
8
+ attrid: string;
9
+ attrname: string;
10
+ attrtype: number;
11
+ info: string;
12
+ info_base64: number;
13
+ createtime: string;
14
+ attrvalue: any;
15
+ serialnum: number;
16
+ children: IformConfigItem[];
17
+ json: Ijson;
18
+ }
19
+
20
+ export interface Ijson {
21
+ input: InputType;
22
+ length?: number;
23
+ 'label-value'?: string; //代表属性固定取值,并且不可在实例化时修改
24
+ hide: true;
25
+ 'upload-accept'?: string;
26
+ 'upload-max-count'?: number;
27
+ 'upload-size'?: number;
28
+ //代表弹窗标题
29
+ 'modal-caption'?: string;
30
+ //代表弹窗宽度
31
+ 'modal-width'?: number;
32
+ //代表弹窗高度
33
+ 'modal-height'?: number;
34
+ //代表弹窗列表表头内容
35
+ 'modal-field-list'?: { [key: string]: string }; // 键值对,键为属性名,值为属性显示的列表表头内容
36
+ inputType?: 'local' | 'dictionary' | 'url';
37
+ data?: string[];
38
+ //代表调用【字典管理系统】的值
39
+ classify?: number | string | undefined;
40
+ //代表调用字典对应的归类名 ID
41
+ //代表从"action-url"从获取选择的数据
42
+ 'action-url'?: string;
43
+ //代表执行一个动作的 UCE 的 url
44
+ 'key-field'?: { list: string[]; delimiter: string };
45
+ default?: string | number | boolean | null | undefined | dayjs.Dayjs;
46
+ //代表属性默认值,如果没配置或空着,则代表没有默认值
47
+ instruction?: '';
48
+ //代表在实例化时对属性的填写说明,会作为提示语显示在属性名称旁
49
+ 'instruction-color'?: '#000000';
50
+ //代表在实例化时对属性的填写说明,字体颜色的配置,如果不配置默认#333333
51
+ must?: true;
52
+ //代表属性值是否必填,true 为必填、false 为非必填,如果没配置则默认为 false
53
+ 'cascader-delimiter'?: string;
54
+ options?: { label: string; value: string | number }[];
55
+ format?: string;
56
+ }
57
+
58
+ // 定义支持的输入类型枚举
59
+ export type InputType =
60
+ | 'text'
61
+ | 'textarea'
62
+ | 'number'
63
+ | 'select'
64
+ | 'mult-select'
65
+ | 'modal-select'
66
+ | 'modal-mult-select'
67
+ | 'date-picker'
68
+ | 'time-picker'
69
+ | 'week-picker'
70
+ | 'month-picker'
71
+ | 'quarter-picker'
72
+ | 'year-picker'
73
+ | 'second-picker'
74
+ | 'image'
75
+ | 'file'
76
+ | 'video'
77
+ | 'audio'
78
+ | 'label'
79
+ | 'radio'
80
+ | 'checkbox'
81
+ | 'cascader'
82
+ | string;
83
+
84
+ // 定义文件上传值类型
85
+ export interface CustomUploadFile {
86
+ FilePath: string;
87
+ FileName: string;
88
+ FileId: string;
89
+ url?: string;
90
+ name?: string;
91
+ uid?: string;
92
+ }
93
+
94
+ export interface IformItemStyle {
95
+ type: InputType;
96
+ style?: React.CSSProperties;
97
+ }
98
+
99
+ export interface Iselect {
100
+ label: string;
101
+ value: string | number;
102
+ }
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- import { AxiosResponse } from 'axios';
3
- interface MyCascaderProps {
4
- item: any;
5
- readonly?: boolean;
6
- value?: string[];
7
- onChange?: (value: any) => void;
8
- style?: React.CSSProperties;
9
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
10
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
11
- interfaceTypeDict: string;
12
- actionUrlKey: string;
13
- actionUrlExtraParams: object;
14
- }
15
- declare const MyCascader: ({ item, readonly, value, onChange, style, commonRequestWidthParams, commonRequest, interfaceTypeDict, actionUrlKey, actionUrlExtraParams, }: MyCascaderProps) => import("react/jsx-runtime").JSX.Element;
16
- export default MyCascader;
1
+ /// <reference types="react" />
2
+ import { AxiosResponse } from 'axios';
3
+ interface MyCascaderProps {
4
+ item: any;
5
+ readonly?: boolean;
6
+ value?: string[];
7
+ onChange?: (value: any) => void;
8
+ style?: React.CSSProperties;
9
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
10
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
11
+ interfaceTypeDict: string;
12
+ actionUrlKey: string;
13
+ actionUrlExtraParams: object;
14
+ }
15
+ declare const MyCascader: ({ item, readonly, value, onChange, style, commonRequestWidthParams, commonRequest, interfaceTypeDict, actionUrlKey, actionUrlExtraParams, }: MyCascaderProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default MyCascader;
@@ -1,18 +1,18 @@
1
- import { AxiosResponse } from 'axios';
2
- import { Ijson } from '../index.d';
3
- export interface IMYRadio {
4
- value?: (string | number)[];
5
- onChange?: (checkedValue: any[]) => void;
6
- item: Ijson;
7
- readonly?: boolean;
8
- options?: any;
9
- radioAlign?: 'vertical' | 'horizontal';
10
- handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
11
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
12
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
13
- interfaceTypeDict: string;
14
- actionUrlKey: string;
15
- actionUrlExtraParams: object;
16
- }
17
- declare const MyCheckbox: (props: IMYRadio) => import("react/jsx-runtime").JSX.Element;
18
- export default MyCheckbox;
1
+ import { AxiosResponse } from 'axios';
2
+ import { Ijson } from '../index.d';
3
+ export interface IMYRadio {
4
+ value?: (string | number)[];
5
+ onChange?: (checkedValue: any[]) => void;
6
+ item: Ijson;
7
+ readonly?: boolean;
8
+ options?: any;
9
+ radioAlign?: 'vertical' | 'horizontal';
10
+ handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
11
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
12
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
13
+ interfaceTypeDict: string;
14
+ actionUrlKey: string;
15
+ actionUrlExtraParams: object;
16
+ }
17
+ declare const MyCheckbox: (props: IMYRadio) => import("react/jsx-runtime").JSX.Element;
18
+ export default MyCheckbox;
@@ -1,19 +1,19 @@
1
- import { RadioChangeEvent } from 'antd';
2
- import { AxiosResponse } from 'axios';
3
- import { Ijson } from '../index.d';
4
- export interface IMYRadio {
5
- onChange?: (e: RadioChangeEvent) => void;
6
- value?: string | number;
7
- item: Ijson;
8
- readonly?: boolean;
9
- options?: any;
10
- radioAlign?: 'vertical' | 'horizontal';
11
- handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
12
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
13
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
14
- interfaceTypeDict: string;
15
- actionUrlKey: string;
16
- actionUrlExtraParams: object;
17
- }
18
- declare const MyRadio: (props: IMYRadio) => import("react/jsx-runtime").JSX.Element;
19
- export default MyRadio;
1
+ import { RadioChangeEvent } from 'antd';
2
+ import { AxiosResponse } from 'axios';
3
+ import { Ijson } from '../index.d';
4
+ export interface IMYRadio {
5
+ onChange?: (e: RadioChangeEvent) => void;
6
+ value?: string | number;
7
+ item: Ijson;
8
+ readonly?: boolean;
9
+ options?: any;
10
+ radioAlign?: 'vertical' | 'horizontal';
11
+ handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
12
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
13
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
14
+ interfaceTypeDict: string;
15
+ actionUrlKey: string;
16
+ actionUrlExtraParams: object;
17
+ }
18
+ declare const MyRadio: (props: IMYRadio) => import("react/jsx-runtime").JSX.Element;
19
+ export default MyRadio;
@@ -1,16 +1,16 @@
1
- import { Ijson } from '../index.d';
2
- import { AxiosResponse } from 'axios';
3
- declare const MySelect: ({ item, readonly, style, handleUrlOptions, commonRequestWidthParams, commonRequest, value, onChange, interfaceTypeDict, actionUrlKey, actionUrlExtraParams, }: {
4
- item: Ijson;
5
- readonly?: boolean | undefined;
6
- style?: any;
7
- handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
8
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
9
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
10
- value: string | number | (string | number)[];
11
- onChange: (val: string | number | (string | number)[]) => void;
12
- interfaceTypeDict: string;
13
- actionUrlKey: string;
14
- actionUrlExtraParams: object;
15
- }) => import("react/jsx-runtime").JSX.Element;
16
- export default MySelect;
1
+ import { Ijson } from '../index.d';
2
+ import { AxiosResponse } from 'axios';
3
+ declare const MySelect: ({ item, readonly, style, handleUrlOptions, commonRequestWidthParams, commonRequest, value, onChange, interfaceTypeDict, actionUrlKey, actionUrlExtraParams, }: {
4
+ item: Ijson;
5
+ readonly?: boolean | undefined;
6
+ style?: any;
7
+ handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
8
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
9
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
10
+ value: string | number | (string | number)[];
11
+ onChange: (val: string | number | (string | number)[]) => void;
12
+ interfaceTypeDict: string;
13
+ actionUrlKey: string;
14
+ actionUrlExtraParams: object;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ export default MySelect;
@@ -1,16 +1,16 @@
1
- import { UploadFile } from 'antd/es/upload/interface';
2
- import { Ijson } from '../index.d';
3
- interface IMYUpload {
4
- action?: string;
5
- onChange?: (checkedValue: any[]) => void;
6
- onRemove?: (file: UploadFile) => void;
7
- item: Ijson;
8
- relatedid?: string;
9
- readonly?: boolean;
10
- list?: UploadFile[];
11
- uploadText?: string;
12
- uploadType?: string;
13
- relatedidKey: string;
14
- }
15
- declare const MyUpload: (props: IMYUpload) => import("react/jsx-runtime").JSX.Element;
16
- export default MyUpload;
1
+ import { UploadFile } from 'antd/es/upload/interface';
2
+ import { Ijson } from '../index.d';
3
+ interface IMYUpload {
4
+ action?: string;
5
+ onChange?: (checkedValue: any[]) => void;
6
+ onRemove?: (file: UploadFile) => void;
7
+ item: Ijson;
8
+ relatedid?: string;
9
+ readonly?: boolean;
10
+ list?: UploadFile[];
11
+ uploadText?: string;
12
+ uploadType?: string;
13
+ relatedidKey: string;
14
+ }
15
+ declare const MyUpload: (props: IMYUpload) => import("react/jsx-runtime").JSX.Element;
16
+ export default MyUpload;
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- import { AxiosResponse } from 'axios';
3
- interface RadioCardProps {
4
- item: any;
5
- readonly?: boolean;
6
- value?: string;
7
- onChange?: (value: any) => void;
8
- style?: React.CSSProperties;
9
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
10
- }
11
- declare const RadioCard: ({ item, readonly, value, onChange, style, commonRequestWidthParams }: RadioCardProps) => import("react/jsx-runtime").JSX.Element;
12
- export default RadioCard;
1
+ /// <reference types="react" />
2
+ import { AxiosResponse } from 'axios';
3
+ interface RadioCardProps {
4
+ item: any;
5
+ readonly?: boolean;
6
+ value?: string;
7
+ onChange?: (value: any) => void;
8
+ style?: React.CSSProperties;
9
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
10
+ }
11
+ declare const RadioCard: ({ item, readonly, value, onChange, style, commonRequestWidthParams }: RadioCardProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default RadioCard;
@@ -1,22 +1,22 @@
1
- import React from 'react';
2
- import { AxiosResponse } from 'axios';
3
- import { Ijson } from '../index.d';
4
- interface SelectModelProps {
5
- item: Ijson;
6
- onSure: (value: string) => void;
7
- value: string;
8
- disabled: boolean;
9
- style?: React.CSSProperties;
10
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
11
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
12
- CustomModalComponent?: React.FC<ICustomModal>;
13
- }
14
- declare function SelectModel(props: SelectModelProps): import("react/jsx-runtime").JSX.Element;
15
- /**
16
- *
17
- * @param selectedRows 选中的行数据
18
- * @param attributeEnrollFormat 配置信息
19
- * @returns 构建后的字符串
20
- */
21
- export declare function buildValueFromSelectedRows(selectedRows: any[], attributeEnrollFormat: Ijson): Promise<string>;
22
- export default SelectModel;
1
+ import React from 'react';
2
+ import { AxiosResponse } from 'axios';
3
+ import { Ijson } from '../index.d';
4
+ interface SelectModelProps {
5
+ item: Ijson;
6
+ onSure: (value: string) => void;
7
+ value: string;
8
+ disabled: boolean;
9
+ style?: React.CSSProperties;
10
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
11
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
12
+ CustomModalComponent?: React.FC<ICustomModal>;
13
+ }
14
+ declare function SelectModel(props: SelectModelProps): import("react/jsx-runtime").JSX.Element;
15
+ /**
16
+ *
17
+ * @param selectedRows 选中的行数据
18
+ * @param attributeEnrollFormat 配置信息
19
+ * @returns 构建后的字符串
20
+ */
21
+ export declare function buildValueFromSelectedRows(selectedRows: any[], attributeEnrollFormat: Ijson): Promise<string>;
22
+ export default SelectModel;
@@ -1,32 +1,32 @@
1
- /// <reference types="react" />
2
- import { IformConfigItem, IformItemStyle } from './index.d';
3
- import { AxiosResponse } from 'axios';
4
- import { FormInstance, UploadFile } from 'antd';
5
- interface IDynamicFormProps {
6
- commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
7
- commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
8
- uploadAction: (PageName?: string | undefined) => string;
9
- formConfig?: IformConfigItem[];
10
- setFormConfig?: (config: IformConfigItem[]) => void;
11
- updateDelFileList: (file: UploadFile) => void;
12
- interfaceTypeChildren?: string;
13
- interfaceTypeDict: string;
14
- relatedidKey: string;
15
- actionUrlKey: string;
16
- actionUrlExtraParams: object;
17
- CustomModalComponent?: React.FC<ICustomModal>;
18
- }
19
- declare function useDynamicForm(props: IDynamicFormProps): {
20
- handleRenderItem: ({ item, readonly, colNum, instructionShowMode, relatedid, form, defaultWidth, formItemStyle, radioAlign, }: {
21
- item: IformConfigItem;
22
- readonly: boolean;
23
- colNum: number;
24
- instructionShowMode?: "flex" | "icon" | undefined;
25
- relatedid?: string | undefined;
26
- form: FormInstance;
27
- defaultWidth?: number | undefined;
28
- formItemStyle: IformItemStyle[] | undefined;
29
- radioAlign?: "horizontal" | "vertical" | undefined;
30
- }) => import("react/jsx-runtime").JSX.Element | null;
31
- };
32
- export default useDynamicForm;
1
+ /// <reference types="react" />
2
+ import { IformConfigItem, IformItemStyle } from './index.d';
3
+ import { AxiosResponse } from 'axios';
4
+ import { FormInstance, UploadFile } from 'antd';
5
+ interface IDynamicFormProps {
6
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
7
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
8
+ uploadAction: (PageName?: string | undefined) => string;
9
+ formConfig?: IformConfigItem[];
10
+ setFormConfig?: (config: IformConfigItem[]) => void;
11
+ updateDelFileList: (file: UploadFile) => void;
12
+ interfaceTypeChildren?: string;
13
+ interfaceTypeDict: string;
14
+ relatedidKey: string;
15
+ actionUrlKey: string;
16
+ actionUrlExtraParams: object;
17
+ CustomModalComponent?: React.FC<ICustomModal>;
18
+ }
19
+ declare function useDynamicForm(props: IDynamicFormProps): {
20
+ handleRenderItem: ({ item, readonly, colNum, instructionShowMode, relatedid, form, defaultWidth, formItemStyle, radioAlign, }: {
21
+ item: IformConfigItem;
22
+ readonly: boolean;
23
+ colNum: number;
24
+ instructionShowMode?: "flex" | "icon" | undefined;
25
+ relatedid?: string | undefined;
26
+ form: FormInstance;
27
+ defaultWidth?: number | undefined;
28
+ formItemStyle: IformItemStyle[] | undefined;
29
+ radioAlign?: "horizontal" | "vertical" | undefined;
30
+ }) => import("react/jsx-runtime").JSX.Element | null;
31
+ };
32
+ export default useDynamicForm;
@@ -1,17 +1,17 @@
1
- import { TableProps } from "antd";
2
- import { Rule } from "antd/es/form";
3
- import { ColumnType } from "antd/es/table";
4
- import { ValueProps, ValueType } from "../CreateForm";
5
- export type ColumnsType<RecordType> = ColumnType<RecordType> & {
6
- editable?: boolean;
7
- rules?: Rule[];
8
- initialValue?: any;
9
- type?: ValueType;
10
- valueProps?: ValueProps<RecordType>;
11
- };
12
- export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>, "columns" | "onChange"> {
13
- columns: ColumnsType<RecordType>[];
14
- onChange?: (row: RecordType) => void;
15
- }
16
- declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
17
- export default EditTable;
1
+ import { TableProps } from "antd";
2
+ import { Rule } from "antd/es/form";
3
+ import { ColumnType } from "antd/es/table";
4
+ import { ValueProps, ValueType } from "../CreateForm";
5
+ export type ColumnsType<RecordType> = ColumnType<RecordType> & {
6
+ editable?: boolean;
7
+ rules?: Rule[];
8
+ initialValue?: any;
9
+ type?: ValueType;
10
+ valueProps?: ValueProps<RecordType>;
11
+ };
12
+ export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>, "columns" | "onChange"> {
13
+ columns: ColumnsType<RecordType>[];
14
+ onChange?: (row: RecordType) => void;
15
+ }
16
+ declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
17
+ export default EditTable;
@@ -1,4 +1,4 @@
1
- declare const Loading: () => {
2
- close: () => void;
3
- };
4
- export default Loading;
1
+ declare const Loading: () => {
2
+ close: () => void;
3
+ };
4
+ export default Loading;
@@ -1,32 +1,32 @@
1
- .LoopSlide-module_wrapper_dde90 {
2
- position: relative;
3
- width: 100%;
4
- overflow: hidden;
5
- }
6
-
7
- .LoopSlide-module_container_be123 {
8
- position: relative;
9
- width: 100%;
10
- height: 100%;
11
- --content-height: 0px;
12
- animation: LoopSlide-module_scrollContent_36ed7 linear infinite;
13
- backface-visibility: hidden;
14
- -webkit-font-smoothing: antialiased;
15
- image-rendering: -webkit-optimize-contrast;
16
- }
17
-
18
- .LoopSlide-module_content_f392a {
19
- position: relative;
20
- width: 100%;
21
- padding: 1px 0;
22
- box-sizing: border-box;
23
- }
24
-
25
- @keyframes LoopSlide-module_scrollContent_36ed7 {
26
- 0% {
27
- transform: translateY(0);
28
- }
29
- 100% {
30
- transform: translateY(calc(-1 * var(--content-height)));
31
- }
32
- }
1
+ .LoopSlide-module_wrapper_dde90 {
2
+ position: relative;
3
+ width: 100%;
4
+ overflow: hidden;
5
+ }
6
+
7
+ .LoopSlide-module_container_be123 {
8
+ position: relative;
9
+ width: 100%;
10
+ height: 100%;
11
+ --content-height: 0px;
12
+ animation: LoopSlide-module_scrollContent_36ed7 linear infinite;
13
+ backface-visibility: hidden;
14
+ -webkit-font-smoothing: antialiased;
15
+ image-rendering: -webkit-optimize-contrast;
16
+ }
17
+
18
+ .LoopSlide-module_content_f392a {
19
+ position: relative;
20
+ width: 100%;
21
+ padding: 1px 0;
22
+ box-sizing: border-box;
23
+ }
24
+
25
+ @keyframes LoopSlide-module_scrollContent_36ed7 {
26
+ 0% {
27
+ transform: translateY(0);
28
+ }
29
+ 100% {
30
+ transform: translateY(calc(-1 * var(--content-height)));
31
+ }
32
+ }