@flatbiz/antd 4.0.3 → 4.0.5
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 +9 -0
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +187 -120
- package/package.json +9 -6
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="scheduler" />
|
|
3
3
|
|
|
4
4
|
import { API, ModelType } from '@dimjs/model';
|
|
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';
|
|
5
|
+
import { ButtonProps, CascaderProps, DrawerProps, DropdownProps, FormInstance, FormItemProps, InputNumberProps, InputProps, ModalProps, PopconfirmProps, RadioGroupProps, RowProps, SelectProps, SpaceProps, SwitchProps, TableProps, TabsProps, TimePickerProps, TimeRangePickerProps, TooltipProps, TreeProps, TreeSelectProps, UploadProps } from 'antd';
|
|
6
6
|
import { ConfigProviderProps } from 'antd/es/config-provider';
|
|
7
7
|
import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
|
|
8
8
|
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
@@ -13,6 +13,7 @@ import { ColumnsType } from 'antd/lib/table';
|
|
|
13
13
|
import { UploadChangeParam } from 'antd/lib/upload';
|
|
14
14
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
|
+
import { Dayjs } from 'dayjs';
|
|
16
17
|
import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction } from 'react';
|
|
17
18
|
|
|
18
19
|
export declare const styles: () => void;
|
|
@@ -43,7 +44,7 @@ export interface ButtonOperateProps {
|
|
|
43
44
|
split?: boolean;
|
|
44
45
|
}
|
|
45
46
|
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
46
|
-
export
|
|
47
|
+
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
|
|
47
48
|
onClick: (e: any) => Promise<void> | void;
|
|
48
49
|
debounceDuration?: number;
|
|
49
50
|
permission?: string;
|
|
@@ -56,19 +57,19 @@ export declare type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"
|
|
|
56
57
|
* @returns
|
|
57
58
|
*/
|
|
58
59
|
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
export
|
|
60
|
+
export type TAny = any;
|
|
61
|
+
export type TPlainObject<T = TAny> = Record<string, T>;
|
|
62
|
+
export type TNoopDefine = () => void;
|
|
63
|
+
export type DateFormatType = "YYYY-MM" | "YYYY-MM-DD" | "YYYY-MM-DD hh:mm" | "YYYY-MM-DD hh:mm:ss" | "MM-DD" | "YYYY/MM" | "YYYY/MM/DD" | "YYYY/MM/DD hh:mm" | "YYYY/MM/DD hh:mm:ss" | "MM/DD" | "YYYY.MM" | "YYYY.MM.DD" | "YYYY.MM.DD hh:mm" | "YYYY.MM.DD hh:mm:ss" | "MM.DD" | "YYYY\u5E74MM\u6708" | "YYYY\u5E74MM\u6708DD\u65E5" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm:ss" | "MM\u6708DD\u65E5" | "hh:mm" | "hh:mm:ss" | "YYYYMM" | "YYYYMMDD" | "YYYYMMDD hh:mm" | "YYYYMMDD hh:mm:ss";
|
|
64
|
+
export type RequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
65
|
+
export type RequestStatusRenderProps = {
|
|
65
66
|
status?: RequestStatus;
|
|
66
67
|
errorButton?: ReactElement;
|
|
67
68
|
messageConfig?: Partial<Record<RequestStatus, string>>;
|
|
68
69
|
loading?: boolean;
|
|
69
70
|
};
|
|
70
71
|
export declare const RequestStatusRender: (props: RequestStatusRenderProps) => JSX.Element;
|
|
71
|
-
export
|
|
72
|
+
export type CascaderWrapperServiceConfig = {
|
|
72
73
|
params?: TPlainObject;
|
|
73
74
|
onRequest?: (params?: any) => any;
|
|
74
75
|
/**
|
|
@@ -76,7 +77,7 @@ export declare type CascaderWrapperServiceConfig = {
|
|
|
76
77
|
*/
|
|
77
78
|
onRequestResultAdapter?: (respData: any) => TPlainObject[];
|
|
78
79
|
};
|
|
79
|
-
export
|
|
80
|
+
export type CascaderWrapperProps = Omit<CascaderProps<any>, "loading" | "notFoundContent" | "options" | "value" | "multiple" | "onChange"> & {
|
|
80
81
|
modelKey: string;
|
|
81
82
|
/**
|
|
82
83
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
@@ -91,7 +92,7 @@ export declare type CascaderWrapperProps = Omit<CascaderProps<any>, "loading" |
|
|
|
91
92
|
onChange?: (value: string | number, selectedList: TPlainObject[]) => void;
|
|
92
93
|
requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
|
|
93
94
|
};
|
|
94
|
-
export
|
|
95
|
+
export type CascaderWrapperRefApi = {
|
|
95
96
|
getCascaderList: () => TPlainObject[];
|
|
96
97
|
};
|
|
97
98
|
/**
|
|
@@ -105,7 +106,7 @@ export declare type CascaderWrapperRefApi = {
|
|
|
105
106
|
* 4. onChange操作第一个参数返回叶子节点value,第二个参数返回选中的多级数据
|
|
106
107
|
* ```
|
|
107
108
|
*/
|
|
108
|
-
export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<Omit<CascaderProps<any>, "value" | "
|
|
109
|
+
export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<Omit<CascaderProps<any>, "value" | "loading" | "multiple" | "options" | "onChange" | "notFoundContent"> & {
|
|
109
110
|
modelKey: string;
|
|
110
111
|
/**
|
|
111
112
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
@@ -120,7 +121,7 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
120
121
|
onChange?: ((value: string | number, selectedList: TPlainObject[]) => void) | undefined;
|
|
121
122
|
requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
|
|
122
123
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
123
|
-
export
|
|
124
|
+
export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
124
125
|
locale?: "en" | "zh-cn";
|
|
125
126
|
};
|
|
126
127
|
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => JSX.Element;
|
|
@@ -129,7 +130,7 @@ export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject>
|
|
|
129
130
|
style?: CSSProperties & Partial<S>;
|
|
130
131
|
children?: ReactNode | undefined;
|
|
131
132
|
}
|
|
132
|
-
export
|
|
133
|
+
export type CssHoverProps = {
|
|
133
134
|
children: ReactElement;
|
|
134
135
|
} & Pick<CommonPropsWithChildren<{
|
|
135
136
|
"--v-css-hover-bgcolor": CSSProperties["backgroundColor"];
|
|
@@ -145,29 +146,51 @@ export declare type CssHoverProps = {
|
|
|
145
146
|
* @returns
|
|
146
147
|
*/
|
|
147
148
|
export declare const CssNodeHover: (props: CssHoverProps) => JSX.Element;
|
|
148
|
-
export
|
|
149
|
+
export type FormItemNamePath = string | number | Array<string | number>;
|
|
150
|
+
export declare enum DayjsDateTypeEnum {
|
|
151
|
+
YMDHms = "YYYY-MM-DD HH:mm:ss",
|
|
152
|
+
YMDHm = "YYYY-MM-DD HH:mm",
|
|
153
|
+
YMDH = "YYYY-MM-DD HH",
|
|
154
|
+
YMD = "YYYY-MM-DD"
|
|
155
|
+
}
|
|
156
|
+
export declare enum DayjsTimeTypeEnum {
|
|
157
|
+
Hms = "HH:mm:ss",
|
|
158
|
+
Hm = "HH:mm",
|
|
159
|
+
H = "HH",
|
|
160
|
+
ms = "mm:ss",
|
|
161
|
+
m = "mm",
|
|
162
|
+
s = "ss"
|
|
163
|
+
}
|
|
164
|
+
export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value" | "onChange" | "format"> & {
|
|
149
165
|
value?: string;
|
|
150
166
|
onChange?: (value?: string) => void;
|
|
151
167
|
/**
|
|
152
|
-
* minDate、maxDate设置格式:
|
|
168
|
+
* minDate、maxDate设置格式:DayjsDateTypeEnum
|
|
153
169
|
*/
|
|
154
170
|
disabledDateConfig?: {
|
|
155
171
|
minDate?: string;
|
|
156
172
|
maxDate?: string;
|
|
173
|
+
/** 禁用 小时 刻度列表,与日期无关 */
|
|
174
|
+
disabledHourList?: number[];
|
|
175
|
+
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
176
|
+
disabledMinuteList?: number[];
|
|
177
|
+
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
178
|
+
disabledSecondList?: number[];
|
|
157
179
|
};
|
|
180
|
+
format?: DayjsDateTypeEnum;
|
|
158
181
|
};
|
|
159
182
|
/**
|
|
160
183
|
* DatePicker包装组件
|
|
161
184
|
* ```
|
|
162
185
|
* 1. value类型为 string
|
|
163
186
|
* 2. onChange返回类型 string
|
|
164
|
-
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型
|
|
165
|
-
* 4.
|
|
166
|
-
* 5. 设置
|
|
187
|
+
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型 DayjsDateTypeEnum.YMDHms;其他格式化类型自定义format
|
|
188
|
+
* 4. 设置 disabledDate 后,disabledDateConfig配置将失效
|
|
189
|
+
* 5. 设置 disabledTime 后,内置的disabledTime逻辑将失效
|
|
167
190
|
* ```
|
|
168
191
|
*/
|
|
169
192
|
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => JSX.Element;
|
|
170
|
-
export
|
|
193
|
+
export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "value" | "onChange" | "onOpenChange" | "onCalendarChange" | "disabledDate" | "format"> & {
|
|
171
194
|
value?: [
|
|
172
195
|
string,
|
|
173
196
|
string
|
|
@@ -177,31 +200,38 @@ export declare type DateRangePickerWrapperProps = Omit<RangePickerDateProps<dayj
|
|
|
177
200
|
string
|
|
178
201
|
]) => void;
|
|
179
202
|
/**
|
|
180
|
-
* 1. minDate、maxDate设置格式:
|
|
203
|
+
* 1. minDate、maxDate设置格式:DayjsDateTypeEnum
|
|
181
204
|
* 2. maxDays 最大可选的天数
|
|
182
205
|
*/
|
|
183
206
|
disabledDateConfig?: {
|
|
184
207
|
minDate?: string;
|
|
185
208
|
maxDate?: string;
|
|
186
209
|
maxDays?: number;
|
|
210
|
+
/** 禁用 小时 刻度列表,与日期无关 */
|
|
211
|
+
disabledHourList?: number[];
|
|
212
|
+
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
213
|
+
disabledMinuteList?: number[];
|
|
214
|
+
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
215
|
+
disabledSecondList?: number[];
|
|
187
216
|
};
|
|
217
|
+
format?: DayjsDateTypeEnum;
|
|
188
218
|
};
|
|
189
219
|
/**
|
|
190
220
|
* DatePicker.RangePicker包装组件
|
|
191
221
|
* ```
|
|
192
222
|
* 1. value类型为 [string, string]
|
|
193
223
|
* 2. onChange返回类型 [string, string]
|
|
194
|
-
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型YYYY-MM-DD HH:mm:ss
|
|
195
|
-
* 4.
|
|
196
|
-
* 5.
|
|
224
|
+
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型YYYY-MM-DD HH:mm:ss;其他格式化类型自定义format
|
|
225
|
+
* 4. 可设置disabledDateConfig,来控制日期项的disbaled状态
|
|
226
|
+
* 5. 设置 disabledDate 后,disabledDateConfig配置将失效
|
|
227
|
+
* 6. 设置 disabledTime 后,内置的disabledTime逻辑将失效
|
|
197
228
|
*
|
|
198
229
|
* TODO: 引用DatePicker.RangePicker TS有问题,待解决
|
|
199
230
|
* TODO: 存在场景缺陷,当设置maxDays、showTime后,在选择单个日期不通过确认按钮直接切换输入框,无法获取回调,无法约束disabledDate
|
|
200
231
|
* ```
|
|
201
232
|
*/
|
|
202
233
|
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => JSX.Element;
|
|
203
|
-
export
|
|
204
|
-
export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
234
|
+
export type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
205
235
|
/**
|
|
206
236
|
* 开始的时间name
|
|
207
237
|
*/
|
|
@@ -224,7 +254,7 @@ export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "n
|
|
|
224
254
|
* ```
|
|
225
255
|
*/
|
|
226
256
|
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => JSX.Element;
|
|
227
|
-
export
|
|
257
|
+
export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "footer"> & {
|
|
228
258
|
okText?: string | ReactElement;
|
|
229
259
|
cancelText?: string | ReactElement;
|
|
230
260
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
@@ -275,7 +305,7 @@ export declare const dialogDrawer: {
|
|
|
275
305
|
close: () => void;
|
|
276
306
|
};
|
|
277
307
|
};
|
|
278
|
-
export
|
|
308
|
+
export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open"> & {
|
|
279
309
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
280
310
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
281
311
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
@@ -346,11 +376,11 @@ export interface DrawerOperationProps {
|
|
|
346
376
|
okButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
347
377
|
cancelButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
348
378
|
}
|
|
349
|
-
export
|
|
379
|
+
export type DrawerWrapperStaticMethods = {
|
|
350
380
|
Content: typeof DrawerWrapperContent;
|
|
351
381
|
Footer: typeof DrawerWrapperFooter;
|
|
352
382
|
};
|
|
353
|
-
export
|
|
383
|
+
export type DrawerWrapperProps = {
|
|
354
384
|
className?: string;
|
|
355
385
|
/**
|
|
356
386
|
* 整个drawer页面级的spinning <Page loading />
|
|
@@ -401,8 +431,8 @@ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
|
|
|
401
431
|
menuList: Array<DropdownMenuItem | null>;
|
|
402
432
|
}
|
|
403
433
|
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => JSX.Element;
|
|
404
|
-
export
|
|
405
|
-
export
|
|
434
|
+
export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
435
|
+
export type SelectorServiceConfig = {
|
|
406
436
|
params?: TPlainObject;
|
|
407
437
|
/** 与 params 配合使用 */
|
|
408
438
|
requiredParamsKeys?: string[];
|
|
@@ -412,7 +442,7 @@ export declare type SelectorServiceConfig = {
|
|
|
412
442
|
*/
|
|
413
443
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
414
444
|
};
|
|
415
|
-
export
|
|
445
|
+
export type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "onChange" | "value" | "loading" | "mode"> & {
|
|
416
446
|
/** 不支持 tags 模式,tags模式请使用antd Select 组件 */
|
|
417
447
|
mode?: "multiple";
|
|
418
448
|
modelKey: string;
|
|
@@ -503,12 +533,12 @@ export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "o
|
|
|
503
533
|
* ```
|
|
504
534
|
*/
|
|
505
535
|
export declare const SelectorWrapper: (props: SelectorWrapperProps) => JSX.Element;
|
|
506
|
-
export
|
|
536
|
+
export type UploadWrapperFileItem = {
|
|
507
537
|
uid: string;
|
|
508
538
|
name: string;
|
|
509
539
|
url?: string;
|
|
510
540
|
};
|
|
511
|
-
export
|
|
541
|
+
export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
512
542
|
value?: T[];
|
|
513
543
|
onChange?: (value?: T[]) => void;
|
|
514
544
|
onUploadError?: (message?: string) => void;
|
|
@@ -550,43 +580,43 @@ export declare type UploadWrapperProps<T extends TPlainObject = TPlainObject> =
|
|
|
550
580
|
*
|
|
551
581
|
*/
|
|
552
582
|
export declare const UploadWrapper: (props: UploadWrapperProps) => JSX.Element;
|
|
553
|
-
export
|
|
554
|
-
export
|
|
583
|
+
export type EditableTableName = string | number | Array<string | number>;
|
|
584
|
+
export type EditableTableRecordType = FormListFieldData & {
|
|
555
585
|
operation: FormListOperation;
|
|
556
586
|
};
|
|
557
|
-
export
|
|
587
|
+
export type EditableInputConfig = {
|
|
558
588
|
type: "input";
|
|
559
589
|
editableComptProps?: InputProps;
|
|
560
590
|
};
|
|
561
|
-
export
|
|
591
|
+
export type EditableInputNumberConfig = {
|
|
562
592
|
type: "inputNumber";
|
|
563
593
|
editableComptProps?: InputNumberProps;
|
|
564
594
|
};
|
|
565
|
-
export
|
|
595
|
+
export type EditableSelectWrapperConfig = {
|
|
566
596
|
type: "selectorWrapper";
|
|
567
597
|
editableComptProps: SelectorWrapperProps;
|
|
568
598
|
};
|
|
569
|
-
export
|
|
599
|
+
export type EditableDatePickerWrapperConfig = {
|
|
570
600
|
type: "datePickerWrapper";
|
|
571
601
|
editableComptProps?: DatePickerWrapperProps;
|
|
572
602
|
};
|
|
573
|
-
export
|
|
603
|
+
export type EditableDateRangePickerWrapperConfig = {
|
|
574
604
|
type: "dateRangePickerWrapper";
|
|
575
605
|
editableComptProps?: DateRangePickerWrapperProps;
|
|
576
606
|
};
|
|
577
|
-
export
|
|
607
|
+
export type EditableCheckboxGroupConfig = {
|
|
578
608
|
type: "checkboxGroup";
|
|
579
609
|
editableComptProps: CheckboxGroupProps;
|
|
580
610
|
};
|
|
581
|
-
export
|
|
611
|
+
export type EditableRadioGroupConfig = {
|
|
582
612
|
type: "radioGroup";
|
|
583
613
|
editableComptProps: RadioGroupProps;
|
|
584
614
|
};
|
|
585
|
-
export
|
|
615
|
+
export type EditableTextareaConfig = {
|
|
586
616
|
type: "textArea";
|
|
587
617
|
editableComptProps: TextAreaProps;
|
|
588
618
|
};
|
|
589
|
-
export
|
|
619
|
+
export type EditableFileUploadConfig = {
|
|
590
620
|
type: "uploadWrapper";
|
|
591
621
|
editableComptProps: UploadWrapperProps;
|
|
592
622
|
};
|
|
@@ -607,7 +637,7 @@ export declare type EditableFileUploadConfig = {
|
|
|
607
637
|
},
|
|
608
638
|
```
|
|
609
639
|
*/
|
|
610
|
-
export
|
|
640
|
+
export type EditableCustomConfig = {
|
|
611
641
|
type: "custom";
|
|
612
642
|
editableComptProps: (props: {
|
|
613
643
|
name: Array<number | string>;
|
|
@@ -616,8 +646,8 @@ export declare type EditableCustomConfig = {
|
|
|
616
646
|
tableRowIndex: number;
|
|
617
647
|
}) => ReactElement;
|
|
618
648
|
};
|
|
619
|
-
export
|
|
620
|
-
export
|
|
649
|
+
export type EditableTypeConfig = EditableCustomConfig | EditableInputConfig | EditableSelectWrapperConfig | EditableDatePickerWrapperConfig | EditableDateRangePickerWrapperConfig | EditableCheckboxGroupConfig | EditableTextareaConfig | EditableInputNumberConfig | EditableRadioGroupConfig | EditableFileUploadConfig;
|
|
650
|
+
export type FieldSingleConfig = {
|
|
621
651
|
editable?: boolean | ((data: {
|
|
622
652
|
tableRowIndex: number;
|
|
623
653
|
}) => boolean);
|
|
@@ -633,19 +663,19 @@ export declare type FieldSingleConfig = {
|
|
|
633
663
|
*/
|
|
634
664
|
render?: (params?: any) => ReactNode;
|
|
635
665
|
};
|
|
636
|
-
export
|
|
666
|
+
export type FormListItemMethodOperateProps = {
|
|
637
667
|
tableRowIndex: number;
|
|
638
668
|
add: FormListOperation["add"];
|
|
639
669
|
remove: () => void;
|
|
640
670
|
formListItemIndex: number;
|
|
641
671
|
value: any;
|
|
642
672
|
};
|
|
643
|
-
export
|
|
673
|
+
export type FormListMethodOperateProps = {
|
|
644
674
|
tableRowIndex: number;
|
|
645
675
|
add: FormListOperation["add"];
|
|
646
676
|
value: any;
|
|
647
677
|
};
|
|
648
|
-
export
|
|
678
|
+
export type FormListConfig = {
|
|
649
679
|
editableConfigList: Array<FieldSingleConfig & {
|
|
650
680
|
fieldName: string;
|
|
651
681
|
}>;
|
|
@@ -658,7 +688,7 @@ export declare type FormListConfig = {
|
|
|
658
688
|
formListItemIndex: number;
|
|
659
689
|
}) => ReactElement;
|
|
660
690
|
};
|
|
661
|
-
export
|
|
691
|
+
export type fieldConfigFunctionParams = {
|
|
662
692
|
tableRowIndex: number;
|
|
663
693
|
name: EditableTableName;
|
|
664
694
|
tableRowName: EditableTableName;
|
|
@@ -666,7 +696,7 @@ export declare type fieldConfigFunctionParams = {
|
|
|
666
696
|
/**
|
|
667
697
|
* antd 默认render功能此处不能使用
|
|
668
698
|
*/
|
|
669
|
-
export
|
|
699
|
+
export type EditableTableColumn = Omit<ColumnsType["0"], "render"> & {
|
|
670
700
|
dataIndex?: string;
|
|
671
701
|
fieldConfig?: FieldSingleConfig | FormListConfig | ((data: fieldConfigFunctionParams) => FieldSingleConfig | FormListConfig);
|
|
672
702
|
/** 隐藏域字段 */
|
|
@@ -688,7 +718,7 @@ export declare type EditableTableColumn = Omit<ColumnsType["0"], "render"> & {
|
|
|
688
718
|
operation: FormListOperation;
|
|
689
719
|
}) => ReactElement | null;
|
|
690
720
|
};
|
|
691
|
-
export
|
|
721
|
+
export type EditableTableProps = {
|
|
692
722
|
name: string;
|
|
693
723
|
/**
|
|
694
724
|
* ```
|
|
@@ -708,8 +738,8 @@ export declare type EditableTableProps = {
|
|
|
708
738
|
rules?: FormListProps["rules"];
|
|
709
739
|
};
|
|
710
740
|
export declare const EditableTable: (props: EditableTableProps) => JSX.Element;
|
|
711
|
-
export
|
|
712
|
-
export
|
|
741
|
+
export type varStyles = "--fa-color-primary" | "--fa-color-secondary" | "--fa-color-warning" | "--fa-color-danger" | "--fa-color-success" | "--editor-card-bgcolor";
|
|
742
|
+
export type EditorWrapperProps = {
|
|
713
743
|
onChange: (data?: string) => void;
|
|
714
744
|
value?: string;
|
|
715
745
|
editorInitParams?: TPlainObject;
|
|
@@ -723,7 +753,7 @@ export declare type EditorWrapperProps = {
|
|
|
723
753
|
* @returns
|
|
724
754
|
*/
|
|
725
755
|
export declare const EditorWrapper: (props: any) => JSX.Element;
|
|
726
|
-
export
|
|
756
|
+
export type FileImportProps = {
|
|
727
757
|
onImportFinish: (data?: any) => void;
|
|
728
758
|
buttonName?: string | ReactElement;
|
|
729
759
|
children?: React.ReactNode | ((data: {
|
|
@@ -745,7 +775,7 @@ export declare const FileImport: {
|
|
|
745
775
|
accept: string;
|
|
746
776
|
};
|
|
747
777
|
};
|
|
748
|
-
export
|
|
778
|
+
export type FlexLayoutProps = {
|
|
749
779
|
className?: string;
|
|
750
780
|
fullIndex?: number | number[];
|
|
751
781
|
direction?: "vertical" | "horizontal";
|
|
@@ -764,7 +794,7 @@ export declare type FlexLayoutProps = {
|
|
|
764
794
|
* @returns
|
|
765
795
|
*/
|
|
766
796
|
export declare const FlexLayout: (props: FlexLayoutProps) => JSX.Element;
|
|
767
|
-
export
|
|
797
|
+
export type FormColProps = {
|
|
768
798
|
/** 屏幕 < 576px */
|
|
769
799
|
xs?: number;
|
|
770
800
|
/** 屏幕 ≥ 576px */
|
|
@@ -799,7 +829,7 @@ export declare const FormCol: {
|
|
|
799
829
|
(props: FormColProps): JSX.Element;
|
|
800
830
|
domTypeName: string;
|
|
801
831
|
};
|
|
802
|
-
export
|
|
832
|
+
export type FormOperateColProps = {
|
|
803
833
|
className?: string;
|
|
804
834
|
leftList?: ReactElement[];
|
|
805
835
|
rightList?: ReactElement[];
|
|
@@ -820,7 +850,7 @@ export declare const FormOperateCol: {
|
|
|
820
850
|
(props: FormOperateColProps): JSX.Element;
|
|
821
851
|
domTypeName: string;
|
|
822
852
|
};
|
|
823
|
-
export
|
|
853
|
+
export type FormRowProps = RowProps & {
|
|
824
854
|
children?: ReactNode | ReactNode[];
|
|
825
855
|
};
|
|
826
856
|
/**
|
|
@@ -831,7 +861,7 @@ export declare type FormRowProps = RowProps & {
|
|
|
831
861
|
* 3. 所有子元素中只能存在一个 FormOperateCol
|
|
832
862
|
*/
|
|
833
863
|
export declare const FormRow: (props: FormRowProps) => JSX.Element;
|
|
834
|
-
export
|
|
864
|
+
export type FormItemHorizontalUnionProps = {
|
|
835
865
|
className?: string;
|
|
836
866
|
style?: CSSProperties;
|
|
837
867
|
label?: string;
|
|
@@ -846,7 +876,7 @@ export declare type FormItemHorizontalUnionProps = {
|
|
|
846
876
|
hidden?: boolean;
|
|
847
877
|
required?: boolean;
|
|
848
878
|
};
|
|
849
|
-
export
|
|
879
|
+
export type FormItemCardProps = {
|
|
850
880
|
title?: string | ReactElement;
|
|
851
881
|
children: ReactElement | ReactElement[];
|
|
852
882
|
className?: string;
|
|
@@ -857,7 +887,7 @@ export declare const FormItemGroup: {
|
|
|
857
887
|
HorizontalUnion: (props: FormItemHorizontalUnionProps) => JSX.Element;
|
|
858
888
|
Card: import("react").FC<FormItemCardProps>;
|
|
859
889
|
};
|
|
860
|
-
export
|
|
890
|
+
export type GapProps = {
|
|
861
891
|
height?: number;
|
|
862
892
|
width?: number;
|
|
863
893
|
className?: string;
|
|
@@ -872,13 +902,13 @@ export declare type GapProps = {
|
|
|
872
902
|
export declare const Gap: (props: GapProps) => JSX.Element;
|
|
873
903
|
export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
|
|
874
904
|
export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
|
|
875
|
-
export
|
|
905
|
+
export type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
|
|
876
906
|
export declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
|
|
877
907
|
export declare const useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
|
|
878
908
|
S,
|
|
879
909
|
Dispatch<SetStateAction<S>>
|
|
880
910
|
];
|
|
881
|
-
export
|
|
911
|
+
export type IconWrapperProps = {
|
|
882
912
|
hoverTips?: string | React.ReactElement;
|
|
883
913
|
icon?: React.ReactNode;
|
|
884
914
|
style?: CSSProperties;
|
|
@@ -889,7 +919,7 @@ export declare type IconWrapperProps = {
|
|
|
889
919
|
hideHoverBgColor?: boolean;
|
|
890
920
|
};
|
|
891
921
|
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element;
|
|
892
|
-
export
|
|
922
|
+
export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
893
923
|
/**
|
|
894
924
|
* ```
|
|
895
925
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -902,7 +932,7 @@ export declare type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
|
902
932
|
* ```
|
|
903
933
|
*/
|
|
904
934
|
export declare const InputWrapper: (props: InputWrapperProps) => JSX.Element;
|
|
905
|
-
export
|
|
935
|
+
export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
906
936
|
/**
|
|
907
937
|
* ```
|
|
908
938
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -915,7 +945,7 @@ export declare type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
915
945
|
* ```
|
|
916
946
|
*/
|
|
917
947
|
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => JSX.Element;
|
|
918
|
-
export
|
|
948
|
+
export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
919
949
|
/**
|
|
920
950
|
* ```
|
|
921
951
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -928,7 +958,7 @@ export declare type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValu
|
|
|
928
958
|
* ```
|
|
929
959
|
*/
|
|
930
960
|
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => JSX.Element;
|
|
931
|
-
export
|
|
961
|
+
export type LabelValueLayoutProps = {
|
|
932
962
|
options: {
|
|
933
963
|
label: string | ReactElement;
|
|
934
964
|
value: string | number | ReactElement;
|
|
@@ -966,11 +996,11 @@ export interface ModalOperationOldProps {
|
|
|
966
996
|
okButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
967
997
|
cancelButtonProps?: Omit<ButtonProps, "onClick" | "loading" | "className">;
|
|
968
998
|
}
|
|
969
|
-
export
|
|
999
|
+
export type ModalWrapperStaticMethods = {
|
|
970
1000
|
Content: typeof ModalWrapperContent;
|
|
971
1001
|
Footer: typeof ModalWrapperFooter;
|
|
972
1002
|
};
|
|
973
|
-
export
|
|
1003
|
+
export type ModalWrapperProps = {
|
|
974
1004
|
className?: string;
|
|
975
1005
|
pageLoading?: boolean;
|
|
976
1006
|
} & Omit<ModalProps, "footer" | "onOk" | "okText" | "cancelText" | "okButtonProps" | "cancelButtonProps" | "okType" | "confirmLoading">;
|
|
@@ -1004,13 +1034,13 @@ export declare const ModalWrapper: FC<ModalWrapperProps> & ModalWrapperStaticMet
|
|
|
1004
1034
|
* ```
|
|
1005
1035
|
*/
|
|
1006
1036
|
export declare const createModalWrapperModel: (key: string) => API<ModelType<ModalStateType, ModalActionsParamType, any>>;
|
|
1007
|
-
export
|
|
1037
|
+
export type PageFixedFooterProps = {
|
|
1008
1038
|
className?: string;
|
|
1009
1039
|
style?: CSSProperties;
|
|
1010
1040
|
children?: ReactNode | ReactNode[];
|
|
1011
1041
|
};
|
|
1012
1042
|
export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element;
|
|
1013
|
-
export
|
|
1043
|
+
export type Page404Props = {
|
|
1014
1044
|
message?: string;
|
|
1015
1045
|
};
|
|
1016
1046
|
export declare const Page404: (props: Page404Props) => JSX.Element;
|
|
@@ -1070,7 +1100,7 @@ export declare const preDefinedClassName: {
|
|
|
1070
1100
|
label_value_vertical: string;
|
|
1071
1101
|
};
|
|
1072
1102
|
};
|
|
1073
|
-
export
|
|
1103
|
+
export type RelationProps = {
|
|
1074
1104
|
/** 左侧Tag+线占用宽度 */
|
|
1075
1105
|
tagLineWidth?: number;
|
|
1076
1106
|
/** 缩进宽度,配合【RelationGroup】使用 */
|
|
@@ -1092,7 +1122,7 @@ export declare type RelationProps = {
|
|
|
1092
1122
|
onlyNoMainOne?: boolean;
|
|
1093
1123
|
label?: string;
|
|
1094
1124
|
};
|
|
1095
|
-
export
|
|
1125
|
+
export type RelationTreeProps = {
|
|
1096
1126
|
className?: string;
|
|
1097
1127
|
dataSource?: TRelationTreeData;
|
|
1098
1128
|
children: (data: TRelationTreeCustomData, operate: TRelationTreeOperate, extraData?: TPlainObject) => ReactElement;
|
|
@@ -1100,46 +1130,46 @@ export declare type RelationTreeProps = {
|
|
|
1100
1130
|
relationProps?: Pick<RelationProps, "tagLineWidth" | "indentWidth" | "tagColor" | "tagWidth" | "lineColor">;
|
|
1101
1131
|
onTagClick?: (uid: string, extraData?: TPlainObject) => void;
|
|
1102
1132
|
};
|
|
1103
|
-
export
|
|
1133
|
+
export type TRelationTreeCustomData = TPlainObject & {
|
|
1104
1134
|
uid: string;
|
|
1105
1135
|
};
|
|
1106
|
-
export
|
|
1136
|
+
export type TRelationTreeRelationItem = {
|
|
1107
1137
|
uid: string;
|
|
1108
1138
|
customData?: TRelationTreeCustomData;
|
|
1109
1139
|
children?: TRelationTreeData[];
|
|
1110
1140
|
extraData?: TPlainObject;
|
|
1111
1141
|
};
|
|
1112
|
-
export
|
|
1142
|
+
export type TRelationTreeData = {
|
|
1113
1143
|
uid: string;
|
|
1114
1144
|
tagName: string;
|
|
1115
1145
|
label?: string;
|
|
1116
1146
|
relationList: TRelationTreeRelationItem[];
|
|
1117
1147
|
extraData?: TPlainObject;
|
|
1118
1148
|
};
|
|
1119
|
-
export
|
|
1149
|
+
export type TRelationTreeOperate = {
|
|
1120
1150
|
add: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeRelationItem) => void;
|
|
1121
1151
|
addChildren: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeData) => void;
|
|
1122
1152
|
remove: (uid: string) => void;
|
|
1123
1153
|
onChange: (name: string, value: any) => void;
|
|
1124
1154
|
};
|
|
1125
1155
|
export declare const RelationTree: (props: RelationTreeProps) => JSX.Element;
|
|
1126
|
-
export
|
|
1156
|
+
export type RuleDataItem = {
|
|
1127
1157
|
title: string | ReactElement;
|
|
1128
1158
|
desc: string | ReactElement;
|
|
1129
1159
|
};
|
|
1130
|
-
export
|
|
1160
|
+
export type RuleDescribeProps = {
|
|
1131
1161
|
title?: string;
|
|
1132
1162
|
showTitleIndex?: boolean;
|
|
1133
1163
|
ruleDataList: RuleDataItem[];
|
|
1134
1164
|
titleSign?: boolean;
|
|
1135
1165
|
};
|
|
1136
1166
|
export declare const RuleDescribe: (props: RuleDescribeProps) => JSX.Element;
|
|
1137
|
-
export
|
|
1167
|
+
export type SelectorWrapperSimpleServiceConfig = {
|
|
1138
1168
|
params?: TPlainObject;
|
|
1139
1169
|
onRequest: (params?: TAny) => TAny;
|
|
1140
1170
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1141
1171
|
};
|
|
1142
|
-
export
|
|
1172
|
+
export type SelectorWrapperSimpleProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "loading" | "autoClearSearchValue"> & {
|
|
1143
1173
|
fieldNames?: {
|
|
1144
1174
|
label: string;
|
|
1145
1175
|
value: string;
|
|
@@ -1176,7 +1206,7 @@ export declare type SelectorWrapperSimpleProps = Omit<SelectProps, "filterOption
|
|
|
1176
1206
|
* ```
|
|
1177
1207
|
*/
|
|
1178
1208
|
export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => JSX.Element;
|
|
1179
|
-
export
|
|
1209
|
+
export type SimpleLayoutProps = {
|
|
1180
1210
|
className?: string;
|
|
1181
1211
|
style?: CSSProperties;
|
|
1182
1212
|
title?: string | ReactElement;
|
|
@@ -1222,8 +1252,8 @@ export interface SmsCountDownProps {
|
|
|
1222
1252
|
className?: string;
|
|
1223
1253
|
}
|
|
1224
1254
|
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
1225
|
-
export
|
|
1226
|
-
export
|
|
1255
|
+
export type SwitchWrapperValue = string | number | boolean;
|
|
1256
|
+
export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked" | "onChange"> & {
|
|
1227
1257
|
value?: SwitchWrapperValue;
|
|
1228
1258
|
checkedValue: SwitchWrapperValue;
|
|
1229
1259
|
unCheckedValue: SwitchWrapperValue;
|
|
@@ -1245,22 +1275,22 @@ export declare type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultC
|
|
|
1245
1275
|
* ```
|
|
1246
1276
|
*/
|
|
1247
1277
|
export declare const SwitchWrapper: (props: SwitchWrapperProps) => JSX.Element;
|
|
1248
|
-
export
|
|
1249
|
-
export
|
|
1278
|
+
export type TagWrapperValue = string | number | boolean;
|
|
1279
|
+
export type TagWrapperDataItem = {
|
|
1250
1280
|
label: string;
|
|
1251
1281
|
value: TagWrapperValue;
|
|
1252
1282
|
color?: string;
|
|
1253
1283
|
};
|
|
1254
|
-
export
|
|
1284
|
+
export type TagWrapperColorItem = {
|
|
1255
1285
|
label: string;
|
|
1256
1286
|
value: TagWrapperValue;
|
|
1257
1287
|
};
|
|
1258
|
-
export
|
|
1288
|
+
export type TagWrapperProps = {
|
|
1259
1289
|
dataList: TagWrapperDataItem[];
|
|
1260
1290
|
/**
|
|
1261
|
-
*
|
|
1291
|
+
* 颜色配置数据,value为code、label为色值,例如:{ 1:'red', 2: 'blue'}
|
|
1262
1292
|
*/
|
|
1263
|
-
|
|
1293
|
+
colorMap?: Record<string, string>;
|
|
1264
1294
|
value?: TagWrapperValue;
|
|
1265
1295
|
forceMatch?: boolean;
|
|
1266
1296
|
};
|
|
@@ -1277,7 +1307,7 @@ export declare type TagWrapperProps = {
|
|
|
1277
1307
|
* 用法1:
|
|
1278
1308
|
* <TagWrapper
|
|
1279
1309
|
* dataList=[{ label: '启用', value: 1 }]
|
|
1280
|
-
*
|
|
1310
|
+
* colorMap={{ 1:'red', 2: 'blue'}}
|
|
1281
1311
|
* value={1} />
|
|
1282
1312
|
* =>
|
|
1283
1313
|
* <Tag color={'red'}>启用</Tag>
|
|
@@ -1302,7 +1332,7 @@ export declare const tableCellRender: {
|
|
|
1302
1332
|
* dateFormatType: 日期格式
|
|
1303
1333
|
* ```
|
|
1304
1334
|
*/
|
|
1305
|
-
dateCell: (dateFormatType?: DateFormatType) => (value: string | number) => string | number;
|
|
1335
|
+
dateCell: (dateFormatType?: DateFormatType, defaultValue?: string) => (value: string | number) => string | number | undefined;
|
|
1306
1336
|
/**
|
|
1307
1337
|
* table操作栏目渲染
|
|
1308
1338
|
* ```
|
|
@@ -1332,14 +1362,17 @@ export declare const tableCellRender: {
|
|
|
1332
1362
|
* showMaxNumber: 显示最大【字节】长度
|
|
1333
1363
|
* ```
|
|
1334
1364
|
*/
|
|
1335
|
-
tooltipCell: (showMaxNumber?: number) => (value: string | number) => string | number | JSX.Element | undefined;
|
|
1365
|
+
tooltipCell: (showMaxNumber?: number, defaultValue?: string) => (value: string | number) => string | number | JSX.Element | undefined;
|
|
1336
1366
|
/**
|
|
1337
1367
|
* ```
|
|
1338
|
-
* 使用方式
|
|
1368
|
+
* 使用方式1
|
|
1339
1369
|
* tableCellRender.selectorCell([{ label: '已开启', value: 1, color: '#108ee9' }])
|
|
1370
|
+
*
|
|
1371
|
+
* 使用方式2
|
|
1372
|
+
* tableCellRender.selectorCell([{ label: '已开启', value: 1 }], { 1: '#108ee9' })
|
|
1340
1373
|
* ```
|
|
1341
1374
|
*/
|
|
1342
|
-
selectorCell: (selectorList: TagWrapperProps["dataList"],
|
|
1375
|
+
selectorCell: (selectorList: TagWrapperProps["dataList"], colorMap?: TagWrapperProps["colorMap"]) => (value: string | number) => JSX.Element;
|
|
1343
1376
|
/**
|
|
1344
1377
|
* 单元格对象数据处理,支持多级处理
|
|
1345
1378
|
* ```
|
|
@@ -1348,16 +1381,47 @@ export declare const tableCellRender: {
|
|
|
1348
1381
|
*/
|
|
1349
1382
|
objectCell: (key: string) => (value?: TPlainObject) => any;
|
|
1350
1383
|
};
|
|
1351
|
-
export
|
|
1384
|
+
export type TableTitleTooltipProps = {
|
|
1385
|
+
title: string;
|
|
1386
|
+
tooltip: string | {
|
|
1387
|
+
icon: ReactElement;
|
|
1388
|
+
content: string;
|
|
1389
|
+
};
|
|
1390
|
+
gap?: number;
|
|
1391
|
+
className?: string;
|
|
1392
|
+
style?: CSSProperties;
|
|
1393
|
+
};
|
|
1394
|
+
export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => JSX.Element;
|
|
1395
|
+
export type TabsWrapperProps = TabsProps & {
|
|
1396
|
+
/** Tabs Header 提供 Sticky 效果 */
|
|
1397
|
+
isSticky?: boolean;
|
|
1398
|
+
};
|
|
1399
|
+
/**
|
|
1400
|
+
* Tabs 包装组件
|
|
1401
|
+
* ```
|
|
1402
|
+
* 1. Tabs Header 提供 Sticky 效果
|
|
1403
|
+
* 2. 使用时,父级必须要有高度,可置于Flex布局中
|
|
1404
|
+
* ```
|
|
1405
|
+
*/
|
|
1406
|
+
export declare const TabsWrapper: (props: TabsWrapperProps) => JSX.Element;
|
|
1407
|
+
export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange" | "format"> & {
|
|
1352
1408
|
value?: string;
|
|
1353
1409
|
onChange?: (value?: string) => void;
|
|
1354
1410
|
/**
|
|
1355
|
-
* minTime、maxTime
|
|
1411
|
+
* 1. minTime、maxTime设置为 DayjsTimeTypeEnum,默认格式:DayjsTimeTypeEnum.Hms
|
|
1412
|
+
* 2. minTime、maxTime格式必须与 format 相同
|
|
1356
1413
|
*/
|
|
1357
1414
|
disabledTimeConfig?: {
|
|
1358
1415
|
minTime?: string;
|
|
1359
1416
|
maxTime?: string;
|
|
1417
|
+
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1418
|
+
disabledHourList?: number[];
|
|
1419
|
+
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
1420
|
+
disabledMinuteList?: number[];
|
|
1421
|
+
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1422
|
+
disabledSecondList?: number[];
|
|
1360
1423
|
};
|
|
1424
|
+
format?: DayjsTimeTypeEnum;
|
|
1361
1425
|
};
|
|
1362
1426
|
/**
|
|
1363
1427
|
* TimePicker组件包装
|
|
@@ -1366,11 +1430,11 @@ export declare type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "on
|
|
|
1366
1430
|
* 2. onChange返回类型 string
|
|
1367
1431
|
* 3. 默认格式化类型 HH:mm:ss
|
|
1368
1432
|
* 4. 其他格式化类型自定义format
|
|
1369
|
-
* 5. 设置disabledTime后,
|
|
1433
|
+
* 5. 设置disabledTime后,disabledTimeConfig配置将失效
|
|
1370
1434
|
* ```
|
|
1371
1435
|
*/
|
|
1372
1436
|
export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => JSX.Element;
|
|
1373
|
-
export
|
|
1437
|
+
export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "onChange" | "format"> & {
|
|
1374
1438
|
value?: [
|
|
1375
1439
|
string,
|
|
1376
1440
|
string
|
|
@@ -1380,18 +1444,21 @@ export declare type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "va
|
|
|
1380
1444
|
string
|
|
1381
1445
|
]) => void;
|
|
1382
1446
|
/**
|
|
1383
|
-
* minTime、maxTime设置格式,默认格式:
|
|
1447
|
+
* 1. minTime、maxTime设置格式,默认格式:DayjsTimeTypeEnum.Hms
|
|
1448
|
+
* 2. minTime、maxTime格式必须与 format 相同
|
|
1384
1449
|
*/
|
|
1385
1450
|
disabledTimeConfig?: {
|
|
1386
1451
|
minTime?: string;
|
|
1387
1452
|
maxTime?: string;
|
|
1453
|
+
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1454
|
+
disabledHourList?: number[];
|
|
1455
|
+
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
1456
|
+
disabledMinuteList?: number[];
|
|
1457
|
+
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1458
|
+
disabledSecondList?: number[];
|
|
1388
1459
|
};
|
|
1460
|
+
format?: DayjsTimeTypeEnum;
|
|
1389
1461
|
};
|
|
1390
|
-
export declare type EventValue<DateType> = DateType | null;
|
|
1391
|
-
export declare type RangeValue<DateType> = [
|
|
1392
|
-
EventValue<DateType>,
|
|
1393
|
-
EventValue<DateType>
|
|
1394
|
-
] | null;
|
|
1395
1462
|
/**
|
|
1396
1463
|
* TimePicker组件包装
|
|
1397
1464
|
* ```
|
|
@@ -1402,7 +1469,7 @@ export declare type RangeValue<DateType> = [
|
|
|
1402
1469
|
* ```
|
|
1403
1470
|
*/
|
|
1404
1471
|
export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => JSX.Element;
|
|
1405
|
-
export
|
|
1472
|
+
export type TimeRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
1406
1473
|
/**
|
|
1407
1474
|
* 开始的时间name
|
|
1408
1475
|
*/
|
|
@@ -1425,8 +1492,8 @@ export declare type TimeRangePickerWrapperFormItemProps = Omit<FormItemProps, "n
|
|
|
1425
1492
|
* ```
|
|
1426
1493
|
*/
|
|
1427
1494
|
export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => JSX.Element;
|
|
1428
|
-
export
|
|
1429
|
-
export
|
|
1495
|
+
export type TreeSelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
1496
|
+
export type TreeSelectorServiceConfig = {
|
|
1430
1497
|
params?: TPlainObject;
|
|
1431
1498
|
requiredParamsKeys?: string[];
|
|
1432
1499
|
onRequest?: (params?: any) => any;
|
|
@@ -1435,7 +1502,7 @@ export declare type TreeSelectorServiceConfig = {
|
|
|
1435
1502
|
*/
|
|
1436
1503
|
onRequestResultAdapter?: (respData: any) => TPlainObject[];
|
|
1437
1504
|
};
|
|
1438
|
-
export
|
|
1505
|
+
export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys" | "treeData" | "loading" | "onTreeExpand" | "onChange" | "value" | "fieldNames"> & {
|
|
1439
1506
|
modelKey: string;
|
|
1440
1507
|
fieldNames?: {
|
|
1441
1508
|
label?: string;
|
|
@@ -1526,8 +1593,8 @@ export declare type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpand
|
|
|
1526
1593
|
* ```
|
|
1527
1594
|
*/
|
|
1528
1595
|
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => JSX.Element;
|
|
1529
|
-
export
|
|
1530
|
-
export
|
|
1596
|
+
export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
1597
|
+
export type TreeServiceConfig = {
|
|
1531
1598
|
params?: TPlainObject;
|
|
1532
1599
|
requiredParamsKeys?: string[];
|
|
1533
1600
|
onRequest?: (params?: TAny) => TAny;
|
|
@@ -1536,7 +1603,7 @@ export declare type TreeServiceConfig = {
|
|
|
1536
1603
|
*/
|
|
1537
1604
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1538
1605
|
};
|
|
1539
|
-
export
|
|
1606
|
+
export type TreeLoadDataServiceConfig = {
|
|
1540
1607
|
getParams: (dataItem: TPlainObject) => TPlainObject;
|
|
1541
1608
|
onRequest: (params: TPlainObject) => TAny;
|
|
1542
1609
|
/**
|
|
@@ -1544,12 +1611,12 @@ export declare type TreeLoadDataServiceConfig = {
|
|
|
1544
1611
|
*/
|
|
1545
1612
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1546
1613
|
};
|
|
1547
|
-
export
|
|
1614
|
+
export type TreeWrapperMenuItem = {
|
|
1548
1615
|
title: string;
|
|
1549
1616
|
onClick: (dataItem: TPlainObject, event: any) => void;
|
|
1550
1617
|
icon?: ReactElement;
|
|
1551
1618
|
};
|
|
1552
|
-
export
|
|
1619
|
+
export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "defaultCheckedKeys" | "defaultSelectedKeys" | "fieldNames" | "multiple" | "loadData" | "icon"> & {
|
|
1553
1620
|
modelKey: string;
|
|
1554
1621
|
/**
|
|
1555
1622
|
* useEffect依赖项数组,用于重新发起获取接口数据
|
|
@@ -1627,7 +1694,7 @@ export declare type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeDat
|
|
|
1627
1694
|
disabledCanUse?: boolean;
|
|
1628
1695
|
treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
1629
1696
|
};
|
|
1630
|
-
export
|
|
1697
|
+
export type TreeWrapperRefApi = {
|
|
1631
1698
|
onClearSelectorList: () => void;
|
|
1632
1699
|
getTreeDataList: () => TreeProps["treeData"];
|
|
1633
1700
|
};
|
|
@@ -1646,7 +1713,7 @@ export declare type TreeWrapperRefApi = {
|
|
|
1646
1713
|
* 5. 设置loadDataFlag=true,会动态获取children,当treeNode中包含isLeaf=true字段,表示为叶子节点,没有children了
|
|
1647
1714
|
* ```
|
|
1648
1715
|
*/
|
|
1649
|
-
export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit<TreeProps<import("antd").TreeDataNode>, "
|
|
1716
|
+
export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit<TreeProps<import("antd").TreeDataNode>, "multiple" | "icon" | "onSelect" | "checkedKeys" | "selectedKeys" | "fieldNames" | "defaultSelectedKeys" | "loadData" | "onExpand" | "expandedKeys" | "treeData" | "defaultCheckedKeys" | "onCheck"> & {
|
|
1650
1717
|
modelKey: string;
|
|
1651
1718
|
/**
|
|
1652
1719
|
* useEffect依赖项数组,用于重新发起获取接口数据
|