@flatbiz/antd 3.1.3 → 4.0.0
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.
- package/cjs/index.css +43 -122
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +59 -193
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
import { API, ModelType } from '@dimjs/model';
|
|
5
5
|
import { ButtonProps, CascaderProps, DrawerProps, DropdownProps, FormInstance, FormItemProps, InputNumberProps, InputProps, ModalProps, PopconfirmProps, RadioGroupProps, RowProps, SelectProps, SpaceProps, SwitchProps, TableProps, TimePickerProps, TimeRangePickerProps, TooltipProps, TreeProps, TreeSelectProps, UploadProps } from 'antd';
|
|
6
|
+
import { ConfigProviderProps } from 'antd/es/config-provider';
|
|
7
|
+
import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
|
|
6
8
|
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
7
|
-
import {
|
|
8
|
-
import { PickerDateProps, RangePickerDateProps } from 'antd/lib/date-picker/generatePicker';
|
|
9
|
+
import { RangePickerDateProps } from 'antd/lib/date-picker/generatePicker';
|
|
9
10
|
import { FormListFieldData, FormListOperation, FormListProps } from 'antd/lib/form/FormList';
|
|
10
11
|
import { SearchProps, TextAreaProps } from 'antd/lib/input';
|
|
11
12
|
import { ColumnsType } from 'antd/lib/table';
|
|
12
13
|
import { UploadChangeParam } from 'antd/lib/upload';
|
|
13
14
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
14
16
|
import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction } from 'react';
|
|
15
17
|
|
|
16
18
|
export declare const styles: () => void;
|
|
@@ -54,10 +56,6 @@ export declare type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"
|
|
|
54
56
|
* @returns
|
|
55
57
|
*/
|
|
56
58
|
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
57
|
-
export declare type LabelValueItem<T extends string | number | boolean = string | number> = {
|
|
58
|
-
value: T;
|
|
59
|
-
label: string;
|
|
60
|
-
};
|
|
61
59
|
export declare type TAny = any;
|
|
62
60
|
export declare type TPlainObject<T = TAny> = Record<string, T>;
|
|
63
61
|
export declare type TNoopDefine = () => void;
|
|
@@ -122,6 +120,10 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
122
120
|
onChange?: ((value: string | number, selectedList: TPlainObject[]) => void) | undefined;
|
|
123
121
|
requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
|
|
124
122
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
123
|
+
export declare type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
124
|
+
locale?: "en" | "zh-cn";
|
|
125
|
+
};
|
|
126
|
+
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => JSX.Element;
|
|
125
127
|
export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject> {
|
|
126
128
|
className?: string;
|
|
127
129
|
style?: CSSProperties & Partial<S>;
|
|
@@ -143,7 +145,7 @@ export declare type CssHoverProps = {
|
|
|
143
145
|
* @returns
|
|
144
146
|
*/
|
|
145
147
|
export declare const CssNodeHover: (props: CssHoverProps) => JSX.Element;
|
|
146
|
-
export declare type DatePickerWrapperProps = Omit<PickerDateProps<
|
|
148
|
+
export declare type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value" | "onChange"> & {
|
|
147
149
|
value?: string;
|
|
148
150
|
onChange?: (value?: string) => void;
|
|
149
151
|
/**
|
|
@@ -165,7 +167,7 @@ export declare type DatePickerWrapperProps = Omit<PickerDateProps<moment.Moment>
|
|
|
165
167
|
* ```
|
|
166
168
|
*/
|
|
167
169
|
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => JSX.Element;
|
|
168
|
-
export declare type DateRangePickerWrapperProps = Omit<RangePickerDateProps<
|
|
170
|
+
export declare type DateRangePickerWrapperProps = Omit<RangePickerDateProps<dayjs.Dayjs>, "value" | "onChange" | "onOpenChange" | "onCalendarChange" | "disabledDate"> & {
|
|
169
171
|
value?: [
|
|
170
172
|
string,
|
|
171
173
|
string
|
|
@@ -222,7 +224,7 @@ export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "n
|
|
|
222
224
|
* ```
|
|
223
225
|
*/
|
|
224
226
|
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => JSX.Element;
|
|
225
|
-
export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "
|
|
227
|
+
export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "footer"> & {
|
|
226
228
|
okText?: string | ReactElement;
|
|
227
229
|
cancelText?: string | ReactElement;
|
|
228
230
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
@@ -230,7 +232,7 @@ export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" |
|
|
|
230
232
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
231
233
|
onClose: TNoopDefine;
|
|
232
234
|
}) => ReactElement);
|
|
233
|
-
configProviderProps?:
|
|
235
|
+
configProviderProps?: ConfigProviderWrapperProps;
|
|
234
236
|
okButtonExtraProps?: Omit<ButtonProps, "onClick" | "children" | "loading">;
|
|
235
237
|
cancelButtonExtraProps?: Omit<ButtonProps, "onClick" | "children">;
|
|
236
238
|
operatePosition?: "header" | "footer";
|
|
@@ -273,13 +275,13 @@ export declare const dialogDrawer: {
|
|
|
273
275
|
close: () => void;
|
|
274
276
|
};
|
|
275
277
|
};
|
|
276
|
-
export declare type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "
|
|
278
|
+
export declare type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open"> & {
|
|
277
279
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
278
280
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
279
281
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
280
282
|
onClose: TNoopDefine;
|
|
281
283
|
}) => ReactElement);
|
|
282
|
-
configProviderProps?:
|
|
284
|
+
configProviderProps?: ConfigProviderWrapperProps;
|
|
283
285
|
};
|
|
284
286
|
/**
|
|
285
287
|
* 函数式调用弹框;初始化后,内容无法更新
|
|
@@ -321,63 +323,7 @@ export interface DrawerStateType {
|
|
|
321
323
|
/**
|
|
322
324
|
* 显示drawer
|
|
323
325
|
*/
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
327
|
-
*/
|
|
328
|
-
itemData?: Record<string, any>;
|
|
329
|
-
operateType: "create" | "update" | "view" | null;
|
|
330
|
-
pageLoading?: boolean;
|
|
331
|
-
}
|
|
332
|
-
export interface DrawerActionsParamType {
|
|
333
|
-
openDrawerForm: Pick<DrawerStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
334
|
-
closeDrawer: void;
|
|
335
|
-
setDrawerItemData: Record<string, any>;
|
|
336
|
-
}
|
|
337
|
-
export interface DrawerOperationOldProps {
|
|
338
|
-
loading?: boolean;
|
|
339
|
-
okText?: string;
|
|
340
|
-
cancelText?: string;
|
|
341
|
-
onOk?: () => void;
|
|
342
|
-
onCancel?: () => void;
|
|
343
|
-
hideOkBtn?: boolean;
|
|
344
|
-
okButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
345
|
-
cancelButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
346
|
-
}
|
|
347
|
-
export declare type DrawerFormProps = {
|
|
348
|
-
className?: string;
|
|
349
|
-
/**
|
|
350
|
-
* 整个drawer页面级的spinning <Page loading />
|
|
351
|
-
*/
|
|
352
|
-
pageLoading?: boolean;
|
|
353
|
-
operationProps?: DrawerOperationOldProps;
|
|
354
|
-
} & DrawerProps;
|
|
355
|
-
/**
|
|
356
|
-
* 弹窗机制
|
|
357
|
-
* @deprecated 请使用【dialogDrawer】组件替换
|
|
358
|
-
* ```
|
|
359
|
-
* 1. 默认 destroyOnClose = true
|
|
360
|
-
* 2. 默认 forceRender = false
|
|
361
|
-
* ```
|
|
362
|
-
*/
|
|
363
|
-
export declare const DrawerWraper: (props: DrawerFormProps) => JSX.Element;
|
|
364
|
-
/**
|
|
365
|
-
* drawer弹窗模型
|
|
366
|
-
* @param key 唯一值必传
|
|
367
|
-
* @returns
|
|
368
|
-
*
|
|
369
|
-
* ```
|
|
370
|
-
* 使用方式
|
|
371
|
-
* const [drawerState, drawerActions] = createDrawerWraperModel('key值').useStore();
|
|
372
|
-
* ```
|
|
373
|
-
*/
|
|
374
|
-
export declare const createDrawerWraperModel: (key: string) => API<ModelType<DrawerStateType, DrawerActionsParamType, any>>;
|
|
375
|
-
export interface DrawerStateType {
|
|
376
|
-
title: string;
|
|
377
|
-
/**
|
|
378
|
-
* 显示drawer
|
|
379
|
-
*/
|
|
380
|
-
visible: boolean;
|
|
326
|
+
open: boolean;
|
|
381
327
|
/**
|
|
382
328
|
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
383
329
|
*/
|
|
@@ -451,7 +397,7 @@ export interface DropdownMenuItem extends ButtonProps {
|
|
|
451
397
|
hidden?: boolean;
|
|
452
398
|
popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
|
|
453
399
|
}
|
|
454
|
-
export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "
|
|
400
|
+
export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
|
|
455
401
|
menuList: Array<DropdownMenuItem | null>;
|
|
456
402
|
}
|
|
457
403
|
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => JSX.Element;
|
|
@@ -796,49 +742,6 @@ export declare const FileImport: {
|
|
|
796
742
|
accept: string;
|
|
797
743
|
};
|
|
798
744
|
};
|
|
799
|
-
export declare type FileUploadItem = {
|
|
800
|
-
fileKey: string;
|
|
801
|
-
fileName: string;
|
|
802
|
-
};
|
|
803
|
-
export declare type FileUploadProps = {
|
|
804
|
-
onChange?: (value?: FileUploadItem[]) => void;
|
|
805
|
-
onUploadError?: (message?: string) => void;
|
|
806
|
-
value?: FileUploadItem[];
|
|
807
|
-
onPreview?: (item: FileUploadItem) => void;
|
|
808
|
-
onUploadChange?: (info: UploadChangeParam<UploadFile>) => void;
|
|
809
|
-
/**
|
|
810
|
-
* 属性映射
|
|
811
|
-
*/
|
|
812
|
-
fieldNames?: {
|
|
813
|
-
fileKey?: string;
|
|
814
|
-
fileName?: string;
|
|
815
|
-
};
|
|
816
|
-
} & Omit<UploadProps, "onChange" | "fileList" | "onPreview">;
|
|
817
|
-
/**
|
|
818
|
-
* 文件上传,结合Form使用最佳
|
|
819
|
-
* @deprecated 请使用【UploadWrapper】组件替换
|
|
820
|
-
* ```
|
|
821
|
-
* 接口返回结构:
|
|
822
|
-
* formData上传接口必须返回fileKey值
|
|
823
|
-
* {
|
|
824
|
-
* code: '0000',
|
|
825
|
-
* data: {
|
|
826
|
-
* fileKey: '预览文件对应的fileKey'
|
|
827
|
-
* }
|
|
828
|
-
* }
|
|
829
|
-
* 可通过fieldNames配置接口返回值属性名称映射
|
|
830
|
-
* ```
|
|
831
|
-
* ```
|
|
832
|
-
* 最佳使用方式:
|
|
833
|
-
* <Form.Item name="attachmentList" label="附件">
|
|
834
|
-
* <FileUpload action={uploadUrl} onPreview={onPreviewFile}>
|
|
835
|
-
* <Button type="primary">选择文件导入</Button>
|
|
836
|
-
* </FileUpload>
|
|
837
|
-
* </Form.Item>
|
|
838
|
-
* ```
|
|
839
|
-
*
|
|
840
|
-
*/
|
|
841
|
-
export declare const FileUpload: (props: FileUploadProps) => JSX.Element;
|
|
842
745
|
export declare type FlexLayoutProps = {
|
|
843
746
|
className?: string;
|
|
844
747
|
fullIndex?: number | number[];
|
|
@@ -1037,61 +940,7 @@ export interface ModalStateType {
|
|
|
1037
940
|
/**
|
|
1038
941
|
* 显示modal
|
|
1039
942
|
*/
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
1043
|
-
*/
|
|
1044
|
-
itemData?: Record<string, unknown> | null;
|
|
1045
|
-
operateType: "create" | "update" | "view";
|
|
1046
|
-
pageLoading?: boolean;
|
|
1047
|
-
}
|
|
1048
|
-
export interface ModalActionsParamType {
|
|
1049
|
-
openModalForm: Pick<ModalStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
1050
|
-
closeModal: void;
|
|
1051
|
-
setModalItemData: Record<string, unknown>;
|
|
1052
|
-
}
|
|
1053
|
-
export interface ModalOperationProps {
|
|
1054
|
-
loading?: boolean;
|
|
1055
|
-
okText?: string;
|
|
1056
|
-
cancelText?: string;
|
|
1057
|
-
onOk?: () => void;
|
|
1058
|
-
onCancel?: () => void;
|
|
1059
|
-
hideOkBtn?: boolean;
|
|
1060
|
-
okButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
1061
|
-
cancelButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
1062
|
-
}
|
|
1063
|
-
export declare type ModalFormProps = {
|
|
1064
|
-
className?: string;
|
|
1065
|
-
pageLoading?: boolean;
|
|
1066
|
-
operationProps?: ModalOperationProps;
|
|
1067
|
-
footer?: null | React.ReactNode;
|
|
1068
|
-
} & Omit<ModalProps, "footer" | "onOk" | "okText" | "cancelText" | "okButtonProps" | "cancelButtonProps" | "okType" | "confirmLoading">;
|
|
1069
|
-
/**
|
|
1070
|
-
* 弹窗机制
|
|
1071
|
-
* ```
|
|
1072
|
-
* 1. 默认 destroyOnClose = true
|
|
1073
|
-
* 2. 默认 forceRender = false
|
|
1074
|
-
* @deprecated 请使用【dialogModal】组件替换
|
|
1075
|
-
* ```
|
|
1076
|
-
*/
|
|
1077
|
-
export declare const ModalWraper: (props: ModalFormProps) => JSX.Element;
|
|
1078
|
-
/**
|
|
1079
|
-
* modal弹窗模型
|
|
1080
|
-
* @param key 唯一值必传
|
|
1081
|
-
* @returns
|
|
1082
|
-
*
|
|
1083
|
-
* ```
|
|
1084
|
-
* 使用方式
|
|
1085
|
-
* const [modalState, modalActions] = createModalWraperModel('key值').useStore();
|
|
1086
|
-
* ```
|
|
1087
|
-
*/
|
|
1088
|
-
export declare const createModalWraperModel: (key: string) => API<ModelType<ModalStateType, ModalActionsParamType, any>>;
|
|
1089
|
-
export interface ModalStateType {
|
|
1090
|
-
title?: string;
|
|
1091
|
-
/**
|
|
1092
|
-
* 显示modal
|
|
1093
|
-
*/
|
|
1094
|
-
visible: boolean;
|
|
943
|
+
open: boolean;
|
|
1095
944
|
/**
|
|
1096
945
|
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
1097
946
|
*/
|
|
@@ -1268,6 +1117,17 @@ export declare type TRelationTreeOperate = {
|
|
|
1268
1117
|
onChange: (name: string, value: any) => void;
|
|
1269
1118
|
};
|
|
1270
1119
|
export declare const RelationTree: (props: RelationTreeProps) => JSX.Element;
|
|
1120
|
+
export declare type RuleDataItem = {
|
|
1121
|
+
title: string | ReactElement;
|
|
1122
|
+
desc: string | ReactElement;
|
|
1123
|
+
};
|
|
1124
|
+
export declare type RuleDescribeProps = {
|
|
1125
|
+
title?: string;
|
|
1126
|
+
showTitleIndex?: boolean;
|
|
1127
|
+
ruleDataList: RuleDataItem[];
|
|
1128
|
+
titleSign?: boolean;
|
|
1129
|
+
};
|
|
1130
|
+
export declare const RuleDescribe: (props: RuleDescribeProps) => JSX.Element;
|
|
1271
1131
|
export declare type SimpleLayoutProps = {
|
|
1272
1132
|
className?: string;
|
|
1273
1133
|
style?: CSSProperties;
|
|
@@ -1337,18 +1197,23 @@ export declare type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultC
|
|
|
1337
1197
|
* ```
|
|
1338
1198
|
*/
|
|
1339
1199
|
export declare const SwitchWrapper: (props: SwitchWrapperProps) => JSX.Element;
|
|
1340
|
-
export declare type
|
|
1200
|
+
export declare type TagWrapperValue = string | number | boolean;
|
|
1201
|
+
export declare type TagWrapperDataItem = {
|
|
1341
1202
|
label: string;
|
|
1342
|
-
value:
|
|
1203
|
+
value: TagWrapperValue;
|
|
1343
1204
|
color?: string;
|
|
1344
1205
|
};
|
|
1206
|
+
export declare type TagWrapperColorItem = {
|
|
1207
|
+
label: string;
|
|
1208
|
+
value: TagWrapperValue;
|
|
1209
|
+
};
|
|
1345
1210
|
export declare type TagWrapperProps = {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
value?:
|
|
1211
|
+
dataList: TagWrapperDataItem[];
|
|
1212
|
+
/**
|
|
1213
|
+
* 颜色配置list数据,value为code、label为色值,例如:[{ label:'red', value: 1 }]
|
|
1214
|
+
*/
|
|
1215
|
+
colorList?: TagWrapperColorItem[];
|
|
1216
|
+
value?: TagWrapperValue;
|
|
1352
1217
|
forceMatch?: boolean;
|
|
1353
1218
|
};
|
|
1354
1219
|
/**
|
|
@@ -1356,24 +1221,25 @@ export declare type TagWrapperProps = {
|
|
|
1356
1221
|
* @param props
|
|
1357
1222
|
* @returns
|
|
1358
1223
|
* ```
|
|
1359
|
-
* forceMatch: 是否强制匹配(默认值
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1224
|
+
* 1. forceMatch: 是否强制匹配(默认值false)
|
|
1225
|
+
* - false: 匹配不到显示value值,
|
|
1226
|
+
* - true:匹配不到不显示
|
|
1227
|
+
* 2. value 与 dataList中label、value任一相等,都可匹配
|
|
1362
1228
|
*
|
|
1363
|
-
*
|
|
1364
|
-
* <TagWrapper
|
|
1229
|
+
* 用法1:
|
|
1230
|
+
* <TagWrapper
|
|
1231
|
+
* dataList=[{ label: '启用', value: 1 }]
|
|
1232
|
+
* colorList=[{ value: 1, color: 'red' }]
|
|
1233
|
+
* value={1} />
|
|
1365
1234
|
* =>
|
|
1366
1235
|
* <Tag color={'red'}>启用</Tag>
|
|
1367
1236
|
*
|
|
1368
|
-
*
|
|
1369
|
-
* <TagWrapper
|
|
1237
|
+
* 用法2
|
|
1238
|
+
* <TagWrapper
|
|
1239
|
+
* dataList=[{ label: '启用', value: 1. color: 'red' }]
|
|
1240
|
+
* value="启用" />
|
|
1370
1241
|
* =>
|
|
1371
1242
|
* <Tag color={'red'}>启用</Tag>
|
|
1372
|
-
*
|
|
1373
|
-
* 例如3:(未匹配到,显示value值)
|
|
1374
|
-
* <TagWrapper labelValueList=[{ label: '启用', value: 1 }] value="审核中" />
|
|
1375
|
-
* =>
|
|
1376
|
-
* 审核中
|
|
1377
1243
|
* ```
|
|
1378
1244
|
*/
|
|
1379
1245
|
export declare const TagWrapper: FC<TagWrapperProps>;
|
|
@@ -1425,7 +1291,7 @@ export declare const tableCellRender: {
|
|
|
1425
1291
|
* tableCellRender.selectorCell([{ label: '已开启', value: 1, color: '#108ee9' }])
|
|
1426
1292
|
* ```
|
|
1427
1293
|
*/
|
|
1428
|
-
selectorCell: (selectorList: TagWrapperProps["
|
|
1294
|
+
selectorCell: (selectorList: TagWrapperProps["dataList"], colorList?: TagWrapperProps["colorList"]) => (value: string | number) => JSX.Element;
|
|
1429
1295
|
/**
|
|
1430
1296
|
* 单元格对象数据处理,支持多级处理
|
|
1431
1297
|
* ```
|
|
@@ -1617,19 +1483,19 @@ export declare type TreeWrapperValue = string | number | Array<string | number>
|
|
|
1617
1483
|
export declare type TreeServiceConfig = {
|
|
1618
1484
|
params?: TPlainObject;
|
|
1619
1485
|
requiredParamsKeys?: string[];
|
|
1620
|
-
onRequest?: (params?:
|
|
1486
|
+
onRequest?: (params?: TAny) => TAny;
|
|
1621
1487
|
/**
|
|
1622
1488
|
* 响应数据适配器
|
|
1623
1489
|
*/
|
|
1624
|
-
onRequestResultAdapter?: (respData:
|
|
1490
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1625
1491
|
};
|
|
1626
1492
|
export declare type TreeLoadDataServiceConfig = {
|
|
1627
1493
|
getParams: (dataItem: TPlainObject) => TPlainObject;
|
|
1628
|
-
onRequest: (params: TPlainObject) =>
|
|
1494
|
+
onRequest: (params: TPlainObject) => TAny;
|
|
1629
1495
|
/**
|
|
1630
1496
|
* 响应数据适配器
|
|
1631
1497
|
*/
|
|
1632
|
-
onRequestResultAdapter?: (respData:
|
|
1498
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1633
1499
|
};
|
|
1634
1500
|
export declare type TreeWrapperMenuItem = {
|
|
1635
1501
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "flat-biz oss ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"node": ">=13.8.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@ant-design/icons": ">=4.
|
|
29
|
+
"@ant-design/icons": ">=4.8.0",
|
|
30
30
|
"@dimjs/lang": ">=1.2.23",
|
|
31
31
|
"@dimjs/model": ">=1.1.8",
|
|
32
32
|
"@dimjs/model-react": ">=1.1.8",
|
|
33
33
|
"@dimjs/utils": ">=1.2.23",
|
|
34
|
-
"@flatbiz/utils": ">=3.
|
|
34
|
+
"@flatbiz/utils": ">=3.1.4",
|
|
35
35
|
"@wove/react": ">=1.2.22",
|
|
36
|
-
"antd": ">=
|
|
37
|
-
"
|
|
36
|
+
"antd": ">=5.0.4",
|
|
37
|
+
"dayjs": ">=1.11.6",
|
|
38
38
|
"react": ">=18.2.0",
|
|
39
39
|
"react-dom": ">=18.2.0"
|
|
40
40
|
},
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@dimjs/model": "^1.1.8",
|
|
45
45
|
"@dimjs/model-react": "^1.1.8",
|
|
46
46
|
"@dimjs/utils": "^1.2.23",
|
|
47
|
-
"@flatbiz/utils": "^
|
|
48
|
-
"@wove/react": "^1.2.
|
|
49
|
-
"antd": "
|
|
47
|
+
"@flatbiz/utils": "^4.0.0",
|
|
48
|
+
"@wove/react": "^1.2.22",
|
|
49
|
+
"antd": "^5.0.4",
|
|
50
|
+
"dayjs": ">=1.11.6",
|
|
50
51
|
"dequal": "^2.0.3",
|
|
51
|
-
"moment": "^2.29.4",
|
|
52
52
|
"react": "18.2.0",
|
|
53
53
|
"react-dom": "18.2.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "5381ba2486f8ee1fdfb6ff8957b82166f69a1b0c"
|
|
56
56
|
}
|