@hzab/form-render 1.7.18 → 1.7.19

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 (98) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/LICENSE +21 -0
  3. package/dist/common/date-utils.d.ts +1 -0
  4. package/dist/common/event.d.ts +5 -0
  5. package/dist/common/formily-utils.d.ts +54 -0
  6. package/dist/common/global-props-context.d.ts +8 -0
  7. package/dist/common/location-utils.d.ts +6 -0
  8. package/dist/common/schema-handler.d.ts +90 -0
  9. package/dist/common/schema-merge.d.ts +12 -0
  10. package/dist/components/ArrayBase/index.d.ts +75 -0
  11. package/dist/components/ArrayBase/style.d.ts +2 -0
  12. package/dist/components/ArrayCards/index.d.ts +13 -0
  13. package/dist/components/ArrayCards/style.d.ts +4 -0
  14. package/dist/components/ArrayTable/index.d.ts +51 -0
  15. package/dist/components/ArrayTable/style.d.ts +7 -0
  16. package/dist/components/CheckboxWithTip/index.d.ts +15 -0
  17. package/dist/components/DatePicker/index.d.ts +5 -0
  18. package/dist/components/LocationListPicker/components/AddrList/index.d.ts +3 -0
  19. package/dist/components/LocationListPicker/components/Popup/index.d.ts +15 -0
  20. package/dist/components/LocationListPicker/index.d.ts +3 -0
  21. package/dist/components/LocationPicker/Map/AMap/common/loader.d.ts +2 -0
  22. package/dist/components/LocationPicker/Map/AMap/common/utils.d.ts +130 -0
  23. package/dist/components/LocationPicker/common/utils.d.ts +19 -0
  24. package/dist/components/LocationPicker/components/ModalContent/index.d.ts +3 -0
  25. package/dist/components/LocationPicker/components/Notice/index.d.ts +2 -0
  26. package/dist/components/LocationPicker/components/PickerInfo/index.d.ts +3 -0
  27. package/dist/components/LocationPicker/components/ResInfo/index.d.ts +8 -0
  28. package/dist/components/LocationPicker/index.d.ts +3 -0
  29. package/dist/components/LocationPicker/servers/index.d.ts +21 -0
  30. package/dist/components/PersonnelSelect/index.d.ts +6 -0
  31. package/dist/components/PersonnelSelect/type.d.ts +88 -0
  32. package/dist/components/RadioGroupWithTip/index.d.ts +14 -0
  33. package/dist/components/RichEditor/components/handleMobileRem/index.d.ts +3 -0
  34. package/dist/components/RichEditor/components/handleMobileVw/index.d.ts +3 -0
  35. package/dist/components/RichEditor/index.d.ts +32 -0
  36. package/dist/components/Text/index.d.ts +9 -0
  37. package/dist/components/TreeCheckbox/common/utils.d.ts +74 -0
  38. package/dist/components/TreeCheckbox/components/CheckboxTable/index.d.ts +2 -0
  39. package/dist/components/TreeCheckbox/components/Render/index.d.ts +2 -0
  40. package/dist/components/TreeCheckbox/components/TabsRender/index.d.ts +2 -0
  41. package/dist/components/TreeCheckbox/index.d.ts +3 -0
  42. package/dist/components/Upload/common/OfflineUpload.d.ts +3 -0
  43. package/dist/components/Upload/common/checkFileType.d.ts +3 -0
  44. package/dist/components/Upload/common/customRequest.d.ts +32 -0
  45. package/dist/components/Upload/common/fileName.d.ts +3 -0
  46. package/dist/components/Upload/common/handleIOFileList.d.ts +133 -0
  47. package/dist/components/Upload/common/nanoid.d.ts +2 -0
  48. package/dist/components/Upload/components/Image/index.d.ts +3 -0
  49. package/dist/components/Upload/components/ItemList/ItemRender.d.ts +2 -0
  50. package/dist/components/Upload/components/ItemList/index.d.ts +2 -0
  51. package/dist/components/Upload/components/PreviewModal/index.d.ts +5 -0
  52. package/dist/components/Upload/components/PreviewModal/previewRender.d.ts +12 -0
  53. package/dist/components/Upload/index.d.ts +2 -0
  54. package/dist/components/UserSelect/index.d.ts +29 -0
  55. package/dist/components/index.d.ts +14 -0
  56. package/dist/globalConfig.d.ts +6 -0
  57. package/dist/index.cjs +9 -0
  58. package/dist/index.css +2 -0
  59. package/dist/index.d.ts +7 -0
  60. package/dist/index.js +3227 -0
  61. package/package.json +79 -72
  62. package/src/common/schema-handler.ts +2 -2
  63. package/src/components/ArrayBase/index.tsx +7 -5
  64. package/src/components/ArrayCards/index.tsx +5 -4
  65. package/src/components/ArrayTable/index.tsx +9 -7
  66. package/src/components/DatePicker/index.tsx +1 -1
  67. package/src/components/LocationListPicker/components/Popup/index.tsx +1 -1
  68. package/src/components/LocationListPicker/index.tsx +3 -3
  69. package/src/components/LocationPicker/Map/AMap/common/utils.ts +9 -9
  70. package/src/components/LocationPicker/common/utils.ts +5 -5
  71. package/src/components/LocationPicker/components/ModalContent/index.tsx +5 -5
  72. package/src/components/PersonnelSelect/type.ts +1 -1
  73. package/src/components/RichEditor/components/handleMobileRem/index.tsx +2 -2
  74. package/src/components/RichEditor/components/handleMobileVw/index.tsx +1 -1
  75. package/src/components/RichEditor/index.tsx +1 -1
  76. package/src/components/TreeCheckbox/common/utils.ts +1 -1
  77. package/src/components/Upload/common/handleIOFileList.ts +2 -2
  78. package/src/components/Upload/uploader-input.jsx +1 -1
  79. package/src/components/Upload/uploader.jsx +6 -12
  80. package/src/components/UserSelect/index.tsx +1 -1
  81. package/src/global.d.ts +12 -0
  82. package/src/index.tsx +2 -2
  83. package/src/vite-env.d.ts +1 -0
  84. package/README.md +0 -330
  85. package/docs/README.md +0 -21
  86. package/docs/components/ArrayCards.md +0 -68
  87. package/docs/components/ArrayTable.md +0 -111
  88. package/docs/components/CheckboxWithTip.md +0 -43
  89. package/docs/components/DatePicker.md +0 -54
  90. package/docs/components/LocationListPicker.md +0 -41
  91. package/docs/components/LocationPicker.md +0 -67
  92. package/docs/components/PersonnelSelect.md +0 -77
  93. package/docs/components/RadioGroupWithTip.md +0 -43
  94. package/docs/components/RichEditor.md +0 -94
  95. package/docs/components/Text.md +0 -26
  96. package/docs/components/TreeCheckbox.md +0 -52
  97. package/docs/components/Upload.md +0 -77
  98. package/docs/components/UserSelect.md +0 -59
@@ -0,0 +1,88 @@
1
+ import type { SelectProps } from "antd/lib/select";
2
+ import type React from "react";
3
+ import type { AvatarProps } from "antd/lib/avatar";
4
+ export interface ScrollPagination {
5
+ pageNum: number;
6
+ pageSize: number;
7
+ current?: number;
8
+ hasMore?: boolean;
9
+ total?: number;
10
+ }
11
+ export type LabelValue = {
12
+ label: string;
13
+ value: string | number;
14
+ [key: string]: any;
15
+ };
16
+ interface BaseSelectProps extends Omit<SelectProps<any>, "options" | "children"> {
17
+ /**
18
+ * @title 请求函数
19
+ * */
20
+ loadData: (search: string, pagination: ScrollPagination) => Promise<{
21
+ list: LabelValue[];
22
+ pagination: ScrollPagination;
23
+ }>;
24
+ /**
25
+ * @title 查询函数
26
+ * */
27
+ searchData?: <T = Record<string, any>, U = any[]>(query: T) => Promise<U[]>;
28
+ /**
29
+ * @title 自定义列表项
30
+ * */
31
+ renderItem?: (item: LabelValue) => React.ReactNode;
32
+ /**
33
+ * @title 下拉框收起时是否清除数据
34
+ * */
35
+ isClearable?: boolean;
36
+ /**
37
+ * @title 分页参数
38
+ * */
39
+ initialPagination?: Partial<ScrollPagination>;
40
+ /**
41
+ * @title antd头像组件props
42
+ * */
43
+ avataProps?: AvatarProps;
44
+ mode: "multiple" | "tags";
45
+ /**
46
+ * @title 列表项内部展示的字段内容
47
+ * */
48
+ listItemConfigs?: {
49
+ label: string;
50
+ key: string;
51
+ }[];
52
+ /**
53
+ * @title 动态disabledKey
54
+ * */
55
+ disabledKey?: string;
56
+ /**
57
+ * @title 动态labelKey
58
+ * */
59
+ labelKey?: string;
60
+ /**
61
+ * @title 动态valueKey
62
+ * */
63
+ valueKey?: string;
64
+ /**
65
+ * @title disabledStyle
66
+ * */
67
+ disabledStyle?: (disabled: boolean) => React.CSSProperties;
68
+ /**
69
+ * @title 自定义列表项中的样式
70
+ * */
71
+ customItemNode?: React.ReactNode | Function;
72
+ }
73
+ export interface RemoteSelectMultipleProps extends BaseSelectProps {
74
+ mode: "multiple";
75
+ /**
76
+ * @title 下拉框值
77
+ * */
78
+ value?: LabelValue[] | Array<string | number>;
79
+ }
80
+ export interface RemoteSelectTagsProps extends BaseSelectProps {
81
+ mode: "tags";
82
+ /**
83
+ * @title 下拉框值
84
+ * */
85
+ value?: LabelValue | string | number;
86
+ }
87
+ export type RemoteSelectProps = RemoteSelectMultipleProps | RemoteSelectTagsProps;
88
+ export {};
@@ -0,0 +1,14 @@
1
+ import "./index.less";
2
+ export interface RadioTipItem {
3
+ value: string | number;
4
+ label: string;
5
+ desc: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface RadioGroupWithTipProps {
9
+ value?: string | number;
10
+ onChange?: (val: string | number) => void;
11
+ dataSource?: RadioTipItem[];
12
+ }
13
+ declare const RadioGroupWithTip: (props: RadioGroupWithTipProps) => import("react").JSX.Element;
14
+ export { RadioGroupWithTip };
@@ -0,0 +1,3 @@
1
+ import 'lib-flexible';
2
+ declare const HandleMobileRem: any;
3
+ export default HandleMobileRem;
@@ -0,0 +1,3 @@
1
+ import 'lib-flexible';
2
+ declare const HandleMobileVw: any;
3
+ export default HandleMobileVw;
@@ -0,0 +1,32 @@
1
+ import "@wangeditor/editor/dist/css/style.css";
2
+ import React from "react";
3
+ import { Editor as WangEditor } from "@wangeditor/editor-for-react";
4
+ import type { IEditorConfig, IToolbarConfig } from "@wangeditor/editor";
5
+ import "./index.less";
6
+ interface AnyObject {
7
+ [key: string]: any;
8
+ }
9
+ interface PropsType {
10
+ toolbarConfig?: Partial<IToolbarConfig>;
11
+ editorConfig?: Partial<IEditorConfig>;
12
+ ossOpt: AnyObject;
13
+ uploadParams: AnyObject;
14
+ height: string;
15
+ ossServerUrl: string;
16
+ ossUrl: string;
17
+ offlinePreviewUrl: string;
18
+ offlineServerUrl: string;
19
+ value: string;
20
+ onChange: any;
21
+ customRequest: any;
22
+ uploadMode: string;
23
+ zIndex: number;
24
+ }
25
+ export declare const RichEditor: React.MemoExoticComponent<import("@formily/react").ReactFC<PropsType>>;
26
+ declare const _default: React.ForwardRefExoticComponent<Partial<Omit<{
27
+ children?: React.ReactNode | undefined;
28
+ }, keyof PropsType> & PropsType & {
29
+ children?: React.ReactNode | undefined;
30
+ }> & React.RefAttributes<unknown>>;
31
+ export default _default;
32
+ export declare const Editor: typeof WangEditor;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<Partial<{
3
+ [x: string]: any;
4
+ value: any;
5
+ mode: any;
6
+ content: any;
7
+ className: any;
8
+ }>, "ref"> & React.RefAttributes<unknown>>;
9
+ export default _default;
@@ -0,0 +1,74 @@
1
+ export interface ITabTableDataOpt extends optT {
2
+ /**
3
+ * 展示 tab 的层级
4
+ */
5
+ tabLevel?: number;
6
+ /**
7
+ * 当前处理的层级
8
+ */
9
+ _level?: number;
10
+ fieldNames?: {
11
+ label?: string;
12
+ value?: string;
13
+ children?: string;
14
+ };
15
+ }
16
+ /**
17
+ * 处理数据,按需设置 tab、table 数据
18
+ * @param treeData 树数据数组
19
+ * @param opt 配置项
20
+ * @returns
21
+ */
22
+ export declare function getTabTableData(_treeData?: any[], opt?: ITabTableDataOpt): any[];
23
+ /**
24
+ * 处理树形数据,把树形数据方向转为多维数组,便于渲染
25
+ * @param params
26
+ * @returns
27
+ 如:
28
+ [{key:1, children:[{key:11},{key:12}]}, {key:2, children:[{key:21, children:[{key:211}]},{key:22},{key:23}]}]
29
+ 结果数组:
30
+ [1, 11, ]
31
+ [ , 12, ]
32
+ [2, 21, 211]
33
+ [ , 22, ]
34
+ [ , 23, ]
35
+ */
36
+ export declare function handleTreeToArray(treeData?: any[], opt?: any): any[];
37
+ export type optT = {
38
+ resList?: Array<any>;
39
+ preCol?: number;
40
+ mergeLeaf?: boolean;
41
+ mergeFullLeaf?: boolean;
42
+ level?: number;
43
+ fieldNames?: {
44
+ value?: string;
45
+ label?: string;
46
+ children?: string;
47
+ };
48
+ };
49
+ /**
50
+ * 处理树形数据,把树形数据方向转为多维数组,便于渲染
51
+ * @param params
52
+ * @returns
53
+ 如:
54
+ [{key:1, children:[{key:11},{key:12}]}, {key:2, children:[{key:21, children:[{key:211}]},{key:22},{key:23}]}]
55
+ 结果数组:
56
+ [1, 11, ]
57
+ [ , 12, ]
58
+ [2, 21, 211]
59
+ [ , 22, ]
60
+ [ , 23, ]
61
+ */
62
+ export declare function transformTreeData(treeData?: any[], opt?: optT): {
63
+ resList: any[];
64
+ maxCol: number;
65
+ maxRow: number;
66
+ };
67
+ /**
68
+ * 填充数组
69
+ * @param len
70
+ * @param arr
71
+ * @param opt
72
+ * @returns
73
+ */
74
+ export declare function fillArrByPush(len: any, arr?: any[], opt?: any): any[];
@@ -0,0 +1,2 @@
1
+ export declare const CheckboxTable: (props: any) => import("react").JSX.Element;
2
+ export default CheckboxTable;
@@ -0,0 +1,2 @@
1
+ export declare const Render: (props: any) => import("react").JSX.Element;
2
+ export default Render;
@@ -0,0 +1,2 @@
1
+ export declare const TabRender: (props: any) => import("react").JSX.Element;
2
+ export default TabRender;
@@ -0,0 +1,3 @@
1
+ import "./index.less";
2
+ export declare const TreeCheckbox: (props: any) => import("react").JSX.Element;
3
+ export default TreeCheckbox;
@@ -0,0 +1,3 @@
1
+ import { OfflineUpload } from "@hzab/utils/src/upload/OfflineUpload";
2
+ export * from "@hzab/utils/src/upload/OfflineUpload";
3
+ export default OfflineUpload;
@@ -0,0 +1,3 @@
1
+ export * from "@hzab/utils/src/file/fileType";
2
+ import { getFileTypeStr } from "@hzab/utils/src/file/fileType";
3
+ export declare const checkFileType: typeof getFileTypeStr;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 私有化部署文件上传
3
+ * @param opt
4
+ * @returns
5
+ */
6
+ export declare const getOfflineUploadRequest: (opt: any) => ({ action, data, file, filename, headers, method, onSuccess, onProgress, onError }: {
7
+ action: any;
8
+ data: any;
9
+ file: any;
10
+ filename: any;
11
+ headers: any;
12
+ method: any;
13
+ onSuccess: any;
14
+ onProgress: any;
15
+ onError: any;
16
+ }) => void;
17
+ /**
18
+ * 阿里云 oss 文件上传
19
+ * @param opt
20
+ * @returns
21
+ */
22
+ export declare const getOssUploadRequest: (opt: any) => ({ action, data, file, filename, headers, method, onSuccess, onProgress, onError }: {
23
+ action: any;
24
+ data: any;
25
+ file: any;
26
+ filename: any;
27
+ headers: any;
28
+ method: any;
29
+ onSuccess: any;
30
+ onProgress: any;
31
+ onError: any;
32
+ }) => void;
@@ -0,0 +1,3 @@
1
+ export * from "@hzab/utils/src/file/fileName";
2
+ import { getFileNameByFileObj, getFileNameObj, setFileNameObj, getValByKey } from "@hzab/utils/src/upload/uploadUtils";
3
+ export { getFileNameByFileObj, getFileNameObj, setFileNameObj, getValByKey };
@@ -0,0 +1,133 @@
1
+ import { mergePreviewConfig } from "@hzab/utils/src/upload/uploadUtils";
2
+ export { mergePreviewConfig };
3
+ /**
4
+ * 出入参归一化
5
+ * 统一成对象格式用于内部处理
6
+ {
7
+ }
8
+
9
+ */
10
+ /**
11
+ * 出入参数据子项处理配置项
12
+ */
13
+ export interface IFile {
14
+ uid?: string;
15
+ /** 唯一 id */
16
+ id: string;
17
+ /** 文件地址 */
18
+ url: string;
19
+ /** 存储的文件地址 */
20
+ storeUrl: string;
21
+ /** 存储的文件名称 */
22
+ name?: string;
23
+ /** 存储的文件名称 */
24
+ filename?: string;
25
+ /** 上传的文件名称 */
26
+ originalFilename: string;
27
+ /** 基础路径 */
28
+ basePath?: string;
29
+ /** 存储路径 */
30
+ path?: string;
31
+ /** 文件后缀 */
32
+ ext?: string;
33
+ /** 文件类型 */
34
+ contentType: string;
35
+ /** 上传平台 */
36
+ platform: string;
37
+ /** 文件预览地址 */
38
+ previewUrl?: string;
39
+ /** 文件类型 */
40
+ type: string;
41
+ /** 文件大小 */
42
+ size: number;
43
+ /** 原始 file 文件 */
44
+ originFileObj?: File;
45
+ /** 文件上传时间 */
46
+ createTime?: string;
47
+ /** 最后更新时间戳 */
48
+ lastModified?: number;
49
+ thumbUrl?: string;
50
+ }
51
+ /**
52
+ * 出入参数据处理配置项
53
+ */
54
+ export interface IHandlerOpt {
55
+ /** 列表数据模式:数组 | 字符串 */
56
+ listMode: "array" | "jsonStr" | "splitStr";
57
+ /** 字符串列表数据模式下的分隔符 */
58
+ split: string;
59
+ /** 子项数据模式: 格式化对象 | file 文件格式 | url 地址 | JSON 序列化字符串 */
60
+ itemMode: "object" | "file" | "url" | "jsonStr";
61
+ /** 预览配置参数 */
62
+ previewConfig?: object;
63
+ thumbnailParams?: string;
64
+ /** maxCount === 1 时是否去除数组,直接返回内容 */
65
+ isResRemoveArr: boolean;
66
+ /** 最大文件数量 */
67
+ maxCount: number;
68
+ }
69
+ /**
70
+ * 对象字符串转为对象
71
+ * @param objStr
72
+ */
73
+ export declare const objStrToObj: (objStr: any) => any;
74
+ /**
75
+ * 子项数据归一化
76
+ * 字符串:url、base64
77
+ * 对象:
78
+ * 统一成对象格式用于内部处理
79
+ */
80
+ export declare const handleInputItem: (data: any, opt: IHandlerOpt) => any;
81
+ /**
82
+ * fileList 数据归一化
83
+ * 统一成对象格式用于内部处理
84
+ */
85
+ export declare const handleInputFileList: (fileList: any, opt: IHandlerOpt) => any;
86
+ /**
87
+ * 子项数据归一化
88
+ * @param data
89
+ * @returns
90
+ */
91
+ export declare const formatItem: (data: any) => {
92
+ uid: any;
93
+ /** 唯一 id */
94
+ id: any;
95
+ /** 文件地址 */
96
+ url: any;
97
+ /** 存储的文件名称 */
98
+ name: any;
99
+ /** 存储的文件名称 */
100
+ filename: any;
101
+ /** 上传的文件名称 */
102
+ originalFilename: any;
103
+ /** 基础路径 */
104
+ basePath: any;
105
+ /** 存储路径 */
106
+ path: any;
107
+ /** 文件后缀 */
108
+ ext: any;
109
+ /** 文件类型 */
110
+ type: any;
111
+ /** 文件类型 */
112
+ contentType: any;
113
+ /** 文件大小 */
114
+ size: any;
115
+ /** 上传平台 */
116
+ platform: any;
117
+ /** 最后更新时间戳 */
118
+ lastModified: any;
119
+ /** 文件上传时间 */
120
+ createTime: any;
121
+ /** 源文件 */
122
+ originFileObj: File;
123
+ };
124
+ /**
125
+ * 出参子项归一化
126
+ * 根据配置,将 对象 处理成所需格式
127
+ */
128
+ export declare const handleUploadItem: (file: any, opt: IHandlerOpt) => any;
129
+ /**
130
+ * 出参 fileList 归一化
131
+ * 根据配置,将 对象 处理成所需格式
132
+ */
133
+ export declare const handleOutputFileList: (fileList: any, opt: IHandlerOpt) => any;
@@ -0,0 +1,2 @@
1
+ export * from "@hzab/utils/src/nanoid";
2
+ export declare const nanoid: (size?: number) => string;
@@ -0,0 +1,3 @@
1
+ import "./index.less";
2
+ declare function ImagePreviewer(props: any): import("react").JSX.Element;
3
+ export default ImagePreviewer;
@@ -0,0 +1,2 @@
1
+ export declare const ItemRender: (props: any) => import("react").JSX.Element;
2
+ export default ItemRender;
@@ -0,0 +1,2 @@
1
+ export declare const ItemList: (props: any) => import("react").JSX.Element;
2
+ export default ItemList;
@@ -0,0 +1,5 @@
1
+ import { hasPreviewRender, hasPreviewMedium } from "./previewRender";
2
+ import "./index.less";
3
+ export declare const PreviewModal: (props: any) => import("react").JSX.Element;
4
+ export { hasPreviewRender, hasPreviewMedium };
5
+ export default PreviewModal;
@@ -0,0 +1,12 @@
1
+ export declare const previewRenderEnum: {
2
+ video: typeof videoRender;
3
+ image: typeof imgRender;
4
+ audio: typeof audioRender;
5
+ };
6
+ export declare function hasPreviewRender(file: any): boolean;
7
+ export declare function hasPreviewMedium(accept: string): boolean;
8
+ export declare function getPreviewRender(file: any, accept: any): any;
9
+ export declare function getPreviewContent(file: any, accept: any): any;
10
+ export declare function videoRender(src: any): import("react").JSX.Element;
11
+ export declare function imgRender(src: any): import("react").JSX.Element;
12
+ export declare function audioRender(src: any): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const Upload: (props: any) => import("react").JSX.Element;
2
+ export default Upload;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { type AvatarProps } from "antd";
3
+ import type { SelectProps as AntdSelectProps } from "antd/lib/select";
4
+ type AvatarSize = AvatarProps["size"];
5
+ interface CustomOptionData {
6
+ label: string;
7
+ value: string | number;
8
+ avatar?: string;
9
+ phone?: string;
10
+ idCard?: string;
11
+ [key: string]: any;
12
+ }
13
+ interface UserSelectProps extends AntdSelectProps {
14
+ /**下拉列表数据 */
15
+ options: CustomOptionData[];
16
+ /**是否显示头像 */
17
+ isAvatar?: boolean;
18
+ /**头像大小 */
19
+ avatarSize: AvatarSize;
20
+ /**自定义展示key */
21
+ configKey?: {
22
+ phoneKey?: string;
23
+ idCardKey?: string;
24
+ };
25
+ /**自定义展示信息 */
26
+ InfoRender?: Function;
27
+ }
28
+ export declare const UserSelect: React.FC<UserSelectProps>;
29
+ export default UserSelect;
@@ -0,0 +1,14 @@
1
+ import Text from "./Text";
2
+ export * from "./ArrayCards";
3
+ export * from "./ArrayTable";
4
+ export * from "./Upload";
5
+ export * from "./UserSelect";
6
+ export * from "./PersonnelSelect";
7
+ export * from "./TreeCheckbox";
8
+ export * from "./DatePicker";
9
+ export * from "./LocationPicker";
10
+ export * from "./LocationListPicker";
11
+ export * from "./RichEditor";
12
+ export * from "./RadioGroupWithTip";
13
+ export * from "./CheckboxWithTip";
14
+ export { Text };
@@ -0,0 +1,6 @@
1
+ /** 获取全局配置(url、是否显示缩略图地址) */
2
+ export declare function getFormRenderPCGlobalServeConfig(): Record<string, any>;
3
+ /** 设置全局配置(url、是否显示缩略图地址)*/
4
+ export declare function setFormRenderPCGlobalServeConfigs(data: any): Record<string, any>;
5
+ /** 设置全局单个配置(url、是否显示缩略图地址)*/
6
+ export declare function setFormRenderPCGlobalServeConfig(key: any, data: any): Record<string, any>;