@flatbiz/antd 2.5.28 → 3.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 +6 -58
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +121 -60
- package/package.json +24 -22
package/index.d.ts
CHANGED
|
@@ -9,10 +9,9 @@ import { PickerDateProps, RangePickerDateProps } from 'antd/lib/date-picker/gene
|
|
|
9
9
|
import { FormListFieldData, FormListOperation, FormListProps } from 'antd/lib/form/FormList';
|
|
10
10
|
import { SearchProps, TextAreaProps } from 'antd/lib/input';
|
|
11
11
|
import { ColumnsType } from 'antd/lib/table';
|
|
12
|
-
import { AntdTreeNodeAttribute } from 'antd/lib/tree';
|
|
13
12
|
import { UploadChangeParam } from 'antd/lib/upload';
|
|
14
13
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
15
|
-
import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction
|
|
14
|
+
import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction } from 'react';
|
|
16
15
|
|
|
17
16
|
export declare const styles: () => void;
|
|
18
17
|
export interface ButtonOperateItem extends ButtonProps {
|
|
@@ -27,14 +26,21 @@ export interface ButtonOperateItem extends ButtonProps {
|
|
|
27
26
|
isFold?: boolean;
|
|
28
27
|
}
|
|
29
28
|
export interface ButtonOperateProps {
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* 如果数组中使用ReactElement类型
|
|
31
|
+
* 1. 一般为antd Button组件,可设置type=link,会有设置的hover效果
|
|
32
|
+
* 2. 任何permission、confirm、disabled等状态在外部控制
|
|
33
|
+
* 3. 不支持fold效果
|
|
34
|
+
*/
|
|
35
|
+
operateList: Array<ButtonOperateItem | null | ReactElement>;
|
|
31
36
|
wrap?: boolean;
|
|
32
37
|
size?: SpaceProps["size"];
|
|
33
38
|
foldIcon?: ReactElement;
|
|
34
39
|
className?: string;
|
|
35
40
|
}
|
|
36
|
-
export declare const ButtonOperate:
|
|
37
|
-
export declare type
|
|
41
|
+
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
42
|
+
export declare type TAny = any;
|
|
43
|
+
export declare type TPlainObject<T = TAny> = Record<string, T>;
|
|
38
44
|
export declare type TNoopDefine = () => void;
|
|
39
45
|
export declare type RequestStatus = "request-init" | "request-progress" | "request-success" | "request-error";
|
|
40
46
|
export declare type RequestStatusRenderProps = {
|
|
@@ -116,7 +122,7 @@ export declare type DatePickerWrapperProps = Omit<PickerDateProps<moment.Moment>
|
|
|
116
122
|
* 5. 设置disabledDate后,disabledDateConfig配置将失效
|
|
117
123
|
* ```
|
|
118
124
|
*/
|
|
119
|
-
export declare const DatePickerWrapper:
|
|
125
|
+
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => JSX.Element;
|
|
120
126
|
export declare type DateRangePickerWrapperProps = Omit<RangePickerDateProps<moment.Moment>, "value" | "onChange" | "onOpenChange" | "onCalendarChange" | "disabledDate"> & {
|
|
121
127
|
value?: [
|
|
122
128
|
string,
|
|
@@ -149,7 +155,7 @@ export declare type DateRangePickerWrapperProps = Omit<RangePickerDateProps<mome
|
|
|
149
155
|
* TODO: 存在场景缺陷,当设置maxDays、showTime后,在选择单个日期不通过确认按钮直接切换输入框,无法获取回调,无法约束disabledDate
|
|
150
156
|
* ```
|
|
151
157
|
*/
|
|
152
|
-
export declare const DateRangePickerWrapper:
|
|
158
|
+
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => JSX.Element;
|
|
153
159
|
export declare type FormItemNamePath = string | number | Array<string | number>;
|
|
154
160
|
export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
155
161
|
/**
|
|
@@ -169,7 +175,58 @@ export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "n
|
|
|
169
175
|
/**
|
|
170
176
|
* 包含了Form.Item组件的时间区间选择组件
|
|
171
177
|
*/
|
|
172
|
-
export declare const DateRangePickerWrapperFormItem:
|
|
178
|
+
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => JSX.Element;
|
|
179
|
+
export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "visible" | "open"> & {
|
|
180
|
+
okText?: string | ReactElement;
|
|
181
|
+
cancelText?: string | ReactElement;
|
|
182
|
+
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
183
|
+
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
184
|
+
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
185
|
+
onClose: TNoopDefine;
|
|
186
|
+
}) => ReactElement);
|
|
187
|
+
configProviderProps?: ConfigProviderProps;
|
|
188
|
+
okButtonExtraProps?: Omit<ButtonProps, "onClick" | "children" | "loading">;
|
|
189
|
+
cancelButtonExtraProps?: Omit<ButtonProps, "onClick" | "children">;
|
|
190
|
+
operatePosition?: "header" | "footer";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* 函数式调用弹框;初始化后,内容无法更新
|
|
194
|
+
*```
|
|
195
|
+
* 1. 基础使用方式
|
|
196
|
+
* dialogDrawer.open({
|
|
197
|
+
* title: '我是弹框',
|
|
198
|
+
* content: <div>我是内容</div>,
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
* ```
|
|
202
|
+
* ***************************
|
|
203
|
+
* 2. 结合内置form使用,可在onOK、onCancel获取form对象
|
|
204
|
+
* dialogDrawer.open({
|
|
205
|
+
* title: '我是弹框',
|
|
206
|
+
* content: (form, operate) => {
|
|
207
|
+
* return (
|
|
208
|
+
* <Form form={form}>
|
|
209
|
+
* <Form.Item name="useName">
|
|
210
|
+
* <Input placeholder="请输入" />
|
|
211
|
+
* </Form.Item>
|
|
212
|
+
* </Form>
|
|
213
|
+
* );
|
|
214
|
+
* },
|
|
215
|
+
* onOK: (form) => {
|
|
216
|
+
* console.log('content form数据', form.getFieldsValue());
|
|
217
|
+
* return Promise.resolve();
|
|
218
|
+
* },
|
|
219
|
+
* });
|
|
220
|
+
* 注意:
|
|
221
|
+
* 1. operatePosition='footer' 设置footer后 onOk、onCancel、okText、cancelText、okButtonExtraProps、cancelButtonExtraProps配置失效
|
|
222
|
+
* 1. operatePosition='header' 设置extra后 onOk、onCancel、okText、cancelText、okButtonExtraProps、cancelButtonExtraProps配置失效
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
export declare const dialogDrawer: {
|
|
226
|
+
open: (props: DialogDrawerProps) => {
|
|
227
|
+
close: () => void;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
173
230
|
export declare type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "visible" | "open"> & {
|
|
174
231
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
175
232
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
@@ -256,7 +313,7 @@ export declare type DrawerFormProps = {
|
|
|
256
313
|
* 2. 默认 forceRender = false
|
|
257
314
|
* ```
|
|
258
315
|
*/
|
|
259
|
-
export declare const DrawerWraper:
|
|
316
|
+
export declare const DrawerWraper: (props: DrawerFormProps) => JSX.Element;
|
|
260
317
|
/**
|
|
261
318
|
* drawer弹窗模型
|
|
262
319
|
* @param key 唯一值必传
|
|
@@ -307,9 +364,10 @@ export declare type DrawerWrapperProps = {
|
|
|
307
364
|
*/
|
|
308
365
|
pageLoading?: boolean;
|
|
309
366
|
} & Omit<DrawerProps, "footer">;
|
|
310
|
-
declare const DrawerWrapperContent:
|
|
367
|
+
declare const DrawerWrapperContent: (props: {
|
|
311
368
|
operationProps?: DrawerOperationProps;
|
|
312
|
-
|
|
369
|
+
children?: ReactNode;
|
|
370
|
+
}) => JSX.Element;
|
|
313
371
|
declare const DrawerWrapperFooter: (props: any) => JSX.Element;
|
|
314
372
|
/**
|
|
315
373
|
* 弹窗机制
|
|
@@ -349,7 +407,7 @@ export interface DropdownMenuItem extends ButtonProps {
|
|
|
349
407
|
export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "overlay"> {
|
|
350
408
|
menuList: Array<DropdownMenuItem | null>;
|
|
351
409
|
}
|
|
352
|
-
export declare const DropdownMenuWrapper:
|
|
410
|
+
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => JSX.Element;
|
|
353
411
|
export declare type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
354
412
|
export declare type SelectorServiceConfig = {
|
|
355
413
|
params?: TPlainObject;
|
|
@@ -585,7 +643,7 @@ export declare type UploadWrapperProps<T extends TPlainObject = TPlainObject> =
|
|
|
585
643
|
* ```
|
|
586
644
|
*
|
|
587
645
|
*/
|
|
588
|
-
export declare const UploadWrapper:
|
|
646
|
+
export declare const UploadWrapper: (props: UploadWrapperProps) => JSX.Element;
|
|
589
647
|
export declare type EditableTableName = string | number | Array<string | number>;
|
|
590
648
|
export declare type EditableTableRecordType = FormListFieldData & {
|
|
591
649
|
operation: FormListOperation;
|
|
@@ -686,8 +744,8 @@ export declare type FormListConfig = {
|
|
|
686
744
|
}>;
|
|
687
745
|
onFormListBeforeRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
688
746
|
onFormListAfterRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
689
|
-
onFormListItemBeforeRender?: (data: FormListItemMethodOperateProps) =>
|
|
690
|
-
onFormListItemAfterRender?: (data: FormListItemMethodOperateProps) =>
|
|
747
|
+
onFormListItemBeforeRender?: (data: FormListItemMethodOperateProps) => ReactElement | null;
|
|
748
|
+
onFormListItemAfterRender?: (data: FormListItemMethodOperateProps) => ReactElement | null;
|
|
691
749
|
deleteOperateRender?: (data: {
|
|
692
750
|
remove: () => void;
|
|
693
751
|
formListItemIndex: number;
|
|
@@ -765,7 +823,13 @@ export declare type FileImportProps = {
|
|
|
765
823
|
* accept: '.xlsx,.xls',
|
|
766
824
|
* ```
|
|
767
825
|
*/
|
|
768
|
-
export declare const FileImport:
|
|
826
|
+
export declare const FileImport: {
|
|
827
|
+
(props: FileImportProps): JSX.Element;
|
|
828
|
+
defaultProps: {
|
|
829
|
+
name: string;
|
|
830
|
+
accept: string;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
769
833
|
export declare type FileUploadItem = {
|
|
770
834
|
fileKey: string;
|
|
771
835
|
fileName: string;
|
|
@@ -807,7 +871,7 @@ export declare type FileUploadProps = {
|
|
|
807
871
|
* ```
|
|
808
872
|
*
|
|
809
873
|
*/
|
|
810
|
-
export declare const FileUpload:
|
|
874
|
+
export declare const FileUpload: (props: FileUploadProps) => JSX.Element;
|
|
811
875
|
export declare type FlexLayoutProps = {
|
|
812
876
|
className?: string;
|
|
813
877
|
fullIndex?: number | number[];
|
|
@@ -815,6 +879,7 @@ export declare type FlexLayoutProps = {
|
|
|
815
879
|
onClick?: () => void;
|
|
816
880
|
style?: CSSProperties;
|
|
817
881
|
gap?: number;
|
|
882
|
+
children?: ReactNode;
|
|
818
883
|
};
|
|
819
884
|
/**
|
|
820
885
|
* flex布局
|
|
@@ -825,7 +890,7 @@ export declare type FlexLayoutProps = {
|
|
|
825
890
|
* @param props
|
|
826
891
|
* @returns
|
|
827
892
|
*/
|
|
828
|
-
export declare const FlexLayout:
|
|
893
|
+
export declare const FlexLayout: (props: FlexLayoutProps) => JSX.Element;
|
|
829
894
|
export declare type FormColProps = {
|
|
830
895
|
/** 屏幕 < 576px */
|
|
831
896
|
xs?: number;
|
|
@@ -841,6 +906,7 @@ export declare type FormColProps = {
|
|
|
841
906
|
xxl?: number;
|
|
842
907
|
/** 强制单独一行 */
|
|
843
908
|
forceAloneRow?: boolean;
|
|
909
|
+
children?: ReactNode | ReactNode[];
|
|
844
910
|
};
|
|
845
911
|
/**
|
|
846
912
|
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
@@ -856,7 +922,10 @@ export declare type FormColProps = {
|
|
|
856
922
|
*
|
|
857
923
|
* @returns
|
|
858
924
|
*/
|
|
859
|
-
export declare const FormCol:
|
|
925
|
+
export declare const FormCol: {
|
|
926
|
+
(props: FormColProps): JSX.Element;
|
|
927
|
+
domTypeName: string;
|
|
928
|
+
};
|
|
860
929
|
export declare type FormOperateColProps = {
|
|
861
930
|
className?: string;
|
|
862
931
|
leftList?: ReactElement[];
|
|
@@ -874,8 +943,13 @@ export declare type FormOperateColProps = {
|
|
|
874
943
|
* 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
|
|
875
944
|
* ```
|
|
876
945
|
*/
|
|
877
|
-
export declare const FormOperateCol:
|
|
878
|
-
|
|
946
|
+
export declare const FormOperateCol: {
|
|
947
|
+
(props: FormOperateColProps): JSX.Element;
|
|
948
|
+
domTypeName: string;
|
|
949
|
+
};
|
|
950
|
+
export declare type FormRowProps = RowProps & {
|
|
951
|
+
children?: ReactNode | ReactNode[];
|
|
952
|
+
};
|
|
879
953
|
/**
|
|
880
954
|
* FormItem网格响应式布局
|
|
881
955
|
*```
|
|
@@ -883,7 +957,7 @@ export declare type FormRowProps = RowProps;
|
|
|
883
957
|
* 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
|
|
884
958
|
* 3. 所有子元素中只能存在一个 FormOperateCol
|
|
885
959
|
*/
|
|
886
|
-
export declare const FormRow:
|
|
960
|
+
export declare const FormRow: (props: FormRowProps) => JSX.Element;
|
|
887
961
|
export declare type GapProps = {
|
|
888
962
|
height?: number;
|
|
889
963
|
width?: number;
|
|
@@ -896,7 +970,7 @@ export declare type GapProps = {
|
|
|
896
970
|
* @param props
|
|
897
971
|
* @returns
|
|
898
972
|
*/
|
|
899
|
-
export declare const Gap:
|
|
973
|
+
export declare const Gap: (props: GapProps) => JSX.Element;
|
|
900
974
|
export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
|
|
901
975
|
export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
|
|
902
976
|
export declare type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
|
|
@@ -913,7 +987,7 @@ export declare type IconWrapperProps = {
|
|
|
913
987
|
size?: "small" | "middle" | "large";
|
|
914
988
|
onClick?: (event: any) => void;
|
|
915
989
|
};
|
|
916
|
-
export declare const IconWrapper:
|
|
990
|
+
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element;
|
|
917
991
|
export declare type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
918
992
|
/**
|
|
919
993
|
* ```
|
|
@@ -926,7 +1000,7 @@ export declare type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
|
926
1000
|
*
|
|
927
1001
|
* ```
|
|
928
1002
|
*/
|
|
929
|
-
export declare const InputWrapper:
|
|
1003
|
+
export declare const InputWrapper: (props: InputWrapperProps) => JSX.Element;
|
|
930
1004
|
export declare type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
931
1005
|
/**
|
|
932
1006
|
* ```
|
|
@@ -939,7 +1013,7 @@ export declare type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
939
1013
|
*
|
|
940
1014
|
* ```
|
|
941
1015
|
*/
|
|
942
|
-
export declare const InputSearchWrapper:
|
|
1016
|
+
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => JSX.Element;
|
|
943
1017
|
export declare type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
944
1018
|
/**
|
|
945
1019
|
* ```
|
|
@@ -952,7 +1026,7 @@ export declare type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValu
|
|
|
952
1026
|
*
|
|
953
1027
|
* ```
|
|
954
1028
|
*/
|
|
955
|
-
export declare const InputTextAreaWrapper:
|
|
1029
|
+
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => JSX.Element;
|
|
956
1030
|
export declare type LabelValueLayoutProps = {
|
|
957
1031
|
options: {
|
|
958
1032
|
label: string | ReactElement;
|
|
@@ -962,7 +1036,7 @@ export declare type LabelValueLayoutProps = {
|
|
|
962
1036
|
column?: number;
|
|
963
1037
|
bordered?: boolean;
|
|
964
1038
|
};
|
|
965
|
-
export declare const LabelValueLayout:
|
|
1039
|
+
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => JSX.Element;
|
|
966
1040
|
export interface ModalStateType {
|
|
967
1041
|
title?: string;
|
|
968
1042
|
/**
|
|
@@ -1002,9 +1076,10 @@ export declare type ModalFormProps = {
|
|
|
1002
1076
|
* ```
|
|
1003
1077
|
* 1. 默认 destroyOnClose = true
|
|
1004
1078
|
* 2. 默认 forceRender = false
|
|
1079
|
+
* @deprecated 请使用ModalWrapper替换
|
|
1005
1080
|
* ```
|
|
1006
1081
|
*/
|
|
1007
|
-
export declare const ModalWraper:
|
|
1082
|
+
export declare const ModalWraper: (props: ModalFormProps) => JSX.Element;
|
|
1008
1083
|
/**
|
|
1009
1084
|
* modal弹窗模型
|
|
1010
1085
|
* @param key 唯一值必传
|
|
@@ -1052,9 +1127,10 @@ export declare type ModalWrapperProps = {
|
|
|
1052
1127
|
className?: string;
|
|
1053
1128
|
pageLoading?: boolean;
|
|
1054
1129
|
} & Omit<ModalProps, "footer" | "onOk" | "okText" | "cancelText" | "okButtonProps" | "cancelButtonProps" | "okType" | "confirmLoading">;
|
|
1055
|
-
declare const ModalWrapperContent:
|
|
1130
|
+
declare const ModalWrapperContent: (props: {
|
|
1056
1131
|
operationProps?: ModalOperationOldProps;
|
|
1057
|
-
|
|
1132
|
+
children?: ReactNode;
|
|
1133
|
+
}) => JSX.Element;
|
|
1058
1134
|
declare const ModalWrapperFooter: (props: any) => JSX.Element;
|
|
1059
1135
|
/**
|
|
1060
1136
|
* 弹窗机制
|
|
@@ -1084,15 +1160,17 @@ export declare const createModalWrapperModel: (key: string) => API<ModelType<Mod
|
|
|
1084
1160
|
export declare type PageFixedFooterProps = {
|
|
1085
1161
|
className?: string;
|
|
1086
1162
|
style?: CSSProperties;
|
|
1163
|
+
children?: ReactNode | ReactNode[];
|
|
1087
1164
|
};
|
|
1088
|
-
export declare const PageFixedFooter:
|
|
1165
|
+
export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element;
|
|
1089
1166
|
export declare const Page404: () => JSX.Element;
|
|
1090
1167
|
export declare const getPermissionList: () => string[];
|
|
1091
1168
|
export declare const hasPermission: (name: string) => boolean;
|
|
1092
1169
|
export interface PermissionProps {
|
|
1093
1170
|
name: string;
|
|
1171
|
+
children?: ReactNode | ReactNode[];
|
|
1094
1172
|
}
|
|
1095
|
-
export declare const Permission:
|
|
1173
|
+
export declare const Permission: (props: PermissionProps) => JSX.Element | null;
|
|
1096
1174
|
/**
|
|
1097
1175
|
* 预定义className
|
|
1098
1176
|
* ```
|
|
@@ -1143,6 +1221,7 @@ export declare type SimpleLayoutProps = {
|
|
|
1143
1221
|
padding?: CSSProperties["padding"];
|
|
1144
1222
|
/** 优先级大于 style width */
|
|
1145
1223
|
width?: CSSProperties["width"];
|
|
1224
|
+
children?: ReactNode | ReactNode[];
|
|
1146
1225
|
};
|
|
1147
1226
|
/**
|
|
1148
1227
|
* 简单布局
|
|
@@ -1154,7 +1233,13 @@ export declare type SimpleLayoutProps = {
|
|
|
1154
1233
|
* tight:紧凑布局
|
|
1155
1234
|
* ```
|
|
1156
1235
|
*/
|
|
1157
|
-
export declare const SimpleLayout:
|
|
1236
|
+
export declare const SimpleLayout: {
|
|
1237
|
+
(props: SimpleLayoutProps): JSX.Element;
|
|
1238
|
+
defaultProps: {
|
|
1239
|
+
titleLeftLine: boolean;
|
|
1240
|
+
layoutType: string;
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1158
1243
|
export interface SmsCountDownProps {
|
|
1159
1244
|
onSendRequest: () => Promise<void>;
|
|
1160
1245
|
totalTicks?: number;
|
|
@@ -1168,30 +1253,6 @@ export interface SmsCountDownProps {
|
|
|
1168
1253
|
className?: string;
|
|
1169
1254
|
}
|
|
1170
1255
|
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
1171
|
-
export declare type StaticMethods = {
|
|
1172
|
-
Condition: typeof Condition;
|
|
1173
|
-
Operate: typeof Operate;
|
|
1174
|
-
Table: typeof Table;
|
|
1175
|
-
Footer: typeof Footer;
|
|
1176
|
-
};
|
|
1177
|
-
export declare type TableFilterLayoutProps = {
|
|
1178
|
-
className?: string;
|
|
1179
|
-
isFixed?: boolean;
|
|
1180
|
-
fullIndex?: number;
|
|
1181
|
-
};
|
|
1182
|
-
export declare const TableFilterLayout: FC<TableFilterLayoutProps> & StaticMethods;
|
|
1183
|
-
declare const Condition: FC<{
|
|
1184
|
-
className?: string;
|
|
1185
|
-
}>;
|
|
1186
|
-
declare const Operate: FC<{
|
|
1187
|
-
className?: string;
|
|
1188
|
-
}>;
|
|
1189
|
-
declare const Table: FC<{
|
|
1190
|
-
className?: string;
|
|
1191
|
-
}>;
|
|
1192
|
-
declare const Footer: FC<{
|
|
1193
|
-
className?: string;
|
|
1194
|
-
}>;
|
|
1195
1256
|
export declare type TreeSelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
1196
1257
|
export declare type TreeSelectorServiceConfig = {
|
|
1197
1258
|
params?: TPlainObject;
|
|
@@ -1358,7 +1419,7 @@ export declare type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeDat
|
|
|
1358
1419
|
showSearch?: boolean;
|
|
1359
1420
|
onSearchValueChange?: (searchValue?: string) => void;
|
|
1360
1421
|
searchPlaceholder?: string;
|
|
1361
|
-
icon?: (data:
|
|
1422
|
+
icon?: (data: {
|
|
1362
1423
|
isParent: boolean;
|
|
1363
1424
|
isLeaf: boolean;
|
|
1364
1425
|
}) => ReactElement;
|
|
@@ -1455,7 +1516,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
1455
1516
|
showSearch?: boolean | undefined;
|
|
1456
1517
|
onSearchValueChange?: ((searchValue?: string) => void) | undefined;
|
|
1457
1518
|
searchPlaceholder?: string | undefined;
|
|
1458
|
-
icon?: ((data:
|
|
1519
|
+
icon?: ((data: {
|
|
1459
1520
|
isParent: boolean;
|
|
1460
1521
|
isLeaf: boolean;
|
|
1461
1522
|
}) => ReactElement) | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "flat-biz oss ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,30 +26,32 @@
|
|
|
26
26
|
"node": ">=13.8.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@ant-design/icons": "
|
|
30
|
-
"@dimjs/lang": "
|
|
31
|
-
"@dimjs/model": "
|
|
32
|
-
"@dimjs/model-react": "
|
|
33
|
-
"@dimjs/utils": "
|
|
34
|
-
"@flatbiz/utils": "
|
|
35
|
-
"@wove/react": "
|
|
36
|
-
"antd": "
|
|
37
|
-
"dequal": "
|
|
29
|
+
"@ant-design/icons": ">=4.7.0",
|
|
30
|
+
"@dimjs/lang": ">=1.2.23",
|
|
31
|
+
"@dimjs/model": ">=1.1.8",
|
|
32
|
+
"@dimjs/model-react": ">=1.1.8",
|
|
33
|
+
"@dimjs/utils": ">=1.2.23",
|
|
34
|
+
"@flatbiz/utils": ">=2.5.29",
|
|
35
|
+
"@wove/react": ">=1.2.21",
|
|
36
|
+
"antd": ">=4.22.2",
|
|
37
|
+
"dequal": ">=2.0.3",
|
|
38
|
+
"moment": ">=2.29.4",
|
|
39
|
+
"react": ">=17.0.2",
|
|
40
|
+
"react-dom": ">=17.0.2"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
43
|
"@ant-design/icons": "^4.7.0",
|
|
41
|
-
"@dimjs/lang": "^1.2.
|
|
42
|
-
"@dimjs/model": "^1.1.
|
|
43
|
-
"@dimjs/model-react": "^1.1.
|
|
44
|
-
"@dimjs/utils": "^1.2.
|
|
45
|
-
"@flatbiz/utils": "^
|
|
46
|
-
"@wove/react": "^1.2.
|
|
47
|
-
"antd": "
|
|
44
|
+
"@dimjs/lang": "^1.2.23",
|
|
45
|
+
"@dimjs/model": "^1.1.8",
|
|
46
|
+
"@dimjs/model-react": "^1.1.8",
|
|
47
|
+
"@dimjs/utils": "^1.2.23",
|
|
48
|
+
"@flatbiz/utils": "^3.0.0",
|
|
49
|
+
"@wove/react": "^1.2.21",
|
|
50
|
+
"antd": "4.22.2",
|
|
51
|
+
"dequal": "^2.0.3",
|
|
48
52
|
"moment": "^2.29.4",
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
51
|
-
"react-router": "^6.3.0",
|
|
52
|
-
"react-router-dom": "^6.3.0"
|
|
53
|
+
"react": "18.2.0",
|
|
54
|
+
"react-dom": "18.2.0"
|
|
53
55
|
},
|
|
54
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "590413f8f5e11d9d19986e1ed1388279d907a956"
|
|
55
57
|
}
|