@xxlabs/antd-plus 1.5.0 → 1.5.2
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/dist/index.d.ts +462 -772
- package/dist/index.js +1721 -2119
- package/package.json +48 -56
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _$antd from "antd";
|
|
2
2
|
import { AffixProps, AvatarProps, BadgeProps, Breadcrumb, BreadcrumbProps, ButtonProps, CascaderProps, CheckboxProps, ColProps, ColorPickerProps, DatePickerProps, DescriptionsProps, DividerProps, DrawerProps, Form, FormInstance, FormItemProps, FormProps, ImageProps, InputNumberProps, InputProps, ListProps, MenuItemProps, MenuProps, ModalProps, PopoverProps, ProgressProps, Radio, RadioGroupProps, RadioProps, RateProps, RowProps, SegmentedProps, SelectProps, SiderProps, SliderSingleProps, SpaceProps, SpinProps, StatisticProps as StatisticProps$1, StepsProps, SwitchProps, TabPaneProps, TableColumnType, TablePaginationConfig, TableProps, TabsProps, TagType, TimeRangePickerProps, TreeSelectProps, UploadProps, WatermarkProps, theme } from "antd";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _$react from "react";
|
|
4
4
|
import { AnchorHTMLAttributes, CSSProperties, Component, ComponentClass, Context, DependencyList, Dispatch, EffectCallback, FC, ForwardRefExoticComponent, HTMLAttributes, JSX, Key, MouseEvent, MouseEventHandler, PropsWithChildren, ReactElement, ReactNode, Ref, RefObject, SetStateAction } from "react";
|
|
5
5
|
import { CSSInterpolation, CSSObject } from "@ant-design/cssinjs";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
|
-
import "dayjs/locale/zh-cn";
|
|
8
7
|
import { useMergedState } from "@rc-component/util";
|
|
9
|
-
import * as
|
|
10
|
-
import * as safe_stable_stringify0 from "safe-stable-stringify";
|
|
11
|
-
import * as _rc_component_form0 from "@rc-component/form";
|
|
8
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
|
+
import * as _$safe_stable_stringify0 from "safe-stable-stringify";
|
|
10
|
+
import * as _$_rc_component_form0 from "@rc-component/form";
|
|
12
11
|
import { MenuDataItem as MenuDataItem$1 } from "@umijs/route-utils";
|
|
13
|
-
import {
|
|
14
|
-
import { GlobalToken } from "antd/es/theme/interface";
|
|
15
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
16
|
-
import { TooltipPlacement } from "antd/es/tooltip";
|
|
17
|
-
import { NamePath } from "antd/es/form/interface";
|
|
18
|
-
import { DatePickerProps as DatePickerProps$1, RangePickerProps, WeekPickerProps } from "antd/es/date-picker";
|
|
19
|
-
import * as antd_es_form0 from "antd/es/form";
|
|
20
|
-
import { FormInstance as FormInstance$1, FormItemProps as FormItemProps$1 } from "antd/es/form";
|
|
21
|
-
import { GroupProps, InputRef, PasswordProps, SearchProps, TextAreaProps } from "antd/es/input";
|
|
22
|
-
import { SliderBaseProps, SliderRangeProps } from "antd/es/slider";
|
|
23
|
-
import { AnyObject } from "antd/es/_util/type";
|
|
24
|
-
import { ColumnFilterItem, ColumnType, CompareFn, ExpandableConfig, GetRowKey, SortOrder } from "antd/es/table/interface";
|
|
25
|
-
import { CheckboxGroupProps } from "antd/es/checkbox";
|
|
26
|
-
import { FormListFieldData, FormListOperation, FormListProps } from "antd/es/form/FormList";
|
|
27
|
-
import * as antd_es_form_Form0 from "antd/es/form/Form";
|
|
28
|
-
import { FormProps as FormProps$1 } from "antd/es/form/Form";
|
|
29
|
-
import * as antd_es_form_context0 from "antd/es/form/context";
|
|
30
|
-
import { FormProviderProps } from "antd/es/form/context";
|
|
31
|
-
import * as antd_es_form_hooks_useFormInstance0 from "antd/es/form/hooks/useFormInstance";
|
|
32
|
-
import { BaseOptionType } from "antd/es/cascader";
|
|
33
|
-
import { DefaultOptionType, RefSelectProps } from "antd/es/select";
|
|
34
|
-
import { TextAreaRef } from "antd/es/input/TextArea";
|
|
35
|
-
import { DraggerProps, UploadProps as UploadProps$1 } from "antd/es/upload";
|
|
36
|
-
import { ItemType } from "antd/es/breadcrumb/Breadcrumb";
|
|
37
|
-
import * as _rc_component_table_lib_Footer_Summary0 from "@rc-component/table/lib/Footer/Summary";
|
|
38
|
-
import * as _rc_component_table_lib_Footer_Row0 from "@rc-component/table/lib/Footer/Row";
|
|
39
|
-
import * as _rc_component_table_lib_Footer_Cell0 from "@rc-component/table/lib/Footer/Cell";
|
|
40
|
-
import { ListGridType } from "antd/es/list";
|
|
12
|
+
import { FormItemTooltipType } from "antd/es/form/FormItemLabel.js";
|
|
13
|
+
import { GlobalToken } from "antd/es/theme/interface/index.js";
|
|
14
|
+
import { SizeType } from "antd/es/config-provider/SizeContext.js";
|
|
15
|
+
import { TooltipPlacement } from "antd/es/tooltip/index.js";
|
|
16
|
+
import { NamePath } from "antd/es/form/interface.js";
|
|
17
|
+
import { DatePickerProps as DatePickerProps$1, RangePickerProps, WeekPickerProps } from "antd/es/date-picker/index.js";
|
|
18
|
+
import * as _$antd_es_form0 from "antd/es/form/index.js";
|
|
19
|
+
import { FormInstance as FormInstance$1, FormItemProps as FormItemProps$1 } from "antd/es/form/index.js";
|
|
20
|
+
import { GroupProps, InputRef, PasswordProps, SearchProps, TextAreaProps } from "antd/es/input/index.js";
|
|
21
|
+
import { SliderBaseProps, SliderRangeProps } from "antd/es/slider/index.js";
|
|
22
|
+
import { AnyObject } from "antd/es/_util/type.js";
|
|
23
|
+
import { ColumnFilterItem, ColumnType, CompareFn, ExpandableConfig, GetRowKey, SortOrder } from "antd/es/table/interface.js";
|
|
24
|
+
import { CheckboxGroupProps } from "antd/es/checkbox/index.js";
|
|
25
|
+
import { FormListFieldData, FormListOperation, FormListProps } from "antd/es/form/FormList.js";
|
|
26
|
+
import * as _$antd_es_form_Form0 from "antd/es/form/Form.js";
|
|
27
|
+
import { FormProps as FormProps$1 } from "antd/es/form/Form.js";
|
|
28
|
+
import * as _$antd_es_form_context0 from "antd/es/form/context.js";
|
|
29
|
+
import { FormProviderProps } from "antd/es/form/context.js";
|
|
30
|
+
import * as _$antd_es_form_hooks_useFormInstance0 from "antd/es/form/hooks/useFormInstance.js";
|
|
31
|
+
import { BaseOptionType } from "antd/es/cascader/index.js";
|
|
32
|
+
import { DefaultOptionType, RefSelectProps } from "antd/es/select/index.js";
|
|
33
|
+
import { TextAreaRef } from "antd/es/input/TextArea.js";
|
|
34
|
+
import { DraggerProps, UploadProps as UploadProps$1 } from "antd/es/upload/index.js";
|
|
35
|
+
import { ItemType } from "antd/es/breadcrumb/Breadcrumb.js";
|
|
36
|
+
import * as _$_rc_component_table_lib_Footer_Summary0 from "@rc-component/table/lib/Footer/Summary.js";
|
|
37
|
+
import * as _$_rc_component_table_lib_Footer_Row0 from "@rc-component/table/lib/Footer/Row.js";
|
|
38
|
+
import * as _$_rc_component_table_lib_Footer_Cell0 from "@rc-component/table/lib/Footer/Cell.js";
|
|
39
|
+
import { ListGridType } from "antd/es/list/index.js";
|
|
41
40
|
|
|
42
41
|
//#region src/card/components/CheckCard/Group.d.ts
|
|
43
42
|
type CheckCardValueType = string | number | boolean;
|
|
@@ -360,87 +359,56 @@ type Gutter = number | Partial<Record<Breakpoint, number>>;
|
|
|
360
359
|
type ColSpanType = number | string;
|
|
361
360
|
type CollapsibleType = 'icon' | 'header' | boolean;
|
|
362
361
|
type CardPropsBase = {
|
|
363
|
-
/** 标题样式 */
|
|
364
|
-
|
|
365
|
-
/** 内容样式 */
|
|
366
|
-
bodyStyle?: CSSProperties;
|
|
367
|
-
/** 样式配置 */
|
|
362
|
+
/** 标题样式 */headStyle?: CSSProperties; /** 内容样式 */
|
|
363
|
+
bodyStyle?: CSSProperties; /** 样式配置 */
|
|
368
364
|
styles?: {
|
|
369
365
|
header?: CSSProperties;
|
|
370
366
|
body?: CSSProperties;
|
|
371
|
-
};
|
|
372
|
-
/**
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
layout?: 'default' | 'center';
|
|
384
|
-
/** 卡片类型 */
|
|
385
|
-
type?: 'default' | 'inner';
|
|
386
|
-
/** 指定 Flex 方向,仅在嵌套子卡片时有效 */
|
|
387
|
-
direction?: 'column' | 'row';
|
|
388
|
-
/** 是否自动换行,仅在嵌套子卡片时有效 */
|
|
389
|
-
wrap?: boolean;
|
|
390
|
-
/** 尺寸 */
|
|
391
|
-
size?: 'default' | 'small';
|
|
392
|
-
/** 加载中 */
|
|
393
|
-
loading?: boolean | ReactNode;
|
|
394
|
-
/** 栅格布局宽度,24 栅格,支持指定宽度或百分,需要支持响应式 colSpan={{ xs: 12, sm: 6 }} */
|
|
367
|
+
}; /** 页头是否有分割线 */
|
|
368
|
+
headerBordered?: boolean; /** 卡片标题 */
|
|
369
|
+
title?: ReactNode; /** 副标题 */
|
|
370
|
+
subTitle?: ReactNode; /** 标题说明 */
|
|
371
|
+
tooltip?: string | FormItemTooltipType; /** 右上角自定义区域 */
|
|
372
|
+
extra?: ReactNode; /** 布局,center 代表垂直居中 */
|
|
373
|
+
layout?: 'default' | 'center'; /** 卡片类型 */
|
|
374
|
+
type?: 'default' | 'inner'; /** 指定 Flex 方向,仅在嵌套子卡片时有效 */
|
|
375
|
+
direction?: 'column' | 'row'; /** 是否自动换行,仅在嵌套子卡片时有效 */
|
|
376
|
+
wrap?: boolean; /** 尺寸 */
|
|
377
|
+
size?: 'default' | 'small'; /** 加载中 */
|
|
378
|
+
loading?: boolean | ReactNode; /** 栅格布局宽度,24 栅格,支持指定宽度或百分,需要支持响应式 colSpan={{ xs: 12, sm: 6 }} */
|
|
395
379
|
colSpan?: ColSpanType | Partial<Record<Breakpoint, ColSpanType>>;
|
|
396
|
-
colStyle?: CSSProperties;
|
|
397
|
-
/**
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
actions?: ReactNode[] | ReactNode;
|
|
401
|
-
/** 拆分卡片方式 */
|
|
402
|
-
split?: 'vertical' | 'horizontal';
|
|
403
|
-
/** Card variants */
|
|
380
|
+
colStyle?: CSSProperties; /** 栅格间距 */
|
|
381
|
+
gutter?: Gutter | Gutter[]; /** 操作按钮 */
|
|
382
|
+
actions?: ReactNode[] | ReactNode; /** 拆分卡片方式 */
|
|
383
|
+
split?: 'vertical' | 'horizontal'; /** Card variants */
|
|
404
384
|
variant?: 'outlined' | 'borderless';
|
|
405
385
|
/**
|
|
406
386
|
* 鼠标移过时可浮起
|
|
407
387
|
*
|
|
408
388
|
* @default false
|
|
409
389
|
*/
|
|
410
|
-
hoverable?: boolean;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
collapsible?: CollapsibleType;
|
|
415
|
-
/** 受控 collapsed 属性 */
|
|
416
|
-
collapsed?: boolean;
|
|
417
|
-
/** 折叠按钮自定义节点 */
|
|
390
|
+
hoverable?: boolean; /** 幽灵模式,即是否取消卡片内容区域的 padding 和 背景颜色。 */
|
|
391
|
+
ghost?: boolean; /** 是否可折叠 */
|
|
392
|
+
collapsible?: CollapsibleType; /** 受控 collapsed 属性 */
|
|
393
|
+
collapsed?: boolean; /** 折叠按钮自定义节点 */
|
|
418
394
|
collapsibleIconRender?: ({
|
|
419
395
|
collapsed
|
|
420
396
|
}: {
|
|
421
397
|
collapsed: boolean;
|
|
422
|
-
}) => ReactNode;
|
|
423
|
-
/**
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
|
|
429
|
-
/** ProCard 的 ref */
|
|
430
|
-
ref?: Ref<HTMLDivElement>;
|
|
431
|
-
/** 是否展示选中样式 */
|
|
432
|
-
checked?: boolean;
|
|
433
|
-
/** 选中改变 */
|
|
434
|
-
onChecked?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
435
|
-
/** card的阴影 */
|
|
398
|
+
}) => ReactNode; /** 配置默认是否折叠 */
|
|
399
|
+
defaultCollapsed?: boolean; /** 收起卡片的事件 */
|
|
400
|
+
onCollapse?: (collapsed: boolean) => void; /** 前缀 */
|
|
401
|
+
prefixCls?: string; /** ProCard 的 ref */
|
|
402
|
+
ref?: Ref<HTMLDivElement>; /** 是否展示选中样式 */
|
|
403
|
+
checked?: boolean; /** 选中改变 */
|
|
404
|
+
onChecked?: (e: MouseEvent<HTMLDivElement>) => void; /** card的阴影 */
|
|
436
405
|
boxShadow?: boolean;
|
|
437
406
|
};
|
|
438
407
|
type ProCardTabsProps = {
|
|
439
408
|
cardProps?: CardPropsBase;
|
|
440
409
|
} & TabsProps;
|
|
441
410
|
type CardProps = {
|
|
442
|
-
/** 标签栏配置 */
|
|
443
|
-
tabs?: ProCardTabsProps;
|
|
411
|
+
/** 标签栏配置 */tabs?: ProCardTabsProps;
|
|
444
412
|
} & CardPropsBase & Omit<HTMLAttributes<HTMLDivElement>, 'title'>;
|
|
445
413
|
type CardType = ForwardRefExoticComponent<CardProps>;
|
|
446
414
|
//#endregion
|
|
@@ -487,13 +455,9 @@ declare const ProCardOperation: FC<ProCardOperationProps>;
|
|
|
487
455
|
//#endregion
|
|
488
456
|
//#region src/card/components/StatisticCard/index.d.ts
|
|
489
457
|
type StatisticCardProps = {
|
|
490
|
-
/** 图表配置 */
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
statistic?: StatisticProps;
|
|
494
|
-
/** Chart 相对于 statistic 的位置 */
|
|
495
|
-
chartPlacement?: 'right' | 'bottom' | 'left';
|
|
496
|
-
/** 底部额外展示区域 */
|
|
458
|
+
/** 图表配置 */chart?: ReactNode; /** 数值统计配置 */
|
|
459
|
+
statistic?: StatisticProps; /** Chart 相对于 statistic 的位置 */
|
|
460
|
+
chartPlacement?: 'right' | 'bottom' | 'left'; /** 底部额外展示区域 */
|
|
497
461
|
footer?: ReactNode;
|
|
498
462
|
} & CardProps;
|
|
499
463
|
declare const StatisticCard: FC<StatisticCardProps> & {
|
|
@@ -512,7 +476,7 @@ type ProCardType = CardType & {
|
|
|
512
476
|
Divider: typeof ProCardDivider;
|
|
513
477
|
Group: typeof Group$1;
|
|
514
478
|
};
|
|
515
|
-
declare const Group$1: (props: PropsWithChildren<CardProps>) =>
|
|
479
|
+
declare const Group$1: (props: PropsWithChildren<CardProps>) => _$react_jsx_runtime0.JSX.Element;
|
|
516
480
|
declare const ProCard: ProCardType;
|
|
517
481
|
//#endregion
|
|
518
482
|
//#region src/provider/intl.d.ts
|
|
@@ -712,7 +676,7 @@ declare const setAlpha: (baseColor: string, alpha: number) => string;
|
|
|
712
676
|
* @returns hexColor {string}
|
|
713
677
|
*/
|
|
714
678
|
declare const lighten: (baseColor: string, brightness: number) => string;
|
|
715
|
-
type GenerateStyle<ComponentToken extends object = GlobalToken, ReturnType
|
|
679
|
+
type GenerateStyle<ComponentToken extends object = GlobalToken, ReturnType = CSSInterpolation> = (token: ComponentToken, ...rest: any[]) => ReturnType;
|
|
716
680
|
declare const proTheme: typeof theme;
|
|
717
681
|
type UseStyleResult = {
|
|
718
682
|
wrapSSR: (node: ReactElement) => ReactElement;
|
|
@@ -742,7 +706,7 @@ declare const operationUnit: (token: ProAliasToken) => CSSObject;
|
|
|
742
706
|
* @returns UseStyleResult
|
|
743
707
|
*/
|
|
744
708
|
declare function useStyle(componentName: string, styleFn: (token: ProAliasToken) => CSSInterpolation): {
|
|
745
|
-
wrapSSR: (node: ReactElement) => ReactElement<unknown, string |
|
|
709
|
+
wrapSSR: (node: ReactElement) => ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
746
710
|
hashId: string;
|
|
747
711
|
};
|
|
748
712
|
//#endregion
|
|
@@ -758,13 +722,9 @@ declare const isNeedOpenHash: () => boolean;
|
|
|
758
722
|
* 用于配置 ValueEnum 的通用配置
|
|
759
723
|
*/
|
|
760
724
|
type ProSchemaValueEnumType = {
|
|
761
|
-
/** @name 演示的文案 */
|
|
762
|
-
|
|
763
|
-
/** @name
|
|
764
|
-
status?: string;
|
|
765
|
-
/** @name 自定义的颜色 */
|
|
766
|
-
color?: string;
|
|
767
|
-
/** @name 是否禁用 */
|
|
725
|
+
/** @name 演示的文案 */text: ReactNode; /** @name 预定的颜色 */
|
|
726
|
+
status?: string; /** @name 自定义的颜色 */
|
|
727
|
+
color?: string; /** @name 是否禁用 */
|
|
768
728
|
disabled?: boolean;
|
|
769
729
|
};
|
|
770
730
|
/**
|
|
@@ -781,9 +741,7 @@ type ProSchemaValueEnumObj$1 = Record<string, ProSchemaValueEnumType | ReactNode
|
|
|
781
741
|
* BaseProFieldFC 的类型设置
|
|
782
742
|
*/
|
|
783
743
|
type BaseProFieldFC = {
|
|
784
|
-
/** 值的类型 */
|
|
785
|
-
text: ReactNode;
|
|
786
|
-
/** 放置到组件上 props */
|
|
744
|
+
/** 值的类型 */text: ReactNode; /** 放置到组件上 props */
|
|
787
745
|
fieldProps?: any;
|
|
788
746
|
/**
|
|
789
747
|
* 组件的渲染模式类型
|
|
@@ -794,14 +752,10 @@ type BaseProFieldFC = {
|
|
|
794
752
|
/**
|
|
795
753
|
* 简约模式
|
|
796
754
|
*/
|
|
797
|
-
plain?: boolean;
|
|
798
|
-
/**
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
label?: ReactNode;
|
|
802
|
-
/** 映射值的类型 */
|
|
803
|
-
valueEnum?: ProSchemaValueEnumObj$1 | ProSchemaValueEnumMap$1;
|
|
804
|
-
/** 唯一的key,用于网络请求 */
|
|
755
|
+
plain?: boolean; /** 轻量模式 */
|
|
756
|
+
light?: boolean; /** Label */
|
|
757
|
+
label?: ReactNode; /** 映射值的类型 */
|
|
758
|
+
valueEnum?: ProSchemaValueEnumObj$1 | ProSchemaValueEnumMap$1; /** 唯一的key,用于网络请求 */
|
|
805
759
|
proFieldKey?: Key;
|
|
806
760
|
};
|
|
807
761
|
type ProFieldFCMode = 'read' | 'edit' | 'update';
|
|
@@ -843,7 +797,7 @@ type ConfigContextPropsType = {
|
|
|
843
797
|
dark?: boolean;
|
|
844
798
|
prefixCls?: string;
|
|
845
799
|
};
|
|
846
|
-
declare const ConfigConsumer:
|
|
800
|
+
declare const ConfigConsumer: _$react.Consumer<ConfigContextPropsType>;
|
|
847
801
|
/**
|
|
848
802
|
* 用于配置 Pro 的一些全局性的东西
|
|
849
803
|
* @param props
|
|
@@ -869,7 +823,7 @@ declare const ProConfigProvider: FC<{
|
|
|
869
823
|
* @returns The return value of the function is the intl object.
|
|
870
824
|
*/
|
|
871
825
|
declare function useIntl(): IntlType;
|
|
872
|
-
declare const ProProvider:
|
|
826
|
+
declare const ProProvider: _$react.Context<ConfigContextPropsType>;
|
|
873
827
|
//#endregion
|
|
874
828
|
//#region src/utils/components/DropdownFooter/index.d.ts
|
|
875
829
|
type LightFilterFooterRender$1 = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -898,7 +852,7 @@ declare class ErrorBoundary extends Component<{
|
|
|
898
852
|
errorInfo: string;
|
|
899
853
|
};
|
|
900
854
|
componentDidCatch(): void;
|
|
901
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
855
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
902
856
|
}
|
|
903
857
|
//#endregion
|
|
904
858
|
//#region src/utils/components/FieldLabel/index.d.ts
|
|
@@ -923,7 +877,7 @@ type FieldLabelProps = {
|
|
|
923
877
|
*/
|
|
924
878
|
onLabelClick?: () => void;
|
|
925
879
|
};
|
|
926
|
-
declare const FieldLabel:
|
|
880
|
+
declare const FieldLabel: _$react.ForwardRefExoticComponent<FieldLabelProps & _$react.RefAttributes<any>>;
|
|
927
881
|
//#endregion
|
|
928
882
|
//#region src/utils/components/FilterDropdown/index.d.ts
|
|
929
883
|
type FooterRender = ((onConfirm?: ButtonProps['onClick'], onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
@@ -956,7 +910,7 @@ interface InlineErrorFormItemProps extends FormItemProps {
|
|
|
956
910
|
popoverProps?: PopoverProps;
|
|
957
911
|
children: any;
|
|
958
912
|
}
|
|
959
|
-
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) =>
|
|
913
|
+
declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => _$react_jsx_runtime0.JSX.Element;
|
|
960
914
|
//#endregion
|
|
961
915
|
//#region src/utils/components/LabelIconTip/index.d.ts
|
|
962
916
|
/**
|
|
@@ -967,7 +921,7 @@ declare const InlineErrorFormItem: (props: InlineErrorFormItemProps) => react_js
|
|
|
967
921
|
declare const LabelIconTip: FC<{
|
|
968
922
|
label: ReactNode;
|
|
969
923
|
subTitle?: ReactNode;
|
|
970
|
-
tooltip?: string |
|
|
924
|
+
tooltip?: string | FormItemTooltipType;
|
|
971
925
|
ellipsis?: boolean | {
|
|
972
926
|
showTitle?: boolean;
|
|
973
927
|
};
|
|
@@ -1009,7 +963,7 @@ type ProFormInstanceType<T> = {
|
|
|
1009
963
|
*/
|
|
1010
964
|
validateFieldsReturnFormatValue?: (nameList?: NamePath[]) => Promise<T>;
|
|
1011
965
|
};
|
|
1012
|
-
declare const ProFormContext:
|
|
966
|
+
declare const ProFormContext: _$react.Context<ProFormInstanceType<any> & {
|
|
1013
967
|
formRef?: RefObject<FormInstance<any>>;
|
|
1014
968
|
}>;
|
|
1015
969
|
//#endregion
|
|
@@ -1020,8 +974,7 @@ declare const recordKeyToString: (rowKey: RecordKey) => Key;
|
|
|
1020
974
|
type AddLineOptions = {
|
|
1021
975
|
position?: 'top' | 'bottom';
|
|
1022
976
|
recordKey?: RecordKey;
|
|
1023
|
-
newRecordType?: 'dataSource' | 'cache';
|
|
1024
|
-
/** 要增加到哪个节点下,一般用于多重嵌套表格 */
|
|
977
|
+
newRecordType?: 'dataSource' | 'cache'; /** 要增加到哪个节点下,一般用于多重嵌套表格 */
|
|
1025
978
|
parentKey?: RecordKey;
|
|
1026
979
|
};
|
|
1027
980
|
type NewLineConfig<T> = {
|
|
@@ -1034,63 +987,55 @@ type ActionRenderFunction<T> = (row: T, config: ActionRenderConfig<T, NewLineCon
|
|
|
1034
987
|
cancel: ReactNode;
|
|
1035
988
|
}) => ReactNode[];
|
|
1036
989
|
type RowEditableConfig<DataType> = {
|
|
1037
|
-
/** @name 控制可编辑表格的 From的设置 */
|
|
1038
|
-
formProps?: Omit<FormProps<DataType> & {
|
|
990
|
+
/** @name 控制可编辑表格的 From的设置 */formProps?: Omit<FormProps<DataType> & {
|
|
1039
991
|
formRef?: Ref<FormInstance | undefined>;
|
|
1040
992
|
onInit?: (values: DataType, form: FormInstance) => void;
|
|
1041
|
-
}, 'onFinish'>;
|
|
1042
|
-
/** @name 控制可编辑表格的 form */
|
|
993
|
+
}, 'onFinish'>; /** @name 控制可编辑表格的 form */
|
|
1043
994
|
form?: FormInstance;
|
|
1044
995
|
/**
|
|
1045
996
|
* @type single | multiple
|
|
1046
997
|
* @name 编辑的类型,支持单选和多选
|
|
1047
998
|
*/
|
|
1048
|
-
type?: RowEditableType;
|
|
1049
|
-
/**
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
|
|
1053
|
-
/** 正在编辑的列修改的时候 */
|
|
1054
|
-
onValuesChange?: (record: DataType, dataSource: DataType[]) => void;
|
|
1055
|
-
/** @name 自定义编辑的操作 */
|
|
1056
|
-
actionRender?: ActionRenderFunction<DataType>;
|
|
1057
|
-
/** 行保存的时候 */
|
|
999
|
+
type?: RowEditableType; /** @name 正在编辑的列 */
|
|
1000
|
+
editableKeys?: Key[]; /** 正在编辑的列修改的时候 */
|
|
1001
|
+
onChange?: (editableKeys: Key[], editableRows: DataType[] | DataType) => void; /** 正在编辑的列修改的时候 */
|
|
1002
|
+
onValuesChange?: (record: DataType, dataSource: DataType[]) => void; /** @name 自定义编辑的操作 */
|
|
1003
|
+
actionRender?: ActionRenderFunction<DataType>; /** 行保存的时候 */
|
|
1058
1004
|
onSave?: (/** 行 id,一般是唯一id */
|
|
1005
|
+
|
|
1059
1006
|
key: RecordKey, /** 当前修改的行的值,只有 form 在内的会被设置 */
|
|
1007
|
+
|
|
1060
1008
|
record: DataType & {
|
|
1061
1009
|
index?: number;
|
|
1062
1010
|
}, /** 原始值,可以用于判断是否修改 */
|
|
1011
|
+
|
|
1063
1012
|
originRow: DataType & {
|
|
1064
1013
|
index?: number;
|
|
1065
1014
|
}, /** 新建一行的配置,一般无用 */
|
|
1066
|
-
|
|
1067
|
-
/** 行取消的时候 */
|
|
1015
|
+
|
|
1016
|
+
newLineConfig?: NewLineConfig<DataType>) => Promise<any | void>; /** 行取消的时候 */
|
|
1068
1017
|
onCancel?: (/** 行 id,一般是唯一id */
|
|
1018
|
+
|
|
1069
1019
|
key: RecordKey, /** 当前修改的行的值,只有 form 在内的会被设置 */
|
|
1020
|
+
|
|
1070
1021
|
record: DataType & {
|
|
1071
1022
|
index?: number;
|
|
1072
1023
|
}, /** 原始值,可以用于判断是否修改 */
|
|
1024
|
+
|
|
1073
1025
|
originRow: DataType & {
|
|
1074
1026
|
index?: number;
|
|
1075
1027
|
}, /** 新建一行的配置,一般无用 */
|
|
1076
|
-
|
|
1077
|
-
/** 行删除的时候 */
|
|
1028
|
+
|
|
1029
|
+
newLineConfig?: NewLineConfig<DataType>) => Promise<any | void>; /** 行删除的时候 */
|
|
1078
1030
|
onDelete?: (key: RecordKey, row: DataType & {
|
|
1079
1031
|
index?: number;
|
|
1080
|
-
}) => Promise<any | void>;
|
|
1081
|
-
/**
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
|
|
1085
|
-
/**
|
|
1086
|
-
|
|
1087
|
-
/** Table 上设置的name,用于拼接name来获取数据 */
|
|
1088
|
-
tableName?: NamePath;
|
|
1089
|
-
/** 保存一行的文字 */
|
|
1090
|
-
saveText?: ReactNode;
|
|
1091
|
-
/** 取消编辑一行的文字 */
|
|
1092
|
-
cancelText?: ReactNode;
|
|
1093
|
-
/** 删除一行的文字 */
|
|
1032
|
+
}) => Promise<any | void>; /** 删除行时的确认消息 */
|
|
1033
|
+
deletePopconfirmMessage?: ReactNode; /** 只能编辑一行的的提示 */
|
|
1034
|
+
onlyOneLineEditorAlertMessage?: ReactNode; /** 同时只能新增一行的提示 */
|
|
1035
|
+
onlyAddOneLineAlertMessage?: ReactNode; /** Table 上设置的name,用于拼接name来获取数据 */
|
|
1036
|
+
tableName?: NamePath; /** 保存一行的文字 */
|
|
1037
|
+
saveText?: ReactNode; /** 取消编辑一行的文字 */
|
|
1038
|
+
cancelText?: ReactNode; /** 删除一行的文字 */
|
|
1094
1039
|
deleteText?: ReactNode;
|
|
1095
1040
|
/**
|
|
1096
1041
|
* 解决分页带来的 FormItem namePath 使用错误的 index 作为路径
|
|
@@ -1158,7 +1103,7 @@ declare function useEditableArray<RecordType extends AnyObject>(props: RowEditab
|
|
|
1158
1103
|
};
|
|
1159
1104
|
actionRender: (row: RecordType & {
|
|
1160
1105
|
index: number;
|
|
1161
|
-
}) => ReactNode[] | (
|
|
1106
|
+
}) => ReactNode[] | (_$react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1162
1107
|
startEditable: (recordKey: Key, record?: RecordType | undefined) => boolean;
|
|
1163
1108
|
cancelEditable: (recordKey: RecordKey, needReTry?: boolean | undefined) => Promise<boolean>;
|
|
1164
1109
|
addEditRecord: (row: RecordType, options?: AddLineOptions | undefined) => boolean;
|
|
@@ -1190,7 +1135,7 @@ type ProFormBaseGroupProps = {
|
|
|
1190
1135
|
* @example 自定义Icon
|
|
1191
1136
|
* <ProForm.Group title="标题" tooltip={{icon:<Info/>,title:自定义提示信息}}>
|
|
1192
1137
|
*/
|
|
1193
|
-
tooltip?:
|
|
1138
|
+
tooltip?: FormItemTooltipType | string;
|
|
1194
1139
|
/**
|
|
1195
1140
|
* @name 额外的内容配置,在标题的另外一边
|
|
1196
1141
|
*
|
|
@@ -1217,8 +1162,7 @@ type ProFormBaseGroupProps = {
|
|
|
1217
1162
|
* @example 自定义标题
|
|
1218
1163
|
* <ProForm.Group title={(_,props)=><span>自定义标题</span>}>
|
|
1219
1164
|
*/
|
|
1220
|
-
titleRender?: (title: ReactNode, props: ProFormBaseGroupProps) => ReactNode;
|
|
1221
|
-
/** 子项的对齐方式 */
|
|
1165
|
+
titleRender?: (title: ReactNode, props: ProFormBaseGroupProps) => ReactNode; /** 子项的对齐方式 */
|
|
1222
1166
|
align?: SpaceProps['align'];
|
|
1223
1167
|
spaceProps?: SpaceProps;
|
|
1224
1168
|
/**
|
|
@@ -1257,107 +1201,59 @@ type ProFormBaseGroupProps = {
|
|
|
1257
1201
|
* 字段值类型与 ProFieldProps 的映射关系
|
|
1258
1202
|
*/
|
|
1259
1203
|
type ProFieldValueTypeWithFieldProps = {
|
|
1260
|
-
/** 文本输入框 */
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
|
|
1272
|
-
/**
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
|
|
1278
|
-
/**
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
|
|
1288
|
-
/**
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
|
|
1296
|
-
/**
|
|
1297
|
-
|
|
1298
|
-
/**
|
|
1299
|
-
|
|
1300
|
-
/** 时间选择器 */
|
|
1301
|
-
time: TimeRangePickerProps;
|
|
1302
|
-
/** 时间范围选择器 */
|
|
1303
|
-
timeRange: TimeRangePickerProps;
|
|
1304
|
-
/** 下拉选择器 */
|
|
1305
|
-
select: SelectProps;
|
|
1306
|
-
/** 复选框 */
|
|
1307
|
-
checkbox: CheckboxProps;
|
|
1308
|
-
/** 评分 */
|
|
1309
|
-
rate: RateProps;
|
|
1310
|
-
/** 滑动条 */
|
|
1311
|
-
slider: SliderSingleProps | SliderRangeProps;
|
|
1312
|
-
/** 单选框 */
|
|
1313
|
-
radio: RadioProps;
|
|
1314
|
-
/** 单选框按钮 */
|
|
1315
|
-
radioButton: RadioProps;
|
|
1316
|
-
/** 进度条 */
|
|
1317
|
-
progress: ProgressProps;
|
|
1318
|
-
/** 百分比输入框 */
|
|
1319
|
-
percent: InputNumberProps;
|
|
1320
|
-
/** 数字输入框 */
|
|
1321
|
-
digit: InputNumberProps;
|
|
1322
|
-
/** 数字范围输入框 */
|
|
1323
|
-
digitRange: InputNumberProps;
|
|
1324
|
-
/** 秒数输入框 */
|
|
1325
|
-
second: InputNumberProps;
|
|
1326
|
-
/** 代码输入框 */
|
|
1327
|
-
code: InputProps | TextAreaProps;
|
|
1328
|
-
/** JSON 代码输入框 */
|
|
1329
|
-
jsonCode: InputProps | TextAreaProps;
|
|
1330
|
-
/** 头像 */
|
|
1331
|
-
avatar: AvatarProps;
|
|
1332
|
-
/** 开关 */
|
|
1333
|
-
switch: SwitchProps;
|
|
1334
|
-
/** 图片 */
|
|
1335
|
-
image: ImageProps | InputProps;
|
|
1336
|
-
/** 级联选择 */
|
|
1337
|
-
cascader: CascaderProps<any>;
|
|
1338
|
-
/** 树形选择 */
|
|
1339
|
-
treeSelect: TreeSelectProps;
|
|
1340
|
-
/** 颜色选择器 */
|
|
1204
|
+
/** 文本输入框 */text: InputProps; /** 密码输入框 */
|
|
1205
|
+
password: PasswordProps; /** 金额 */
|
|
1206
|
+
money: Record<string, any>; /** 索引 */
|
|
1207
|
+
index: Record<string, any>; /** 索引带边框 */
|
|
1208
|
+
indexBorder: Record<string, any>; /** 下拉选择 */
|
|
1209
|
+
option: Record<string, any>; /** 多行文本 */
|
|
1210
|
+
textarea: TextAreaProps; /** 日期选择器 */
|
|
1211
|
+
date: DatePickerProps; /** 周选择器 */
|
|
1212
|
+
dateWeek: DatePickerProps; /** 月选择器 */
|
|
1213
|
+
dateMonth: DatePickerProps; /** 季度选择器 */
|
|
1214
|
+
dateQuarter: DatePickerProps; /** 年选择器 */
|
|
1215
|
+
dateYear: DatePickerProps; /** 日期时间选择器 */
|
|
1216
|
+
dateTime: DatePickerProps; /** 相对时间 */
|
|
1217
|
+
fromNow: DatePickerProps; /** 日期范围选择器 */
|
|
1218
|
+
dateRange: RangePickerProps; /** 日期时间范围选择器 */
|
|
1219
|
+
dateTimeRange: RangePickerProps; /** 周范围选择器 */
|
|
1220
|
+
dateWeekRange: RangePickerProps; /** 月范围选择器 */
|
|
1221
|
+
dateMonthRange: RangePickerProps; /** 季范围选择器 */
|
|
1222
|
+
dateQuarterRange: RangePickerProps; /** 年范围选择器 */
|
|
1223
|
+
dateYearRange: RangePickerProps; /** 时间选择器 */
|
|
1224
|
+
time: TimeRangePickerProps; /** 时间范围选择器 */
|
|
1225
|
+
timeRange: TimeRangePickerProps; /** 下拉选择器 */
|
|
1226
|
+
select: SelectProps; /** 复选框 */
|
|
1227
|
+
checkbox: CheckboxProps; /** 评分 */
|
|
1228
|
+
rate: RateProps; /** 滑动条 */
|
|
1229
|
+
slider: SliderSingleProps | SliderRangeProps; /** 单选框 */
|
|
1230
|
+
radio: RadioProps; /** 单选框按钮 */
|
|
1231
|
+
radioButton: RadioProps; /** 进度条 */
|
|
1232
|
+
progress: ProgressProps; /** 百分比输入框 */
|
|
1233
|
+
percent: InputNumberProps; /** 数字输入框 */
|
|
1234
|
+
digit: InputNumberProps; /** 数字范围输入框 */
|
|
1235
|
+
digitRange: InputNumberProps; /** 秒数输入框 */
|
|
1236
|
+
second: InputNumberProps; /** 代码输入框 */
|
|
1237
|
+
code: InputProps | TextAreaProps; /** JSON 代码输入框 */
|
|
1238
|
+
jsonCode: InputProps | TextAreaProps; /** 头像 */
|
|
1239
|
+
avatar: AvatarProps; /** 开关 */
|
|
1240
|
+
switch: SwitchProps; /** 图片 */
|
|
1241
|
+
image: ImageProps | InputProps; /** 级联选择 */
|
|
1242
|
+
cascader: CascaderProps<any>; /** 树形选择 */
|
|
1243
|
+
treeSelect: TreeSelectProps; /** 颜色选择器 */
|
|
1341
1244
|
color: ColorPickerProps & {
|
|
1342
1245
|
value?: string;
|
|
1343
1246
|
popoverProps?: PopoverProps;
|
|
1344
1247
|
mode?: 'read' | 'edit';
|
|
1345
1248
|
onChange?: (color: string) => void;
|
|
1346
|
-
colors?: string[];
|
|
1347
|
-
/** 是否使用旧版本 */
|
|
1249
|
+
colors?: string[]; /** 是否使用旧版本 */
|
|
1348
1250
|
old?: boolean;
|
|
1349
|
-
};
|
|
1350
|
-
/**
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
formList: Record<string, any>;
|
|
1356
|
-
/** 表单集合 */
|
|
1357
|
-
formSet: Record<string, any>;
|
|
1358
|
-
/** 分割线 */
|
|
1359
|
-
divider: DividerProps;
|
|
1360
|
-
/** 显示/隐藏 */
|
|
1251
|
+
}; /** 分段器 */
|
|
1252
|
+
segmented: SegmentedProps; /** 分组 */
|
|
1253
|
+
group: ProFormBaseGroupProps; /** 表单列表 */
|
|
1254
|
+
formList: Record<string, any>; /** 表单集合 */
|
|
1255
|
+
formSet: Record<string, any>; /** 分割线 */
|
|
1256
|
+
divider: DividerProps; /** 显示/隐藏 */
|
|
1361
1257
|
dependency: FormItemProps$1;
|
|
1362
1258
|
};
|
|
1363
1259
|
/**
|
|
@@ -1428,14 +1324,12 @@ type FieldPropsTypeBase<Entity = Record<string, any>, ComponentsType = 'text', E
|
|
|
1428
1324
|
type ProFieldValueObject<Type> = Type extends 'progress' | 'money' | 'percent' | 'image' ? {
|
|
1429
1325
|
type: Type;
|
|
1430
1326
|
status?: 'normal' | 'active' | 'success' | 'exception' | undefined;
|
|
1431
|
-
locale?: string;
|
|
1432
|
-
/** Percent */
|
|
1327
|
+
locale?: string; /** Percent */
|
|
1433
1328
|
showSymbol?: ((value: any) => boolean) | boolean;
|
|
1434
1329
|
showColor?: boolean;
|
|
1435
1330
|
precision?: number;
|
|
1436
1331
|
moneySymbol?: boolean;
|
|
1437
|
-
request?: ProFieldRequestData;
|
|
1438
|
-
/** Image */
|
|
1332
|
+
request?: ProFieldRequestData; /** Image */
|
|
1439
1333
|
width?: number;
|
|
1440
1334
|
} : never;
|
|
1441
1335
|
/**
|
|
@@ -1482,14 +1376,12 @@ type RequestOptionsType = {
|
|
|
1482
1376
|
/**
|
|
1483
1377
|
* 选项的值,可以是一个字符串或数字类型。
|
|
1484
1378
|
*/
|
|
1485
|
-
value?: string | number | boolean;
|
|
1486
|
-
/** 渲染的节点类型 */
|
|
1379
|
+
value?: string | number | boolean; /** 渲染的节点类型 */
|
|
1487
1380
|
optionType?: 'optGroup' | 'option';
|
|
1488
1381
|
/**
|
|
1489
1382
|
* 当节点类型为 optGroup 时,可以使用该属性来定义其包含的子选项,每个子选项也可以使用 RequestOptionsType 类型来定义。
|
|
1490
1383
|
*/
|
|
1491
|
-
options?: Omit<RequestOptionsType, 'children' | 'optionType'>[];
|
|
1492
|
-
/** 其他自定义属性。 */
|
|
1384
|
+
options?: Omit<RequestOptionsType, 'children' | 'optionType'>[]; /** 其他自定义属性。 */
|
|
1493
1385
|
[key: string]: any;
|
|
1494
1386
|
};
|
|
1495
1387
|
type ProFieldRequestData<U = any> = (params: U, props: any) => Promise<RequestOptionsType[]>;
|
|
@@ -1523,8 +1415,7 @@ type ProFieldValueObjectType = {
|
|
|
1523
1415
|
* - 'success': 成功
|
|
1524
1416
|
* - 'exception': 异常
|
|
1525
1417
|
*/
|
|
1526
|
-
status?: 'normal' | 'active' | 'success' | 'exception' | undefined;
|
|
1527
|
-
/** 本地化信息 */
|
|
1418
|
+
status?: 'normal' | 'active' | 'success' | 'exception' | undefined; /** 本地化信息 */
|
|
1528
1419
|
locale?: string;
|
|
1529
1420
|
/**
|
|
1530
1421
|
* 百分比相关
|
|
@@ -1539,8 +1430,7 @@ type ProFieldValueObjectType = {
|
|
|
1539
1430
|
* 金钱相关
|
|
1540
1431
|
* - moneySymbol?: 是否显示货币符号,默认为 true
|
|
1541
1432
|
*/
|
|
1542
|
-
moneySymbol?: boolean;
|
|
1543
|
-
/** 数据请求 */
|
|
1433
|
+
moneySymbol?: boolean; /** 数据请求 */
|
|
1544
1434
|
request?: ProFieldRequestData;
|
|
1545
1435
|
/**
|
|
1546
1436
|
* width?: 图片宽度,默认为 80
|
|
@@ -1562,22 +1452,16 @@ type ProTableEditableFnType<T> = (value: any, record: T, index: number) => boole
|
|
|
1562
1452
|
type ProSchemaComponentTypes = 'form' | 'list' | 'descriptions' | 'table' | 'cardList' | undefined;
|
|
1563
1453
|
/** 操作类型 */
|
|
1564
1454
|
type ProCoreActionType<T = any> = {
|
|
1565
|
-
/** @name 刷新 */
|
|
1566
|
-
|
|
1567
|
-
/** @name
|
|
1568
|
-
|
|
1569
|
-
/** @name 重置任何输入项,包括表单 */
|
|
1570
|
-
reset?: () => void;
|
|
1571
|
-
/** @name 清空选择 */
|
|
1572
|
-
clearSelected?: () => void;
|
|
1573
|
-
/** @name p页面的信息都在里面 */
|
|
1455
|
+
/** @name 刷新 */reload: (resetPageIndex?: boolean) => Promise<void>; /** @name 刷新并清空,只清空页面,不包括表单 */
|
|
1456
|
+
reloadAndRest?: () => Promise<void>; /** @name 重置任何输入项,包括表单 */
|
|
1457
|
+
reset?: () => void; /** @name 清空选择 */
|
|
1458
|
+
clearSelected?: () => void; /** @name p页面的信息都在里面 */
|
|
1574
1459
|
pageInfo?: PageInfo;
|
|
1575
1460
|
} & Omit<UseEditableUtilType, 'newLineRecord' | 'editableKeys' | 'actionRender' | 'setEditableRowKeys'> & T;
|
|
1576
1461
|
type ProSchemaFieldProps<T> = Record<string, any> | T | Partial<InputProps>;
|
|
1577
1462
|
/** 各个组件公共支持的 render */
|
|
1578
1463
|
type ProSchema<Entity = Record<string, any>, ExtraProps = unknown, ComponentsType extends ProSchemaComponentTypes = 'form', ValueType = 'text', ExtraFormItemProps = unknown> = {
|
|
1579
|
-
/** @name 确定这个列的唯一值,一般用于 dataIndex 重复的情况 */
|
|
1580
|
-
key?: Key;
|
|
1464
|
+
/** @name 确定这个列的唯一值,一般用于 dataIndex 重复的情况 */key?: Key;
|
|
1581
1465
|
/**
|
|
1582
1466
|
* 支持一个数字,[a,b] 会转化为 obj.a.b
|
|
1583
1467
|
*
|
|
@@ -1589,9 +1473,8 @@ type ProSchema<Entity = Record<string, any>, ExtraProps = unknown, ComponentsTyp
|
|
|
1589
1473
|
*
|
|
1590
1474
|
* @name 标题
|
|
1591
1475
|
*/
|
|
1592
|
-
title?: ((schema: ProSchema<Entity, ExtraProps, ComponentsType, ValueType, ExtraFormItemProps>, type: ComponentsType, dom: ReactNode) => ReactNode) | ReactNode;
|
|
1593
|
-
|
|
1594
|
-
tooltip?: LabelTooltipType | string;
|
|
1476
|
+
title?: ((schema: ProSchema<Entity, ExtraProps, ComponentsType, ValueType, ExtraFormItemProps>, type: ComponentsType, dom: ReactNode) => ReactNode) | ReactNode; /** @name 展示一个 icon,hover 是展示一些提示信息 */
|
|
1477
|
+
tooltip?: FormItemTooltipType | string;
|
|
1595
1478
|
/**
|
|
1596
1479
|
* 支持 object 和Map,Map 是支持其他基础类型作为 key
|
|
1597
1480
|
*
|
|
@@ -1655,26 +1538,18 @@ type ProSchema<Entity = Record<string, any>, ExtraProps = unknown, ComponentsTyp
|
|
|
1655
1538
|
* @example 如果id=1不允许编辑
|
|
1656
1539
|
* editable={(value,row,index)=> row.id !==1 }
|
|
1657
1540
|
*/
|
|
1658
|
-
editable?: false | ProTableEditableFnType<Entity>;
|
|
1659
|
-
/** @name
|
|
1660
|
-
|
|
1661
|
-
/** @name request
|
|
1662
|
-
debounceTime?: number;
|
|
1663
|
-
/** @name 从服务器请求的参数,改变了会触发 reload */
|
|
1664
|
-
params?: ((record: Entity, column: ProSchema<Entity, ExtraProps>) => Record<string, any>) | Record<string, any>;
|
|
1665
|
-
/** @name 依赖字段的name,暂时只在拥有 request 的项目中生效,会自动注入到 params 中 */
|
|
1541
|
+
editable?: false | ProTableEditableFnType<Entity>; /** @name 从服务器请求枚举 */
|
|
1542
|
+
request?: ProFieldRequestData; /** @name request防抖动时间 默认10 单位ms */
|
|
1543
|
+
debounceTime?: number; /** @name 从服务器请求的参数,改变了会触发 reload */
|
|
1544
|
+
params?: ((record: Entity, column: ProSchema<Entity, ExtraProps>) => Record<string, any>) | Record<string, any>; /** @name 依赖字段的name,暂时只在拥有 request 的项目中生效,会自动注入到 params 中 */
|
|
1666
1545
|
dependencies?: NamePath[];
|
|
1667
1546
|
/**
|
|
1668
1547
|
* @name 忽略 FormItem,必须要和 formItemRender 组件一起使用
|
|
1669
1548
|
*/
|
|
1670
|
-
ignoreFormItem?: boolean;
|
|
1671
|
-
/** @name 在
|
|
1672
|
-
|
|
1673
|
-
/**
|
|
1674
|
-
hideInForm?: boolean;
|
|
1675
|
-
/** @name 在 table 中隐藏 */
|
|
1676
|
-
hideInTable?: boolean;
|
|
1677
|
-
/** 设置到 ProField 上面的 Props,内部属性 */
|
|
1549
|
+
ignoreFormItem?: boolean; /** @name 在 descriptions 隐藏 */
|
|
1550
|
+
hideInDescriptions?: boolean; /** @name 在 Form 中隐藏 */
|
|
1551
|
+
hideInForm?: boolean; /** @name 在 table 中隐藏 */
|
|
1552
|
+
hideInTable?: boolean; /** 设置到 ProField 上面的 Props,内部属性 */
|
|
1678
1553
|
proFieldProps?: ProFieldProps & Record<string, any>;
|
|
1679
1554
|
} & ExtraProps & ValueTypeWithFieldProps<Entity, ComponentsType, ExtraProps, ValueType>;
|
|
1680
1555
|
interface ProFieldProps {
|
|
@@ -1764,7 +1639,7 @@ declare const dateArrayFormatter: (value: any[], format: FormatType | FormatType
|
|
|
1764
1639
|
* @param item
|
|
1765
1640
|
* @param text
|
|
1766
1641
|
*/
|
|
1767
|
-
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
1642
|
+
declare const genCopyable: (dom: ReactNode, item: any, text: string) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
1768
1643
|
//#endregion
|
|
1769
1644
|
//#region src/utils/getFieldPropsOrFormItemProps/index.d.ts
|
|
1770
1645
|
/**
|
|
@@ -1943,7 +1818,7 @@ declare const proFieldParsingText: (text: string | number | (string | number)[],
|
|
|
1943
1818
|
declare function runFunction<T extends any[]>(valueEnum: any, ...rest: T): any;
|
|
1944
1819
|
//#endregion
|
|
1945
1820
|
//#region src/utils/stringify/index.d.ts
|
|
1946
|
-
declare const stringify: typeof safe_stable_stringify0.default;
|
|
1821
|
+
declare const stringify: typeof _$safe_stable_stringify0.default;
|
|
1947
1822
|
//#endregion
|
|
1948
1823
|
//#region src/utils/transformKeySubmitValue/index.d.ts
|
|
1949
1824
|
type DataFormatMapType = Record<string, SearchTransformKeyFn | undefined>;
|
|
@@ -1973,7 +1848,7 @@ declare function useEditableMap<RecordType>(props: RowEditableConfig<RecordType>
|
|
|
1973
1848
|
editableKeys: Key[];
|
|
1974
1849
|
setEditableRowKeys: (updater: Key[] | ((origin: Key[]) => Key[]), ignoreDestroy?: boolean) => void;
|
|
1975
1850
|
isEditable: (recordKey: RecordKey) => boolean;
|
|
1976
|
-
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (
|
|
1851
|
+
actionRender: (key: RecordKey, config?: ActionTypeText<RecordType>) => ReactNode[] | (_$react_jsx_runtime0.JSX.Element | undefined)[];
|
|
1977
1852
|
startEditable: (recordKey: RecordKey, recordValue?: any) => boolean;
|
|
1978
1853
|
cancelEditable: (recordKey: RecordKey) => boolean;
|
|
1979
1854
|
};
|
|
@@ -2036,25 +1911,17 @@ type ProDescriptionsItemProps<T = Record<string, any>, ValueType = 'text'> = Pro
|
|
|
2036
1911
|
}, ProSchemaComponentTypes, ValueType>;
|
|
2037
1912
|
type ProDescriptionsActionType = ProCoreActionType;
|
|
2038
1913
|
type ProDescriptionsProps<RecordType = Record<string, any>, ValueType = 'text'> = DescriptionsProps & {
|
|
2039
|
-
/** Params 参数 params 改变的时候会触发 reload */
|
|
2040
|
-
|
|
2041
|
-
/** 网络请求报错 */
|
|
2042
|
-
onRequestError?: (e: Error) => void;
|
|
2043
|
-
/** 获取数据的方法 */
|
|
1914
|
+
/** Params 参数 params 改变的时候会触发 reload */params?: Record<string, any>; /** 网络请求报错 */
|
|
1915
|
+
onRequestError?: (e: Error) => void; /** 获取数据的方法 */
|
|
2044
1916
|
request?: (params: Record<string, any> | undefined) => Promise<RequestData$1>;
|
|
2045
|
-
columns?: ProDescriptionsItemProps<RecordType, ValueType>[];
|
|
2046
|
-
/** 一些简单的操作 */
|
|
1917
|
+
columns?: ProDescriptionsItemProps<RecordType, ValueType>[]; /** 一些简单的操作 */
|
|
2047
1918
|
actionRef?: RefObject<ProCoreActionType<any> | undefined>;
|
|
2048
1919
|
loading?: boolean;
|
|
2049
1920
|
onLoadingChange?: (loading?: boolean) => void;
|
|
2050
|
-
tooltip?:
|
|
2051
|
-
/**
|
|
2052
|
-
|
|
2053
|
-
/**
|
|
2054
|
-
editable?: RowEditableConfig<RecordType>;
|
|
2055
|
-
/** 默认的数据源 */
|
|
2056
|
-
dataSource?: RecordType;
|
|
2057
|
-
/** 受控数据源改变 */
|
|
1921
|
+
tooltip?: FormItemTooltipType | string; /** Form props 的相关配置 */
|
|
1922
|
+
formProps?: FormProps; /** @name 编辑相关的配置 */
|
|
1923
|
+
editable?: RowEditableConfig<RecordType>; /** 默认的数据源 */
|
|
1924
|
+
dataSource?: RecordType; /** 受控数据源改变 */
|
|
2058
1925
|
onDataSourceChange?: (value: RecordType) => void;
|
|
2059
1926
|
/**
|
|
2060
1927
|
*为空时候的默认值
|
|
@@ -2076,7 +1943,7 @@ declare const FieldRender: FC<ProDescriptionsItemProps<any> & {
|
|
|
2076
1943
|
emptyText?: ReactNode;
|
|
2077
1944
|
}>;
|
|
2078
1945
|
declare const ProDescriptions: {
|
|
2079
|
-
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>):
|
|
1946
|
+
<RecordType extends Record<string, any>, ValueType = "text">(props: ProDescriptionsProps<RecordType, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
2080
1947
|
Item: FC<ProDescriptionsItemProps<Record<string, any>, "text">>;
|
|
2081
1948
|
};
|
|
2082
1949
|
//#endregion
|
|
@@ -2171,8 +2038,7 @@ type ProFieldLightProps = {
|
|
|
2171
2038
|
labelTrigger?: boolean;
|
|
2172
2039
|
};
|
|
2173
2040
|
type RenderProps$1 = Omit<ProFieldFCRenderProps, 'text' | 'placeholder'> & ProRenderFieldPropsType & {
|
|
2174
|
-
/** 从服务器读取选项 */
|
|
2175
|
-
request?: ProFieldRequestData;
|
|
2041
|
+
/** 从服务器读取选项 */request?: ProFieldRequestData;
|
|
2176
2042
|
emptyText?: ReactNode;
|
|
2177
2043
|
open?: boolean;
|
|
2178
2044
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -2184,7 +2050,6 @@ type RenderProps$1 = Omit<ProFieldFCRenderProps, 'text' | 'placeholder'> & ProRe
|
|
|
2184
2050
|
* @param dataValue
|
|
2185
2051
|
* @param valueType
|
|
2186
2052
|
*/
|
|
2187
|
-
|
|
2188
2053
|
/** ProField 的类型 */
|
|
2189
2054
|
type ProFieldPropsType = {
|
|
2190
2055
|
text?: ProFieldTextType;
|
|
@@ -2194,8 +2059,7 @@ declare const PureProField: FC<ProFieldPropsType>;
|
|
|
2194
2059
|
//#endregion
|
|
2195
2060
|
//#region src/field/AllProField.d.ts
|
|
2196
2061
|
type RenderProps = Omit<ProFieldFCRenderProps, 'text' | 'placeholder'> & ProRenderFieldPropsType & {
|
|
2197
|
-
/** 从服务器读取选项 */
|
|
2198
|
-
request?: ProFieldRequestData;
|
|
2062
|
+
/** 从服务器读取选项 */request?: ProFieldRequestData;
|
|
2199
2063
|
emptyText?: ReactNode;
|
|
2200
2064
|
open?: boolean;
|
|
2201
2065
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -2212,21 +2076,15 @@ declare const ProField: FC<ProFieldPropsType>;
|
|
|
2212
2076
|
//#endregion
|
|
2213
2077
|
//#region src/field/components/Select/index.d.ts
|
|
2214
2078
|
type SelectOptionType = Partial<RequestOptionsType>[];
|
|
2215
|
-
type FieldSelectProps<FieldProps
|
|
2216
|
-
text: string;
|
|
2217
|
-
/**
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
request?: ProFieldRequestData;
|
|
2223
|
-
/** 重新触发的时机 */
|
|
2224
|
-
params?: any;
|
|
2225
|
-
/** 组件的全局设置 */
|
|
2226
|
-
fieldProps?: FieldProps$1;
|
|
2079
|
+
type FieldSelectProps<FieldProps = any> = {
|
|
2080
|
+
text: string; /** 值的枚举,如果存在枚举,Search 中会生成 select */
|
|
2081
|
+
valueEnum?: ProFieldValueEnumType; /** 防抖动时间 默认10 单位ms */
|
|
2082
|
+
debounceTime?: number; /** 从服务器读取选项 */
|
|
2083
|
+
request?: ProFieldRequestData; /** 重新触发的时机 */
|
|
2084
|
+
params?: any; /** 组件的全局设置 */
|
|
2085
|
+
fieldProps?: FieldProps;
|
|
2227
2086
|
variant?: 'outlined' | 'filled' | 'borderless';
|
|
2228
|
-
id?: string;
|
|
2229
|
-
/** 默认搜素条件 */
|
|
2087
|
+
id?: string; /** 默认搜素条件 */
|
|
2230
2088
|
defaultKeyWords?: string;
|
|
2231
2089
|
} & ProFieldLightProps;
|
|
2232
2090
|
/**
|
|
@@ -2561,27 +2419,19 @@ declare const FieldTreeSelect: ProFieldFC<GroupProps$1>;
|
|
|
2561
2419
|
//#region src/form/BaseForm/Submitter/index.d.ts
|
|
2562
2420
|
/** @name 用于配置操作栏 */
|
|
2563
2421
|
type SearchConfig$1 = {
|
|
2564
|
-
/** @name 重置按钮的文本 */
|
|
2565
|
-
resetText?: ReactNode;
|
|
2566
|
-
/** @name 提交按钮的文本 */
|
|
2422
|
+
/** @name 重置按钮的文本 */resetText?: ReactNode; /** @name 提交按钮的文本 */
|
|
2567
2423
|
submitText?: ReactNode;
|
|
2568
2424
|
};
|
|
2569
2425
|
type SubmitterProps<T = Record<string, any>> = {
|
|
2570
|
-
/** @name 提交方法 */
|
|
2571
|
-
|
|
2572
|
-
/** @name
|
|
2573
|
-
onReset?: (value?: T) => void;
|
|
2574
|
-
/** @name 搜索的配置,一般用来配置文本 */
|
|
2575
|
-
searchConfig?: SearchConfig$1;
|
|
2576
|
-
/** @name 提交按钮的 props */
|
|
2426
|
+
/** @name 提交方法 */onSubmit?: (value?: T) => void; /** @name 重置方法 */
|
|
2427
|
+
onReset?: (value?: T) => void; /** @name 搜索的配置,一般用来配置文本 */
|
|
2428
|
+
searchConfig?: SearchConfig$1; /** @name 提交按钮的 props */
|
|
2577
2429
|
submitButtonProps?: false | (ButtonProps & {
|
|
2578
2430
|
preventDefault?: boolean;
|
|
2579
|
-
});
|
|
2580
|
-
/** @name 重置按钮的 props */
|
|
2431
|
+
}); /** @name 重置按钮的 props */
|
|
2581
2432
|
resetButtonProps?: false | (ButtonProps & {
|
|
2582
2433
|
preventDefault?: boolean;
|
|
2583
|
-
});
|
|
2584
|
-
/** @name 自定义操作的渲染 */
|
|
2434
|
+
}); /** @name 自定义操作的渲染 */
|
|
2585
2435
|
render?: ((props: SubmitterProps & T & {
|
|
2586
2436
|
submit: () => void;
|
|
2587
2437
|
reset: () => void;
|
|
@@ -2591,9 +2441,7 @@ type SubmitterProps<T = Record<string, any>> = {
|
|
|
2591
2441
|
//#region src/form/BaseForm/BaseForm.d.ts
|
|
2592
2442
|
type ProFormInstance<T = any> = FormInstance<T> & ProFormInstanceType<T>;
|
|
2593
2443
|
type ProFormRef<T> = ProFormInstance<T> & {
|
|
2594
|
-
/** 原生 DOM 元素引用 */
|
|
2595
|
-
nativeElement?: HTMLElement;
|
|
2596
|
-
/** 聚焦方法 */
|
|
2444
|
+
/** 原生 DOM 元素引用 */nativeElement?: HTMLElement; /** 聚焦方法 */
|
|
2597
2445
|
focus?: () => void;
|
|
2598
2446
|
};
|
|
2599
2447
|
type CommonFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
@@ -2693,10 +2541,8 @@ type CommonFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
2693
2541
|
*
|
|
2694
2542
|
* @example async (params)=>{ return initialValues }
|
|
2695
2543
|
*/
|
|
2696
|
-
request?: ProRequestData<T, U>;
|
|
2697
|
-
/**
|
|
2698
|
-
isKeyPressSubmit?: boolean;
|
|
2699
|
-
/** 用于控制form 是否相同的key,高阶用法 */
|
|
2544
|
+
request?: ProRequestData<T, U>; /** 是否回车提交 */
|
|
2545
|
+
isKeyPressSubmit?: boolean; /** 用于控制form 是否相同的key,高阶用法 */
|
|
2700
2546
|
formKey?: string;
|
|
2701
2547
|
/**
|
|
2702
2548
|
* @name自动选中第一项
|
|
@@ -2711,7 +2557,7 @@ type CommonFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
2711
2557
|
} & ProFormGridConfig;
|
|
2712
2558
|
//#endregion
|
|
2713
2559
|
//#region src/form/BaseForm/LightWrapper/index.d.ts
|
|
2714
|
-
type SizeType$1 = 'small' | 'middle' | 'large' | undefined;
|
|
2560
|
+
type SizeType$1 = 'small' | 'medium' | 'middle' | 'large' | undefined;
|
|
2715
2561
|
type LightWrapperProps = {
|
|
2716
2562
|
label?: ReactNode;
|
|
2717
2563
|
disabled?: boolean;
|
|
@@ -2744,33 +2590,23 @@ declare const LightWrapper: FC<LightWrapperProps>;
|
|
|
2744
2590
|
//#endregion
|
|
2745
2591
|
//#region src/form/components/Captcha/index.d.ts
|
|
2746
2592
|
type ProFormCaptchaProps = ProFormFieldItemProps<InputProps> & {
|
|
2747
|
-
/** @name 倒计时的秒数 */
|
|
2748
|
-
|
|
2749
|
-
/**
|
|
2750
|
-
|
|
2751
|
-
/** @name
|
|
2752
|
-
onGetCaptcha: (mobile: string) => Promise<void>;
|
|
2753
|
-
/** @name 计时回调 */
|
|
2754
|
-
onTiming?: (count: number) => void;
|
|
2755
|
-
/** @name 渲染按钮的文字 */
|
|
2756
|
-
captchaTextRender?: (timing: boolean, count: number) => ReactNode;
|
|
2757
|
-
/** @name 获取按钮验证码的props */
|
|
2593
|
+
/** @name 倒计时的秒数 */countDown?: number; /** 手机号的 name */
|
|
2594
|
+
phoneName?: NamePath; /** @name 获取验证码的方法 */
|
|
2595
|
+
onGetCaptcha: (mobile: string) => Promise<void>; /** @name 计时回调 */
|
|
2596
|
+
onTiming?: (count: number) => void; /** @name 渲染按钮的文字 */
|
|
2597
|
+
captchaTextRender?: (timing: boolean, count: number) => ReactNode; /** @name 获取按钮验证码的props */
|
|
2758
2598
|
captchaProps?: ButtonProps;
|
|
2759
2599
|
value?: any;
|
|
2760
2600
|
onChange?: any;
|
|
2761
2601
|
ref?: any;
|
|
2762
2602
|
};
|
|
2763
2603
|
type CaptFieldRef = {
|
|
2764
|
-
/** 原生 DOM 元素引用 */
|
|
2765
|
-
|
|
2766
|
-
/**
|
|
2767
|
-
focus: () => void;
|
|
2768
|
-
/** 开始计时 */
|
|
2769
|
-
startTiming: () => void;
|
|
2770
|
-
/** 结束计时 */
|
|
2604
|
+
/** 原生 DOM 元素引用 */nativeElement: HTMLDivElement; /** 聚焦方法 */
|
|
2605
|
+
focus: () => void; /** 开始计时 */
|
|
2606
|
+
startTiming: () => void; /** 结束计时 */
|
|
2771
2607
|
endTiming: () => void;
|
|
2772
2608
|
};
|
|
2773
|
-
declare const ProFormCaptcha:
|
|
2609
|
+
declare const ProFormCaptcha: _$react.ComponentClass<{
|
|
2774
2610
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2775
2611
|
placeholder?: string | string[];
|
|
2776
2612
|
secondary?: boolean;
|
|
@@ -2781,19 +2617,13 @@ declare const ProFormCaptcha: react11.ComponentClass<{
|
|
|
2781
2617
|
proFieldProps?: ProFieldProps;
|
|
2782
2618
|
footerRender?: LightFilterFooterRender;
|
|
2783
2619
|
children?: any;
|
|
2784
|
-
ref?:
|
|
2620
|
+
ref?: _$react.Ref<any>;
|
|
2785
2621
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2786
|
-
/** @name 倒计时的秒数 */
|
|
2787
|
-
|
|
2788
|
-
/**
|
|
2789
|
-
|
|
2790
|
-
/** @name
|
|
2791
|
-
onGetCaptcha: (mobile: string) => Promise<void>;
|
|
2792
|
-
/** @name 计时回调 */
|
|
2793
|
-
onTiming?: (count: number) => void;
|
|
2794
|
-
/** @name 渲染按钮的文字 */
|
|
2795
|
-
captchaTextRender?: (timing: boolean, count: number) => ReactNode;
|
|
2796
|
-
/** @name 获取按钮验证码的props */
|
|
2622
|
+
/** @name 倒计时的秒数 */countDown?: number; /** 手机号的 name */
|
|
2623
|
+
phoneName?: NamePath; /** @name 获取验证码的方法 */
|
|
2624
|
+
onGetCaptcha: (mobile: string) => Promise<void>; /** @name 计时回调 */
|
|
2625
|
+
onTiming?: (count: number) => void; /** @name 渲染按钮的文字 */
|
|
2626
|
+
captchaTextRender?: (timing: boolean, count: number) => ReactNode; /** @name 获取按钮验证码的props */
|
|
2797
2627
|
captchaProps?: ButtonProps;
|
|
2798
2628
|
value?: any;
|
|
2799
2629
|
onChange?: any;
|
|
@@ -2801,7 +2631,7 @@ declare const ProFormCaptcha: react11.ComponentClass<{
|
|
|
2801
2631
|
} & {
|
|
2802
2632
|
getFormItemProps?: () => Record<string, any>;
|
|
2803
2633
|
getFieldProps?: () => Record<string, any>;
|
|
2804
|
-
}, any> |
|
|
2634
|
+
}, any> | _$react.FunctionComponent<{
|
|
2805
2635
|
fieldProps?: Partial<FieldProps<any> & InputProps> | undefined;
|
|
2806
2636
|
placeholder?: string | string[];
|
|
2807
2637
|
secondary?: boolean;
|
|
@@ -2812,19 +2642,13 @@ declare const ProFormCaptcha: react11.ComponentClass<{
|
|
|
2812
2642
|
proFieldProps?: ProFieldProps;
|
|
2813
2643
|
footerRender?: LightFilterFooterRender;
|
|
2814
2644
|
children?: any;
|
|
2815
|
-
ref?:
|
|
2645
|
+
ref?: _$react.Ref<any>;
|
|
2816
2646
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
2817
|
-
/** @name 倒计时的秒数 */
|
|
2818
|
-
|
|
2819
|
-
/**
|
|
2820
|
-
|
|
2821
|
-
/** @name
|
|
2822
|
-
onGetCaptcha: (mobile: string) => Promise<void>;
|
|
2823
|
-
/** @name 计时回调 */
|
|
2824
|
-
onTiming?: (count: number) => void;
|
|
2825
|
-
/** @name 渲染按钮的文字 */
|
|
2826
|
-
captchaTextRender?: (timing: boolean, count: number) => ReactNode;
|
|
2827
|
-
/** @name 获取按钮验证码的props */
|
|
2647
|
+
/** @name 倒计时的秒数 */countDown?: number; /** 手机号的 name */
|
|
2648
|
+
phoneName?: NamePath; /** @name 获取验证码的方法 */
|
|
2649
|
+
onGetCaptcha: (mobile: string) => Promise<void>; /** @name 计时回调 */
|
|
2650
|
+
onTiming?: (count: number) => void; /** @name 渲染按钮的文字 */
|
|
2651
|
+
captchaTextRender?: (timing: boolean, count: number) => ReactNode; /** @name 获取按钮验证码的props */
|
|
2828
2652
|
captchaProps?: ButtonProps;
|
|
2829
2653
|
value?: any;
|
|
2830
2654
|
onChange?: any;
|
|
@@ -2997,7 +2821,7 @@ declare const ProFormDependency: {
|
|
|
2997
2821
|
children,
|
|
2998
2822
|
ignoreFormListField,
|
|
2999
2823
|
...rest
|
|
3000
|
-
}: ProFormDependencyProps<T>):
|
|
2824
|
+
}: ProFormDependencyProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
3001
2825
|
displayName: string;
|
|
3002
2826
|
};
|
|
3003
2827
|
//#endregion
|
|
@@ -3049,14 +2873,12 @@ type ProFormFieldProps<T = any, FiledProps = Record<string, any>> = ProSchema<T,
|
|
|
3049
2873
|
declare const ProFormField: <FiledProps, DataType = Record<string, any>>(props: ProFormFieldProps<DataType, FiledProps>) => ReactElement;
|
|
3050
2874
|
//#endregion
|
|
3051
2875
|
//#region src/form/components/FormItem/index.d.ts
|
|
3052
|
-
declare const FormItemProvide:
|
|
2876
|
+
declare const FormItemProvide: _$react.Context<{
|
|
3053
2877
|
name?: NamePath;
|
|
3054
2878
|
label?: ReactNode;
|
|
3055
2879
|
}>;
|
|
3056
2880
|
type WarpFormItemProps = {
|
|
3057
|
-
/** @name 前置的dom * */
|
|
3058
|
-
addonBefore?: ReactNode;
|
|
3059
|
-
/** @name 后置的dom * */
|
|
2881
|
+
/** @name 前置的dom * */addonBefore?: ReactNode; /** @name 后置的dom * */
|
|
3060
2882
|
addonAfter?: ReactNode;
|
|
3061
2883
|
/**
|
|
3062
2884
|
* 包裹的样式,一般没用
|
|
@@ -3159,7 +2981,7 @@ declare function useControlModel<const T extends readonly FormControlMultiProps[
|
|
|
3159
2981
|
onChange,
|
|
3160
2982
|
id
|
|
3161
2983
|
}: WithControlPropsType, model?: T): { [P in GetArrayFieldType<T>]: ControlModelType };
|
|
3162
|
-
type FormControlFC<P
|
|
2984
|
+
type FormControlFC<P> = (props: WithControlPropsType<P>) => ReactNode;
|
|
3163
2985
|
type FormControlInjectProps = ReturnType<typeof Form.Item.useStatus> & {
|
|
3164
2986
|
id: string;
|
|
3165
2987
|
value: any;
|
|
@@ -3185,7 +3007,7 @@ type FormControlInjectProps = ReturnType<typeof Form.Item.useStatus> & {
|
|
|
3185
3007
|
*/
|
|
3186
3008
|
declare function FormControlRender(props: WithControlPropsType<{
|
|
3187
3009
|
children: (props: FormControlInjectProps) => ReactElement;
|
|
3188
|
-
}>): ReactElement<unknown, string |
|
|
3010
|
+
}>): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3189
3011
|
/**
|
|
3190
3012
|
* 提取props中的 value 和 onChange 属性
|
|
3191
3013
|
*/
|
|
@@ -3217,7 +3039,7 @@ declare function pickControlPropsWithId(props: FormControlInjectProps): {
|
|
|
3217
3039
|
* </FormItemRender>
|
|
3218
3040
|
* ```
|
|
3219
3041
|
*/
|
|
3220
|
-
declare const FormItemRender: FC<Omit<
|
|
3042
|
+
declare const FormItemRender: FC<Omit<_$antd.FormItemProps<unknown>, "children"> & {
|
|
3221
3043
|
children: (formItemProps: FormControlInjectProps) => ReactNode;
|
|
3222
3044
|
}>;
|
|
3223
3045
|
/**
|
|
@@ -3235,7 +3057,7 @@ declare const FormItemRender: FC<Omit<antd0.FormItemProps<unknown>, "children">
|
|
|
3235
3057
|
* </ProFormItemRender>
|
|
3236
3058
|
* ```
|
|
3237
3059
|
*/
|
|
3238
|
-
declare const ProFormItemRender: FC<Omit<
|
|
3060
|
+
declare const ProFormItemRender: FC<Omit<_$antd.FormItemProps<any> & {
|
|
3239
3061
|
ignoreFormItem?: boolean;
|
|
3240
3062
|
valueType?: ProFieldValueType;
|
|
3241
3063
|
transform?: SearchTransformKeyFn;
|
|
@@ -3245,7 +3067,7 @@ declare const ProFormItemRender: FC<Omit<antd0.FormItemProps<any> & {
|
|
|
3245
3067
|
} & {
|
|
3246
3068
|
addonBefore?: ReactNode;
|
|
3247
3069
|
addonAfter?: ReactNode;
|
|
3248
|
-
addonWarpStyle?:
|
|
3070
|
+
addonWarpStyle?: _$react.CSSProperties;
|
|
3249
3071
|
convertValue?: SearchConvertKeyFn;
|
|
3250
3072
|
help?: ReactNode | ((params: {
|
|
3251
3073
|
errors: ReactNode[];
|
|
@@ -3266,10 +3088,12 @@ type ChildrenItemFunction = (
|
|
|
3266
3088
|
* @name 当前行的meta信息
|
|
3267
3089
|
* @example {name: number; key: number}
|
|
3268
3090
|
*/
|
|
3091
|
+
|
|
3269
3092
|
meta: FormListFieldData,
|
|
3270
3093
|
/**
|
|
3271
3094
|
* @name 当前行的行号
|
|
3272
3095
|
*/
|
|
3096
|
+
|
|
3273
3097
|
index: number,
|
|
3274
3098
|
/**
|
|
3275
3099
|
* @name 用于操作行的一些快捷方法
|
|
@@ -3280,6 +3104,7 @@ index: number,
|
|
|
3280
3104
|
* @example 设置当前行的数据: {id:"123",name:'123'} -> action.setCurrentRowData({name:'xxx'}) -> {id:"123",name:'xxx'}
|
|
3281
3105
|
* @example 清空当前行的数据:{id:"123",name:'123'} -> action.setCurrentRowData({name:undefined}) -> {id:"123"}
|
|
3282
3106
|
*/
|
|
3107
|
+
|
|
3283
3108
|
action: FormListOperation & {
|
|
3284
3109
|
/**
|
|
3285
3110
|
* @name 获取当前行的数据
|
|
@@ -3296,6 +3121,7 @@ action: FormListOperation & {
|
|
|
3296
3121
|
/**
|
|
3297
3122
|
* 透传总行数
|
|
3298
3123
|
*/
|
|
3124
|
+
|
|
3299
3125
|
count: number) => ReactNode;
|
|
3300
3126
|
type IconConfig = {
|
|
3301
3127
|
/**
|
|
@@ -3421,15 +3247,18 @@ type ProFromListCommonProps = {
|
|
|
3421
3247
|
* @example action.remove(index) 删除一行
|
|
3422
3248
|
* @example action.move(formIndex,targetIndex) 移动一行
|
|
3423
3249
|
*/
|
|
3250
|
+
|
|
3424
3251
|
action: FormListOperation,
|
|
3425
3252
|
/**
|
|
3426
3253
|
* 默认的操作dom
|
|
3427
3254
|
* [复制,删除]
|
|
3428
3255
|
*/
|
|
3256
|
+
|
|
3429
3257
|
defaultActionDom: ReactNode[],
|
|
3430
3258
|
/**
|
|
3431
3259
|
* 当前共有几个列表项
|
|
3432
3260
|
*/
|
|
3261
|
+
|
|
3433
3262
|
count: number) => ReactNode[];
|
|
3434
3263
|
/**
|
|
3435
3264
|
* @name list 的内容的渲染函数
|
|
@@ -3451,6 +3280,7 @@ type ProFromListCommonProps = {
|
|
|
3451
3280
|
/**
|
|
3452
3281
|
* list 的基本信息
|
|
3453
3282
|
*/
|
|
3283
|
+
|
|
3454
3284
|
listMeta: FormListListListMete) => ReactNode;
|
|
3455
3285
|
/**
|
|
3456
3286
|
* @name 总是展示每一行的label
|
|
@@ -3476,7 +3306,7 @@ type ProFromListCommonProps = {
|
|
|
3476
3306
|
};
|
|
3477
3307
|
//#endregion
|
|
3478
3308
|
//#region src/form/components/List/index.d.ts
|
|
3479
|
-
declare const FormListContext:
|
|
3309
|
+
declare const FormListContext: _$react.Context<Record<string, any> | (FormListFieldData & {
|
|
3480
3310
|
listName: NamePath;
|
|
3481
3311
|
})>;
|
|
3482
3312
|
type FormListActionType<T = any> = FormListOperation & {
|
|
@@ -3496,7 +3326,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3496
3326
|
* @example 自定义Icon
|
|
3497
3327
|
* <ProForm.Group title="标题" tooltip={{icon:<Info/>,title:自定义提示信息}}>
|
|
3498
3328
|
*/
|
|
3499
|
-
tooltip?:
|
|
3329
|
+
tooltip?: FormItemTooltipType;
|
|
3500
3330
|
/**
|
|
3501
3331
|
* @name 行操作的钩子配置
|
|
3502
3332
|
*
|
|
@@ -3525,8 +3355,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3525
3355
|
* @example actionRef?.current.get?.(1);
|
|
3526
3356
|
* @example actionRef?.current.getList?.();
|
|
3527
3357
|
*/
|
|
3528
|
-
actionRef?: RefObject<FormListActionType<T> | undefined>;
|
|
3529
|
-
/** 放在div上面的属性 */
|
|
3358
|
+
actionRef?: RefObject<FormListActionType<T> | undefined>; /** 放在div上面的属性 */
|
|
3530
3359
|
style?: CSSProperties;
|
|
3531
3360
|
/**
|
|
3532
3361
|
* 数据新增成功回调
|
|
@@ -3535,10 +3364,8 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3535
3364
|
/**
|
|
3536
3365
|
* 数据移除成功回调
|
|
3537
3366
|
*/
|
|
3538
|
-
onAfterRemove?: (...params: [...Parameters<FormListOperation['remove']>, number]) => void;
|
|
3539
|
-
/**
|
|
3540
|
-
isValidateList?: boolean;
|
|
3541
|
-
/** 当 isValidateList 为 true 时执行为空提示 */
|
|
3367
|
+
onAfterRemove?: (...params: [...Parameters<FormListOperation['remove']>, number]) => void; /** 是否同时校验列表是否为空 */
|
|
3368
|
+
isValidateList?: boolean; /** 当 isValidateList 为 true 时执行为空提示 */
|
|
3542
3369
|
emptyListMessage?: string;
|
|
3543
3370
|
rules?: (Required<FormListProps>['rules'][number] & {
|
|
3544
3371
|
required?: boolean;
|
|
@@ -3548,7 +3375,7 @@ type ProFormListProps<T> = Omit<FormListProps, 'children' | 'rules'> & ProFromLi
|
|
|
3548
3375
|
className?: string;
|
|
3549
3376
|
readonly?: boolean;
|
|
3550
3377
|
} & Pick<ProFormGridConfig, 'colProps' | 'rowProps'>;
|
|
3551
|
-
declare function ProFormList<T>(props: ProFormListProps<T>):
|
|
3378
|
+
declare function ProFormList<T>(props: ProFormListProps<T>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | null;
|
|
3552
3379
|
//#endregion
|
|
3553
3380
|
//#region src/form/components/Money/index.d.ts
|
|
3554
3381
|
type ProFormMoneyProps = ProFormFieldItemProps<Omit<FieldMoneyProps, 'valueType' | 'text'> & InputNumberProps<number>> & {
|
|
@@ -3572,33 +3399,33 @@ type ProFormRadioGroupProps = ProFormFieldItemProps<RadioGroupProps, HTMLDivElem
|
|
|
3572
3399
|
options?: RadioGroupProps['options'];
|
|
3573
3400
|
} & ProFormFieldRemoteProps;
|
|
3574
3401
|
declare const RadioGroup: FC<ProFormRadioGroupProps>;
|
|
3575
|
-
declare const ProFormRadio:
|
|
3402
|
+
declare const ProFormRadio: _$react.ComponentClass<{
|
|
3576
3403
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3577
3404
|
placeholder?: string | string[];
|
|
3578
3405
|
secondary?: boolean;
|
|
3579
|
-
emptyText?:
|
|
3406
|
+
emptyText?: _$react.ReactNode;
|
|
3580
3407
|
cacheForSwr?: boolean;
|
|
3581
3408
|
disabled?: boolean;
|
|
3582
3409
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3583
3410
|
proFieldProps?: ProFieldProps;
|
|
3584
3411
|
footerRender?: LightFilterFooterRender;
|
|
3585
3412
|
children?: any;
|
|
3586
|
-
ref?:
|
|
3413
|
+
ref?: _$react.Ref<any>;
|
|
3587
3414
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3588
3415
|
getFormItemProps?: () => Record<string, any>;
|
|
3589
3416
|
getFieldProps?: () => Record<string, any>;
|
|
3590
|
-
}, any> |
|
|
3417
|
+
}, any> | _$react.FunctionComponent<{
|
|
3591
3418
|
fieldProps?: Partial<FieldProps<any> & RadioProps> | undefined;
|
|
3592
3419
|
placeholder?: string | string[];
|
|
3593
3420
|
secondary?: boolean;
|
|
3594
|
-
emptyText?:
|
|
3421
|
+
emptyText?: _$react.ReactNode;
|
|
3595
3422
|
cacheForSwr?: boolean;
|
|
3596
3423
|
disabled?: boolean;
|
|
3597
3424
|
width?: number | "sm" | "md" | "xl" | "xs" | "lg";
|
|
3598
3425
|
proFieldProps?: ProFieldProps;
|
|
3599
3426
|
footerRender?: LightFilterFooterRender;
|
|
3600
3427
|
children?: any;
|
|
3601
|
-
ref?:
|
|
3428
|
+
ref?: _$react.Ref<any>;
|
|
3602
3429
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
3603
3430
|
getFormItemProps?: () => Record<string, any>;
|
|
3604
3431
|
getFieldProps?: () => Record<string, any>;
|
|
@@ -3620,18 +3447,18 @@ declare const ProFormRate: FC<ProFormFieldItemProps<RateProps>>;
|
|
|
3620
3447
|
type ProFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3621
3448
|
declare function ProForm<T = Record<string, any>>(props: ProFormProps<T> & {
|
|
3622
3449
|
children?: ReactNode | ReactNode[];
|
|
3623
|
-
}):
|
|
3450
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
3624
3451
|
declare namespace ProForm {
|
|
3625
|
-
var Group:
|
|
3626
|
-
ref?:
|
|
3452
|
+
var Group: _$react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3453
|
+
ref?: _$react.Ref<any>;
|
|
3627
3454
|
}>;
|
|
3628
|
-
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3629
|
-
var Item:
|
|
3630
|
-
var useWatch: typeof _rc_component_form0.useWatch;
|
|
3631
|
-
var ErrorList:
|
|
3632
|
-
var Provider:
|
|
3633
|
-
var useFormInstance: typeof antd_es_form_hooks_useFormInstance0.default;
|
|
3634
|
-
var EditOrReadOnlyContext:
|
|
3455
|
+
var useForm: typeof _$antd_es_form_Form0.useForm;
|
|
3456
|
+
var Item: _$react.FC<ProFormItemProps>;
|
|
3457
|
+
var useWatch: typeof _$_rc_component_form0.useWatch;
|
|
3458
|
+
var ErrorList: _$react.FC<_$antd_es_form0.ErrorListProps>;
|
|
3459
|
+
var Provider: _$react.FC<_$antd_es_form_context0.FormProviderProps>;
|
|
3460
|
+
var useFormInstance: typeof _$antd_es_form_hooks_useFormInstance0.default;
|
|
3461
|
+
var EditOrReadOnlyContext: _$react.Context<{
|
|
3635
3462
|
mode: "edit" | "read" | "update";
|
|
3636
3463
|
}>;
|
|
3637
3464
|
}
|
|
@@ -3654,20 +3481,13 @@ type DrawerFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<Fo
|
|
|
3654
3481
|
* @example 结束后不关闭抽屉
|
|
3655
3482
|
* onFinish: async ()=> {await save(); return false}
|
|
3656
3483
|
*/
|
|
3657
|
-
onFinish?: (formData: T) => Promise<any>;
|
|
3658
|
-
/** @name
|
|
3659
|
-
|
|
3660
|
-
/** @name
|
|
3661
|
-
|
|
3662
|
-
/** @name
|
|
3663
|
-
|
|
3664
|
-
/** @name 打开关闭的事件 */
|
|
3665
|
-
onOpenChange?: (open: boolean) => void;
|
|
3666
|
-
/** @name 抽屉的配置 */
|
|
3667
|
-
drawerProps?: Omit<DrawerProps, 'open'>;
|
|
3668
|
-
/** @name 抽屉的标题 */
|
|
3669
|
-
title?: DrawerProps['title'];
|
|
3670
|
-
/** @name 抽屉的宽度 */
|
|
3484
|
+
onFinish?: (formData: T) => Promise<any>; /** @name 提交数据时,禁用取消按钮的超时时间(毫秒)。 */
|
|
3485
|
+
submitTimeout?: number; /** @name 用于触发抽屉打开的 dom ,只能设置一个*/
|
|
3486
|
+
trigger?: JSX.Element; /** @name 受控的打开关闭 */
|
|
3487
|
+
open?: DrawerProps['open']; /** @name 打开关闭的事件 */
|
|
3488
|
+
onOpenChange?: (open: boolean) => void; /** @name 抽屉的配置 */
|
|
3489
|
+
drawerProps?: Omit<DrawerProps, 'open'>; /** @name 抽屉的标题 */
|
|
3490
|
+
title?: DrawerProps['title']; /** @name 抽屉的宽度 */
|
|
3671
3491
|
width?: DrawerProps['width'];
|
|
3672
3492
|
/**
|
|
3673
3493
|
*
|
|
@@ -3687,7 +3507,7 @@ declare function DrawerForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3687
3507
|
onOpenChange,
|
|
3688
3508
|
open: propsOpen,
|
|
3689
3509
|
...rest
|
|
3690
|
-
}: DrawerFormProps<T, U>):
|
|
3510
|
+
}: DrawerFormProps<T, U>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3691
3511
|
//#endregion
|
|
3692
3512
|
//#region src/form/layouts/LightFilter/index.d.ts
|
|
3693
3513
|
type LightFilterProps<T, U = Record<string, any>> = {
|
|
@@ -3730,7 +3550,7 @@ type LightFilterProps<T, U = Record<string, any>> = {
|
|
|
3730
3550
|
*/
|
|
3731
3551
|
popoverProps?: Omit<PopoverProps, 'children' | 'content' | 'trigger' | 'open' | 'onOpenChange' | 'placement'>;
|
|
3732
3552
|
} & Omit<FormProps<T>, 'onFinish'> & CommonFormProps<T, U>;
|
|
3733
|
-
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>):
|
|
3553
|
+
declare function LightFilter<T = Record<string, any>>(props: LightFilterProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
3734
3554
|
//#endregion
|
|
3735
3555
|
//#region src/form/layouts/LoginForm/index.d.ts
|
|
3736
3556
|
type LoginFormProps<T> = {
|
|
@@ -3778,7 +3598,7 @@ type LoginFormProps<T> = {
|
|
|
3778
3598
|
containerStyle?: CSSProperties;
|
|
3779
3599
|
otherStyle?: CSSProperties;
|
|
3780
3600
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3781
|
-
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>):
|
|
3601
|
+
declare function LoginForm<T = Record<string, any>>(props: Partial<LoginFormProps<T>>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3782
3602
|
//#endregion
|
|
3783
3603
|
//#region src/form/layouts/LoginFormPage/index.d.ts
|
|
3784
3604
|
type LoginFormPageProps<T> = {
|
|
@@ -3843,7 +3663,7 @@ type LoginFormPageProps<T> = {
|
|
|
3843
3663
|
mainStyle?: CSSProperties;
|
|
3844
3664
|
otherStyle?: CSSProperties;
|
|
3845
3665
|
} & Omit<ProFormProps<T>, 'title'>;
|
|
3846
|
-
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>):
|
|
3666
|
+
declare function LoginFormPage<T = Record<string, any>>(props: Partial<LoginFormPageProps<T>>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
3847
3667
|
//#endregion
|
|
3848
3668
|
//#region src/form/layouts/ModalForm/index.d.ts
|
|
3849
3669
|
type ModalFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps<T>, 'onFinish' | 'title'> & CommonFormProps<T, U> & {
|
|
@@ -3858,20 +3678,13 @@ type ModalFormProps<T = Record<string, any>, U = Record<string, any>> = Omit<For
|
|
|
3858
3678
|
* @example 结束后不关闭抽屉
|
|
3859
3679
|
* onFinish: async ()=> {await save(); return false}
|
|
3860
3680
|
*/
|
|
3861
|
-
onFinish?: (formData: T) => Promise<any>;
|
|
3862
|
-
/** @name
|
|
3863
|
-
|
|
3864
|
-
/** @name
|
|
3865
|
-
|
|
3866
|
-
/** @name
|
|
3867
|
-
|
|
3868
|
-
/** @name 打开关闭的事件 */
|
|
3869
|
-
onOpenChange?: (open: boolean) => void;
|
|
3870
|
-
/** @name 弹框的属性 */
|
|
3871
|
-
modalProps?: Omit<ModalProps, 'open'>;
|
|
3872
|
-
/** @name 弹框的标题 */
|
|
3873
|
-
title?: ModalProps['title'];
|
|
3874
|
-
/** @name 弹框的宽度 */
|
|
3681
|
+
onFinish?: (formData: T) => Promise<any>; /** @name 提交数据时,禁用取消按钮的超时时间(毫秒)。 */
|
|
3682
|
+
submitTimeout?: number; /** @name 用于触发抽屉打开的 dom */
|
|
3683
|
+
trigger?: JSX.Element; /** @name 受控的打开关闭 */
|
|
3684
|
+
open?: ModalProps['open']; /** @name 打开关闭的事件 */
|
|
3685
|
+
onOpenChange?: (open: boolean) => void; /** @name 弹框的属性 */
|
|
3686
|
+
modalProps?: Omit<ModalProps, 'open'>; /** @name 弹框的标题 */
|
|
3687
|
+
title?: ModalProps['title']; /** @name 弹框的宽度 */
|
|
3875
3688
|
width?: ModalProps['width'];
|
|
3876
3689
|
};
|
|
3877
3690
|
declare function ModalForm<T = Record<string, any>, U = Record<string, any>>({
|
|
@@ -3885,22 +3698,19 @@ declare function ModalForm<T = Record<string, any>, U = Record<string, any>>({
|
|
|
3885
3698
|
width,
|
|
3886
3699
|
open: propsOpen,
|
|
3887
3700
|
...rest
|
|
3888
|
-
}: ModalFormProps<T, U>):
|
|
3701
|
+
}: ModalFormProps<T, U>): _$react_jsx_runtime0.JSX.Element;
|
|
3889
3702
|
//#endregion
|
|
3890
3703
|
//#region src/form/layouts/QueryFilter/Actions.d.ts
|
|
3891
3704
|
type ActionsProps = {
|
|
3892
|
-
submitter: ReactNode;
|
|
3893
|
-
/**
|
|
3894
|
-
collapsed?: boolean;
|
|
3895
|
-
/** 收起按钮的事件 */
|
|
3705
|
+
submitter: ReactNode; /** 是否收起 */
|
|
3706
|
+
collapsed?: boolean; /** 收起按钮的事件 */
|
|
3896
3707
|
onCollapse?: (collapsed: boolean) => void;
|
|
3897
3708
|
setCollapsed: (collapse: boolean) => void;
|
|
3898
3709
|
isForm?: boolean;
|
|
3899
|
-
style?: CSSProperties;
|
|
3900
|
-
/** 收起按钮的 render */
|
|
3710
|
+
style?: CSSProperties; /** 收起按钮的 render */
|
|
3901
3711
|
collapseRender?: ((collapsed: boolean, /** 是否应该展示,有两种情况 列只有三列,不需要收起 form 模式 不需要收起 */
|
|
3902
|
-
|
|
3903
|
-
/** 隐藏个数 */
|
|
3712
|
+
|
|
3713
|
+
props: ActionsProps, intl: IntlType, hiddenNum?: false | number) => ReactNode) | false; /** 隐藏个数 */
|
|
3904
3714
|
hiddenNum?: false | number;
|
|
3905
3715
|
};
|
|
3906
3716
|
//#endregion
|
|
@@ -4009,7 +3819,7 @@ type BaseQueryFilterProps = Omit<ActionsProps, 'submitter' | 'setCollapsed' | 'i
|
|
|
4009
3819
|
type QueryFilterProps<T = Record<string, any>, U = Record<string, any>> = Omit<FormProps$1<T>, 'onFinish'> & CommonFormProps<T, U> & BaseQueryFilterProps & {
|
|
4010
3820
|
onReset?: (values: T) => void;
|
|
4011
3821
|
};
|
|
4012
|
-
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string |
|
|
3822
|
+
declare function QueryFilter<T = Record<string, any>>(props: QueryFilterProps<T>): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
4013
3823
|
//#endregion
|
|
4014
3824
|
//#region src/form/layouts/StepsForm/StepForm.d.ts
|
|
4015
3825
|
type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
@@ -4017,7 +3827,7 @@ type StepFormProps<T = Record<string, any>, U = Record<string, any>> = {
|
|
|
4017
3827
|
stepProps?: NonNullable<StepsProps['items']>[number];
|
|
4018
3828
|
index?: number;
|
|
4019
3829
|
} & Omit<FormProps<T>, 'onFinish' | 'form'> & Omit<CommonFormProps<T, U>, 'submitter' | 'form'>;
|
|
4020
|
-
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>):
|
|
3830
|
+
declare function StepForm<T = Record<string, any>>(stepNativeProps: StepFormProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
4021
3831
|
//#endregion
|
|
4022
3832
|
//#region src/form/layouts/StepsForm/index.d.ts
|
|
4023
3833
|
type StepsFormProps<T = Record<string, any>> = {
|
|
@@ -4030,15 +3840,12 @@ type StepsFormProps<T = Record<string, any>> = {
|
|
|
4030
3840
|
current?: number;
|
|
4031
3841
|
stepsProps?: StepsProps;
|
|
4032
3842
|
formProps?: ProFormProps<T>;
|
|
4033
|
-
onCurrentChange?: (current: number) => void;
|
|
4034
|
-
/** 自定义步骤器 */
|
|
3843
|
+
onCurrentChange?: (current: number) => void; /** 自定义步骤器 */
|
|
4035
3844
|
stepsRender?: (steps: {
|
|
4036
3845
|
key: string;
|
|
4037
3846
|
title?: ReactNode;
|
|
4038
|
-
}[], defaultDom: ReactNode) => ReactNode;
|
|
4039
|
-
/** @name
|
|
4040
|
-
formRef?: RefObject<ProFormInstance<any> | undefined | null>;
|
|
4041
|
-
/** @name 所有表单的 formMapRef */
|
|
3847
|
+
}[], defaultDom: ReactNode) => ReactNode; /** @name 当前展示表单的 formRef */
|
|
3848
|
+
formRef?: RefObject<ProFormInstance<any> | undefined | null>; /** @name 所有表单的 formMapRef */
|
|
4042
3849
|
formMapRef?: RefObject<RefObject<FormInstance<any> | undefined>[]>;
|
|
4043
3850
|
/**
|
|
4044
3851
|
* 自定义单个表单
|
|
@@ -4052,8 +3859,7 @@ type StepsFormProps<T = Record<string, any>> = {
|
|
|
4052
3859
|
* @param form From 的 dom,可以放置到别的位置
|
|
4053
3860
|
* @param submitter 操作按钮
|
|
4054
3861
|
*/
|
|
4055
|
-
stepsFormRender?: (from: ReactNode, submitter: ReactNode) => ReactNode;
|
|
4056
|
-
/** 按钮的统一配置,优先级低于分步表单的配置 */
|
|
3862
|
+
stepsFormRender?: (from: ReactNode, submitter: ReactNode) => ReactNode; /** 按钮的统一配置,优先级低于分步表单的配置 */
|
|
4057
3863
|
submitter?: SubmitterProps<{
|
|
4058
3864
|
step: number;
|
|
4059
3865
|
onPre: () => void;
|
|
@@ -4072,15 +3878,15 @@ type StepsFormProps<T = Record<string, any>> = {
|
|
|
4072
3878
|
} & Omit<FormProviderProps, 'children'>;
|
|
4073
3879
|
declare function StepsFormWarp<T = Record<string, any>>(props: StepsFormProps<T> & {
|
|
4074
3880
|
children: any;
|
|
4075
|
-
}):
|
|
3881
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
4076
3882
|
declare namespace StepsFormWarp {
|
|
4077
3883
|
var StepForm: typeof StepForm;
|
|
4078
|
-
var useForm: typeof antd_es_form_Form0.useForm;
|
|
3884
|
+
var useForm: typeof _$antd_es_form_Form0.useForm;
|
|
4079
3885
|
}
|
|
4080
3886
|
//#endregion
|
|
4081
3887
|
//#region src/form/layouts/index.d.ts
|
|
4082
|
-
declare const ProFormGroup:
|
|
4083
|
-
ref?:
|
|
3888
|
+
declare const ProFormGroup: _$react.FC<ProFormBaseGroupProps & ProFormGridConfig & {
|
|
3889
|
+
ref?: _$react.Ref<any>;
|
|
4084
3890
|
}>;
|
|
4085
3891
|
//#endregion
|
|
4086
3892
|
//#region src/form/components/SchemaForm/typing.d.ts
|
|
@@ -4134,10 +3940,8 @@ type ProFormColumnsType<T = any, ValueType = 'text'> = ProSchema<T, ExtraProColu
|
|
|
4134
3940
|
* @param 总宽度 = span* colSize
|
|
4135
3941
|
* @param 默认为 1
|
|
4136
3942
|
*/
|
|
4137
|
-
colSize?: number;
|
|
4138
|
-
/**
|
|
4139
|
-
readonly?: boolean;
|
|
4140
|
-
/** 搜索表单的默认值 */
|
|
3943
|
+
colSize?: number; /** 是否只读模式 */
|
|
3944
|
+
readonly?: boolean; /** 搜索表单的默认值 */
|
|
4141
3945
|
initialValue?: any;
|
|
4142
3946
|
/**
|
|
4143
3947
|
* @name 获取时转化值,一般用于将数据格式化为组件接收的格式
|
|
@@ -4167,10 +3971,8 @@ type ProFormColumnsType<T = any, ValueType = 'text'> = ProSchema<T, ExtraProColu
|
|
|
4167
3971
|
* @example {name:{value,label}} => { name:string} transform: (value,namePath,allValues)=> value.value
|
|
4168
3972
|
* @example {name:{value,label}} => { valueName,labelName } transform: (value,namePath,allValues)=> { valueName:value.value, labelName:value.name }
|
|
4169
3973
|
*/
|
|
4170
|
-
transform?: SearchTransformKeyFn;
|
|
4171
|
-
/**
|
|
4172
|
-
order?: number;
|
|
4173
|
-
/** 嵌套子项 */
|
|
3974
|
+
transform?: SearchTransformKeyFn; /** Form 的排序 */
|
|
3975
|
+
order?: number; /** 嵌套子项 */
|
|
4174
3976
|
columns?: ProFormColumnsType<T, ValueType | FormFieldType>[] | ((values: any) => ProFormColumnsType<T, ValueType | FormFieldType>[]);
|
|
4175
3977
|
}, ProSchemaComponentTypes, ValueType | FormFieldType>;
|
|
4176
3978
|
type FormSchema<T = Record<string, any>, ValueType = 'text'> = {
|
|
@@ -4194,7 +3996,7 @@ type FormSchema<T = Record<string, any>, ValueType = 'text'> = {
|
|
|
4194
3996
|
*
|
|
4195
3997
|
* @see 此组件仍为 beta 版本,api 可能发生变化
|
|
4196
3998
|
*/
|
|
4197
|
-
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>):
|
|
3999
|
+
declare function BetaSchemaForm<T, ValueType = 'text'>(props: FormSchema<T, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
4198
4000
|
//#endregion
|
|
4199
4001
|
//#region src/form/components/Segmented/index.d.ts
|
|
4200
4002
|
/**
|
|
@@ -4223,8 +4025,7 @@ type ProFormSelectProps<ValueType = any, OptionType extends BaseOptionType | Def
|
|
|
4223
4025
|
*
|
|
4224
4026
|
* @default true
|
|
4225
4027
|
*/
|
|
4226
|
-
fetchDataOnSearch?: boolean;
|
|
4227
|
-
/** 自定义选项渲染 */
|
|
4028
|
+
fetchDataOnSearch?: boolean; /** 自定义选项渲染 */
|
|
4228
4029
|
optionItemRender?: (item: ValueType) => ReactNode;
|
|
4229
4030
|
}, RefSelectProps> & {
|
|
4230
4031
|
options?: SelectProps<ValueType, OptionType>['options'] | string[];
|
|
@@ -4404,7 +4205,7 @@ type ProFormUploadDraggerProps = ProFormFieldItemProps<DraggerProps> & {
|
|
|
4404
4205
|
action?: UploadProps$1['action'];
|
|
4405
4206
|
accept?: UploadProps$1['accept'];
|
|
4406
4207
|
};
|
|
4407
|
-
declare const ProFormUploadDragger:
|
|
4208
|
+
declare const ProFormUploadDragger: _$react.ComponentClass<{
|
|
4408
4209
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4409
4210
|
height?: number;
|
|
4410
4211
|
}> | undefined;
|
|
@@ -4417,7 +4218,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4417
4218
|
proFieldProps?: ProFieldProps;
|
|
4418
4219
|
footerRender?: LightFilterFooterRender;
|
|
4419
4220
|
children?: any;
|
|
4420
|
-
ref?:
|
|
4221
|
+
ref?: _$react.Ref<any>;
|
|
4421
4222
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4422
4223
|
/**
|
|
4423
4224
|
* @name 上传文件块的图标
|
|
@@ -4461,7 +4262,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4461
4262
|
} & {
|
|
4462
4263
|
getFormItemProps?: () => Record<string, any>;
|
|
4463
4264
|
getFieldProps?: () => Record<string, any>;
|
|
4464
|
-
}, any> |
|
|
4265
|
+
}, any> | _$react.FunctionComponent<{
|
|
4465
4266
|
fieldProps?: Partial<FieldProps<any> & UploadProps$1<any> & {
|
|
4466
4267
|
height?: number;
|
|
4467
4268
|
}> | undefined;
|
|
@@ -4474,7 +4275,7 @@ declare const ProFormUploadDragger: react11.ComponentClass<{
|
|
|
4474
4275
|
proFieldProps?: ProFieldProps;
|
|
4475
4276
|
footerRender?: LightFilterFooterRender;
|
|
4476
4277
|
children?: any;
|
|
4477
|
-
ref?:
|
|
4278
|
+
ref?: _$react.Ref<any>;
|
|
4478
4279
|
} & Omit<ProFormItemProps, "valueType"> & Pick<ProFormGridConfig, "colProps"> & ExtendsProps & {
|
|
4479
4280
|
/**
|
|
4480
4281
|
* @name 上传文件块的图标
|
|
@@ -4543,15 +4344,10 @@ interface ProFormGridConfig {
|
|
|
4543
4344
|
rowProps?: RowProps;
|
|
4544
4345
|
}
|
|
4545
4346
|
type ProFormItemCreateConfig = {
|
|
4546
|
-
/** 自定义类型 */
|
|
4547
|
-
|
|
4548
|
-
/**
|
|
4549
|
-
|
|
4550
|
-
/** Light mode 自定义的 label 模式 */
|
|
4551
|
-
lightFilterLabelFormatter?: (value: any) => string;
|
|
4552
|
-
/** 默认的props,如果用户设置会被覆盖 */
|
|
4553
|
-
defaultProps?: Record<string, any>;
|
|
4554
|
-
/** @name 不使用默认的宽度 */
|
|
4347
|
+
/** 自定义类型 */valueType?: ProFieldValueType; /** 自定义 lightMode */
|
|
4348
|
+
customLightMode?: boolean; /** Light mode 自定义的 label 模式 */
|
|
4349
|
+
lightFilterLabelFormatter?: (value: any) => string; /** 默认的props,如果用户设置会被覆盖 */
|
|
4350
|
+
defaultProps?: Record<string, any>; /** @name 不使用默认的宽度 */
|
|
4555
4351
|
ignoreWidth?: boolean;
|
|
4556
4352
|
} & ProFormItemProps;
|
|
4557
4353
|
type ExtendsProps = {
|
|
@@ -4564,8 +4360,7 @@ type ExtendsProps = {
|
|
|
4564
4360
|
*
|
|
4565
4361
|
* @name 网络请求用的输出,会触发reload
|
|
4566
4362
|
*/
|
|
4567
|
-
params?: ((form: ProFormInstance) => Record<string, any>) | Record<string, any>;
|
|
4568
|
-
/** @name 需要放在formItem 时使用 */
|
|
4363
|
+
params?: ((form: ProFormInstance) => Record<string, any>) | Record<string, any>; /** @name 需要放在formItem 时使用 */
|
|
4569
4364
|
ignoreFormItem?: boolean;
|
|
4570
4365
|
/**
|
|
4571
4366
|
* 实验性质,可能 api 会有改动,谨慎使用
|
|
@@ -4582,27 +4377,28 @@ type ExtendsProps = {
|
|
|
4582
4377
|
*
|
|
4583
4378
|
* @name 自定义的 formItemProps
|
|
4584
4379
|
*/
|
|
4585
|
-
formItemProps?: FormItemProps;
|
|
4586
|
-
/** 给自定义组件行为开的口子 */
|
|
4380
|
+
formItemProps?: FormItemProps; /** 给自定义组件行为开的口子 */
|
|
4587
4381
|
fieldConfig?: ProFormItemCreateConfig;
|
|
4588
4382
|
fieldRef?: Ref<CaptFieldRef | null | undefined>;
|
|
4589
4383
|
};
|
|
4590
4384
|
type ProFormGroupProps = ProFormBaseGroupProps & ProFormGridConfig;
|
|
4591
|
-
type FieldProps<K
|
|
4385
|
+
type FieldProps<K> = {
|
|
4592
4386
|
style?: CSSProperties;
|
|
4593
4387
|
width?: string;
|
|
4594
|
-
ref?: Ref<K
|
|
4388
|
+
ref?: Ref<K>;
|
|
4595
4389
|
};
|
|
4596
4390
|
type LightFilterFooterRender = ((
|
|
4597
4391
|
/**
|
|
4598
4392
|
* @name 确认选择的值
|
|
4599
4393
|
*/
|
|
4394
|
+
|
|
4600
4395
|
onConfirm?: ButtonProps['onClick'],
|
|
4601
4396
|
/**
|
|
4602
4397
|
* @name 清除选择
|
|
4603
4398
|
*/
|
|
4399
|
+
|
|
4604
4400
|
onClear?: ButtonProps['onClick']) => JSX.Element | false) | false;
|
|
4605
|
-
type ProFormFieldItemProps<T = Record<string, any>, K
|
|
4401
|
+
type ProFormFieldItemProps<T = Record<string, any>, K = any> = {
|
|
4606
4402
|
/**
|
|
4607
4403
|
* @name 设置到控件上的属性
|
|
4608
4404
|
*
|
|
@@ -4611,7 +4407,7 @@ type ProFormFieldItemProps<T = Record<string, any>, K$1 = any> = {
|
|
|
4611
4407
|
* @example 设置select 多选
|
|
4612
4408
|
* <ProFormText fieldProps={{placeholder:"请输入!"}} />
|
|
4613
4409
|
*/
|
|
4614
|
-
fieldProps?: Partial<FieldProps<K
|
|
4410
|
+
fieldProps?: Partial<FieldProps<K> & T>;
|
|
4615
4411
|
/**
|
|
4616
4412
|
* @name 输入的描述,没有值的时候展示
|
|
4617
4413
|
*/
|
|
@@ -4663,7 +4459,7 @@ type ProFormFieldItemProps<T = Record<string, any>, K$1 = any> = {
|
|
|
4663
4459
|
type ProFormFieldRemoteProps = Pick<ProSchema, 'debounceTime' | 'request' | 'valueEnum' | 'params'>;
|
|
4664
4460
|
//#endregion
|
|
4665
4461
|
//#region src/form/helpers/grid.d.ts
|
|
4666
|
-
declare const GridContext:
|
|
4462
|
+
declare const GridContext: _$react.Context<ProFormGridConfig>;
|
|
4667
4463
|
//#endregion
|
|
4668
4464
|
//#region src/form/FieldContext.d.ts
|
|
4669
4465
|
type FiledContextProps = {
|
|
@@ -4673,18 +4469,14 @@ type FiledContextProps = {
|
|
|
4673
4469
|
groupProps?: ProFormGroupProps;
|
|
4674
4470
|
setFieldValueType?: (name: NamePath, obj: {
|
|
4675
4471
|
valueType?: ProFieldValueType;
|
|
4676
|
-
dateFormat?: string;
|
|
4677
|
-
/** 数据转化的地方 */
|
|
4472
|
+
dateFormat?: string; /** 数据转化的地方 */
|
|
4678
4473
|
transform?: SearchTransformKeyFn;
|
|
4679
|
-
}) => void;
|
|
4680
|
-
/**
|
|
4681
|
-
|
|
4682
|
-
/** 获取表单实例计数器 */
|
|
4683
|
-
formKey?: string;
|
|
4684
|
-
/** 表单的 getPopupContainer 控制 */
|
|
4474
|
+
}) => void; /** Form 组件的类型 */
|
|
4475
|
+
formComponentType?: string; /** 获取表单实例计数器 */
|
|
4476
|
+
formKey?: string; /** 表单的 getPopupContainer 控制 */
|
|
4685
4477
|
getPopupContainer?: (e: HTMLElement) => ParentNode;
|
|
4686
4478
|
} & Pick<CommonFormProps, 'formRef' | 'grid'>;
|
|
4687
|
-
declare const FieldContext:
|
|
4479
|
+
declare const FieldContext: _$react.Context<FiledContextProps>;
|
|
4688
4480
|
//#endregion
|
|
4689
4481
|
//#region src/layout/components/AppsLogoComponents/types.d.ts
|
|
4690
4482
|
type AppItemProps = {
|
|
@@ -4705,36 +4497,24 @@ interface match<Params extends { [K in keyof Params]?: string } = Record<string,
|
|
|
4705
4497
|
url: string;
|
|
4706
4498
|
}
|
|
4707
4499
|
type MenuDataItem = {
|
|
4708
|
-
/** @name 子菜单 */
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
/** @name
|
|
4712
|
-
|
|
4713
|
-
/** @name
|
|
4714
|
-
|
|
4715
|
-
/** @name
|
|
4716
|
-
|
|
4717
|
-
/** @name
|
|
4718
|
-
locale?: string | false;
|
|
4719
|
-
/** @name 菜单的名字 */
|
|
4720
|
-
name?: string;
|
|
4721
|
-
/** @name 用于标定选中的值,默认是 path */
|
|
4722
|
-
key?: string;
|
|
4723
|
-
/** @name disable 菜单选项 */
|
|
4724
|
-
disabled?: boolean;
|
|
4725
|
-
/** @name disable menu 的 tooltip 菜单选项 */
|
|
4726
|
-
disabledTooltip?: boolean;
|
|
4727
|
-
/** @name 路径,可以设定为网页链接 */
|
|
4500
|
+
/** @name 子菜单 */children?: MenuDataItem[];
|
|
4501
|
+
routes?: undefined; /** @name 在菜单中隐藏子节点 */
|
|
4502
|
+
hideChildrenInMenu?: boolean; /** @name 在菜单中隐藏自己和子节点 */
|
|
4503
|
+
hideInMenu?: boolean; /** @name 菜单的icon */
|
|
4504
|
+
icon?: ReactNode; /** @name 自定义菜单的国际化 key */
|
|
4505
|
+
locale?: string | false; /** @name 菜单的名字 */
|
|
4506
|
+
name?: string; /** @name 用于标定选中的值,默认是 path */
|
|
4507
|
+
key?: string; /** @name disable 菜单选项 */
|
|
4508
|
+
disabled?: boolean; /** @name disable menu 的 tooltip 菜单选项 */
|
|
4509
|
+
disabledTooltip?: boolean; /** @name 路径,可以设定为网页链接 */
|
|
4728
4510
|
path?: string;
|
|
4729
4511
|
/**
|
|
4730
4512
|
* 当此节点被选中的时候也会选中 parentKeys 的节点
|
|
4731
4513
|
*
|
|
4732
4514
|
* @name 自定义父节点
|
|
4733
4515
|
*/
|
|
4734
|
-
parentKeys?: string[];
|
|
4735
|
-
/** @name
|
|
4736
|
-
flatMenu?: boolean;
|
|
4737
|
-
/** @name 指定外链打开形式,同a标签 */
|
|
4516
|
+
parentKeys?: string[]; /** @name 隐藏自己,并且将子节点提升到与自己平级 */
|
|
4517
|
+
flatMenu?: boolean; /** @name 指定外链打开形式,同a标签 */
|
|
4738
4518
|
target?: string;
|
|
4739
4519
|
/**
|
|
4740
4520
|
* menuItem 的 tooltip 显示的路径
|
|
@@ -4818,12 +4598,9 @@ type PureSettings = {
|
|
|
4818
4598
|
* @example 侧边菜单 layout="side"
|
|
4819
4599
|
* @example 混合布局 既有顶部也有侧边 layout="mix"
|
|
4820
4600
|
*/
|
|
4821
|
-
layout?: 'side' | 'top' | 'mix';
|
|
4822
|
-
/** @name
|
|
4823
|
-
|
|
4824
|
-
/** @name sticky header */
|
|
4825
|
-
fixedHeader?: boolean;
|
|
4826
|
-
/** @name sticky siderbar */
|
|
4601
|
+
layout?: 'side' | 'top' | 'mix'; /** @name layout of content: `Fluid` or `Fixed`, only works when layout is top */
|
|
4602
|
+
contentWidth?: ContentWidth; /** @name sticky header */
|
|
4603
|
+
fixedHeader?: boolean; /** @name sticky siderbar */
|
|
4827
4604
|
fixSiderbar?: boolean;
|
|
4828
4605
|
/**
|
|
4829
4606
|
* @name menu 相关的一些配置,可以配置菜单的行为
|
|
@@ -4900,10 +4677,8 @@ type PureSettings = {
|
|
|
4900
4677
|
* Your custom iconfont Symbol script Url eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
|
|
4901
4678
|
* 注意:如果需要图标多色,Iconfont 图标项目里要进行批量去色处理 Usage: https://github.com/ant-design/ant-design-pro/pull/3517
|
|
4902
4679
|
*/
|
|
4903
|
-
iconfontUrl?: string;
|
|
4904
|
-
/** @name
|
|
4905
|
-
colorPrimary?: string;
|
|
4906
|
-
/** @name 全局增加滤镜 */
|
|
4680
|
+
iconfontUrl?: string; /** @name 主色,需要配合 umi 使用 */
|
|
4681
|
+
colorPrimary?: string; /** @name 全局增加滤镜 */
|
|
4907
4682
|
colorWeak?: boolean;
|
|
4908
4683
|
/**
|
|
4909
4684
|
* 只在 mix 模式下生效
|
|
@@ -4941,8 +4716,7 @@ declare const GridContent: FC<GridContentProps>;
|
|
|
4941
4716
|
//#region src/layout/components/SiderMenu/BaseMenu.d.ts
|
|
4942
4717
|
type MenuMode = 'vertical' | 'vertical-left' | 'vertical-right' | 'horizontal' | 'inline';
|
|
4943
4718
|
type BaseMenuProps = {
|
|
4944
|
-
className?: string;
|
|
4945
|
-
/** 默认的是否展开,会受到 breakpoint 的影响 */
|
|
4719
|
+
className?: string; /** 默认的是否展开,会受到 breakpoint 的影响 */
|
|
4946
4720
|
defaultCollapsed?: boolean;
|
|
4947
4721
|
collapsed?: boolean;
|
|
4948
4722
|
splitMenus?: boolean;
|
|
@@ -4952,8 +4726,7 @@ type BaseMenuProps = {
|
|
|
4952
4726
|
onCollapse?: (collapsed: boolean) => void;
|
|
4953
4727
|
openKeys?: WithFalse<string[]> | undefined;
|
|
4954
4728
|
onOpenChange?: (openKeys: string[]) => void;
|
|
4955
|
-
iconPrefixes?: string;
|
|
4956
|
-
/** 要给菜单的props, 参考antd-menu的属性。https://ant.design/components/menu-cn/ */
|
|
4729
|
+
iconPrefixes?: string; /** 要给菜单的props, 参考antd-menu的属性。https://ant.design/components/menu-cn/ */
|
|
4957
4730
|
menuProps?: MenuProps;
|
|
4958
4731
|
style?: CSSProperties;
|
|
4959
4732
|
formatMessage?: (message: MessageDescriptor) => string;
|
|
@@ -4998,21 +4771,15 @@ interface SiderMenuToken$1 extends ProAliasToken {
|
|
|
4998
4771
|
//#endregion
|
|
4999
4772
|
//#region src/layout/components/SiderMenu/SiderMenu.d.ts
|
|
5000
4773
|
type SiderMenuProps = {
|
|
5001
|
-
/** 品牌logo的标识 */
|
|
5002
|
-
logo?: ReactNode;
|
|
5003
|
-
/** 相关品牌的列表 */
|
|
4774
|
+
/** 品牌logo的标识 */logo?: ReactNode; /** 相关品牌的列表 */
|
|
5004
4775
|
appList?: AppListProps;
|
|
5005
|
-
appListRender?: (props: AppListProps, defaultDom: ReactNode) => ReactNode;
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
/** 菜单的宽度 */
|
|
5009
|
-
siderWidth?: number;
|
|
5010
|
-
/** 头像的设置 */
|
|
4776
|
+
appListRender?: (props: AppListProps, defaultDom: ReactNode) => ReactNode; /** 相关品牌的列表项 点击事件,当事件存在时,appList 内配置的 url 不在自动跳转 */
|
|
4777
|
+
itemClick?: (item: AppItemProps, popoverRef?: RefObject<HTMLSpanElement | null>) => void; /** 菜单的宽度 */
|
|
4778
|
+
siderWidth?: number; /** 头像的设置 */
|
|
5011
4779
|
avatarProps?: WithFalse<AvatarProps & {
|
|
5012
4780
|
title?: ReactNode;
|
|
5013
4781
|
render?: (avatarProps: AvatarProps, defaultDom: ReactNode, props: SiderMenuProps) => ReactNode;
|
|
5014
|
-
}>;
|
|
5015
|
-
/** Layout的操作功能列表,不同的 layout 会放到不同的位置 */
|
|
4782
|
+
}>; /** Layout的操作功能列表,不同的 layout 会放到不同的位置 */
|
|
5016
4783
|
actionsRender?: WithFalse<(props: HeaderViewProps) => ReactNode[] | ReactNode>;
|
|
5017
4784
|
/**
|
|
5018
4785
|
* @name 菜单 logo 和 title 区域的渲染
|
|
@@ -5104,10 +4871,8 @@ type GlobalHeaderProps = {
|
|
|
5104
4871
|
*/
|
|
5105
4872
|
menuRender?: WithFalse<(props: HeaderViewProps, defaultDom: ReactNode) => ReactNode>;
|
|
5106
4873
|
className?: string;
|
|
5107
|
-
prefixCls?: string;
|
|
5108
|
-
/**
|
|
5109
|
-
appList?: AppListProps;
|
|
5110
|
-
/** 相关品牌的列表项 点击事件,当事件存在时,appList 内配置的 url 不在自动跳转 */
|
|
4874
|
+
prefixCls?: string; /** 相关品牌的列表 */
|
|
4875
|
+
appList?: AppListProps; /** 相关品牌的列表项 点击事件,当事件存在时,appList 内配置的 url 不在自动跳转 */
|
|
5111
4876
|
itemClick?: (item: AppItemProps, popoverRef?: RefObject<HTMLSpanElement | null>) => void;
|
|
5112
4877
|
menuData?: MenuDataItem[];
|
|
5113
4878
|
onMenuHeaderClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
@@ -5120,10 +4885,8 @@ type GlobalHeaderProps = {
|
|
|
5120
4885
|
*/
|
|
5121
4886
|
headerContentRender?: WithFalse<(props: HeaderViewProps, defaultDom: ReactNode) => ReactNode>;
|
|
5122
4887
|
collapsedButtonRender?: SiderMenuProps['collapsedButtonRender'];
|
|
5123
|
-
splitMenus?: boolean;
|
|
5124
|
-
|
|
5125
|
-
actionsRender?: WithFalse<(props: HeaderViewProps) => ReactNode[] | ReactNode>;
|
|
5126
|
-
/** 头像的设置 */
|
|
4888
|
+
splitMenus?: boolean; /** Layout的操作功能列表,不同的 layout 会放到不同的位置 */
|
|
4889
|
+
actionsRender?: WithFalse<(props: HeaderViewProps) => ReactNode[] | ReactNode>; /** 头像的设置 */
|
|
5127
4890
|
avatarProps?: WithFalse<AvatarProps & {
|
|
5128
4891
|
title?: ReactNode;
|
|
5129
4892
|
render?: (props: AvatarProps, defaultDom: ReactNode, siderProps: SiderMenuProps) => ReactNode;
|
|
@@ -5177,19 +4940,13 @@ type pageContainerToken = {
|
|
|
5177
4940
|
//#endregion
|
|
5178
4941
|
//#region src/layout/components/PageContainer/index.d.ts
|
|
5179
4942
|
type PageHeaderTabConfig = {
|
|
5180
|
-
/** @name tabs 的列表 */
|
|
5181
|
-
tabList?: (TabPaneProps & {
|
|
4943
|
+
/** @name tabs 的列表 */tabList?: (TabPaneProps & {
|
|
5182
4944
|
key?: Key;
|
|
5183
|
-
})[];
|
|
5184
|
-
/** @name
|
|
5185
|
-
|
|
5186
|
-
/** @name
|
|
5187
|
-
|
|
5188
|
-
/** @name tab 上额外的区域 */
|
|
5189
|
-
tabBarExtraContent?: TabsProps['tabBarExtraContent'];
|
|
5190
|
-
/** @name tabs 的其他配置 */
|
|
5191
|
-
tabProps?: TabsProps;
|
|
5192
|
-
/** @name fixedHeader 固定 PageHeader 到页面顶部 */
|
|
4945
|
+
})[]; /** @name tabActiveKey 当前选中 tab 的 key */
|
|
4946
|
+
tabActiveKey?: TabsProps['activeKey']; /** @name tab 修改时触发 */
|
|
4947
|
+
onTabChange?: TabsProps['onChange']; /** @name tab 上额外的区域 */
|
|
4948
|
+
tabBarExtraContent?: TabsProps['tabBarExtraContent']; /** @name tabs 的其他配置 */
|
|
4949
|
+
tabProps?: TabsProps; /** @name fixedHeader 固定 PageHeader 到页面顶部 */
|
|
5193
4950
|
fixedHeader?: boolean;
|
|
5194
4951
|
};
|
|
5195
4952
|
type PageContainerProps = {
|
|
@@ -5209,8 +4966,7 @@ type PageContainerProps = {
|
|
|
5209
4966
|
*/
|
|
5210
4967
|
header?: Partial<PageHeaderProps> & {
|
|
5211
4968
|
children?: ReactNode;
|
|
5212
|
-
};
|
|
5213
|
-
/** @name pageHeaderRender 自定义 pageHeader */
|
|
4969
|
+
}; /** @name pageHeaderRender 自定义 pageHeader */
|
|
5214
4970
|
pageHeaderRender?: WithFalse<(props: PageContainerProps) => ReactNode>;
|
|
5215
4971
|
/**
|
|
5216
4972
|
* 与 antd 完全相同
|
|
@@ -5228,10 +4984,8 @@ type PageContainerProps = {
|
|
|
5228
4984
|
* 自定义 breadcrumb,
|
|
5229
4985
|
* @name breadcrumbRender 返回false不展示
|
|
5230
4986
|
*/
|
|
5231
|
-
breadcrumbRender?: PageHeaderProps['breadcrumbRender'] | false;
|
|
5232
|
-
/** @name
|
|
5233
|
-
waterMarkProps?: WatermarkProps;
|
|
5234
|
-
/** @name BreadcrumbProps 配置面包屑 */
|
|
4987
|
+
breadcrumbRender?: PageHeaderProps['breadcrumbRender'] | false; /** @name WaterMarkProps 水印的配置 */
|
|
4988
|
+
waterMarkProps?: WatermarkProps; /** @name BreadcrumbProps 配置面包屑 */
|
|
5235
4989
|
breadcrumb?: BreadcrumbProps;
|
|
5236
4990
|
children?: ReactNode;
|
|
5237
4991
|
stylish?: GenerateStyle<PageContainerToken>;
|
|
@@ -5248,7 +5002,7 @@ declare const ProBreadcrumb: FC<BreadcrumbProps>;
|
|
|
5248
5002
|
declare const PageContainer: FC<PageContainerProps>;
|
|
5249
5003
|
declare const ProPageHeader: (props: PageContainerProps & {
|
|
5250
5004
|
prefixedClassName: string;
|
|
5251
|
-
}) =>
|
|
5005
|
+
}) => _$react_jsx_runtime0.JSX.Element | null;
|
|
5252
5006
|
//#endregion
|
|
5253
5007
|
//#region src/layout/components/PageLoading/index.d.ts
|
|
5254
5008
|
declare const PageLoading: FC<SpinProps & any>;
|
|
@@ -5265,8 +5019,7 @@ type SettingDrawerProps = {
|
|
|
5265
5019
|
onCollapseChange?: (collapse: boolean) => void;
|
|
5266
5020
|
getContainer?: any;
|
|
5267
5021
|
hideHintAlert?: boolean;
|
|
5268
|
-
hideCopyButton?: boolean;
|
|
5269
|
-
/** 使用实验性质的黑色主题 */
|
|
5022
|
+
hideCopyButton?: boolean; /** 使用实验性质的黑色主题 */
|
|
5270
5023
|
enableDarkTheme?: boolean;
|
|
5271
5024
|
prefixCls?: string;
|
|
5272
5025
|
colorList?: false | {
|
|
@@ -5534,8 +5287,7 @@ type ProLayoutProps = GlobalTypes & {
|
|
|
5534
5287
|
stylish?: {
|
|
5535
5288
|
header?: GenerateStyle<SiderMenuToken>;
|
|
5536
5289
|
sider?: GenerateStyle<SiderMenuToken>;
|
|
5537
|
-
};
|
|
5538
|
-
/** Layout 的品牌配置,表现为一张背景图片 */
|
|
5290
|
+
}; /** Layout 的品牌配置,表现为一张背景图片 */
|
|
5539
5291
|
bgLayoutImgList?: {
|
|
5540
5292
|
src?: string;
|
|
5541
5293
|
width?: string;
|
|
@@ -5654,10 +5406,8 @@ type ProLayoutProps = GlobalTypes & {
|
|
|
5654
5406
|
* @example 背景颜色为红色 contentStyle={{ backgroundColor: 'red '}}
|
|
5655
5407
|
*/
|
|
5656
5408
|
contentStyle?: CSSProperties;
|
|
5657
|
-
className?: string;
|
|
5658
|
-
|
|
5659
|
-
breadcrumbProps?: Omit<BreadcrumbProps, 'itemRender'> & LayoutBreadcrumbProps;
|
|
5660
|
-
/** @name 水印的相关配置 */
|
|
5409
|
+
className?: string; /** PageHeader 的 BreadcrumbProps 配置,会透传下去 */
|
|
5410
|
+
breadcrumbProps?: Omit<BreadcrumbProps, 'itemRender'> & LayoutBreadcrumbProps; /** @name 水印的相关配置 */
|
|
5661
5411
|
waterMarkProps?: WatermarkProps;
|
|
5662
5412
|
/**
|
|
5663
5413
|
* @name 操作菜单重新刷新
|
|
@@ -5709,8 +5459,7 @@ type RouteContextType = {
|
|
|
5709
5459
|
};
|
|
5710
5460
|
matchMenus?: MenuDataItem[];
|
|
5711
5461
|
matchMenuKeys?: string[];
|
|
5712
|
-
currentMenu?: PureSettings & MenuDataItem;
|
|
5713
|
-
/** PageHeader 的 BreadcrumbProps 配置,会透传下去 */
|
|
5462
|
+
currentMenu?: PureSettings & MenuDataItem; /** PageHeader 的 BreadcrumbProps 配置,会透传下去 */
|
|
5714
5463
|
breadcrumbProps?: BreadcrumbProps;
|
|
5715
5464
|
waterMarkProps?: WatermarkProps;
|
|
5716
5465
|
} & Partial<PureSettings>;
|
|
@@ -5857,7 +5606,7 @@ type ProHelpDataSource<ValueType = 'text'> = {
|
|
|
5857
5606
|
* 该上下文对象通常用于在 React 组件树中共享数据,即可以通过在组件中使用 ProHelpProvide.Provider 包裹一组组件,
|
|
5858
5607
|
* 将 dataSource 和 valueTypeMap 数据源传递给这些组件,这些组件即可从上下文中获取 dataSource 数据源,实现数据的共享和传递。
|
|
5859
5608
|
*/
|
|
5860
|
-
declare const ProHelpProvide:
|
|
5609
|
+
declare const ProHelpProvide: _$react.Context<{
|
|
5861
5610
|
/**
|
|
5862
5611
|
* 帮助文档的数据源,包含一组帮助文档数据,每个数据包含标题和内容等信息。
|
|
5863
5612
|
*/
|
|
@@ -5903,7 +5652,7 @@ type ProHelpContentPanelProps$1 = {
|
|
|
5903
5652
|
declare const ProHelpContentPanel: FC<ProHelpContentPanelProps$1>;
|
|
5904
5653
|
//#endregion
|
|
5905
5654
|
//#region src/layout/components/Help/ProHelpPanel.d.ts
|
|
5906
|
-
declare const SelectKeyProvide:
|
|
5655
|
+
declare const SelectKeyProvide: _$react.Context<{
|
|
5907
5656
|
selectedKey: string | undefined;
|
|
5908
5657
|
setSelectedKey: (key: string | undefined) => void;
|
|
5909
5658
|
}>;
|
|
@@ -6080,7 +5829,7 @@ declare const ProHelp: <ValueTypeMap = {
|
|
|
6080
5829
|
valueTypeMap,
|
|
6081
5830
|
onLoadContext,
|
|
6082
5831
|
...props
|
|
6083
|
-
}: ProHelpProps<ValueTypeMap>) =>
|
|
5832
|
+
}: ProHelpProps<ValueTypeMap>) => _$react_jsx_runtime0.JSX.Element;
|
|
6084
5833
|
//#endregion
|
|
6085
5834
|
//#region src/table/components/Alert/index.d.ts
|
|
6086
5835
|
type AlertRenderType<T> = ((props: {
|
|
@@ -6128,7 +5877,7 @@ type ListToolBarHeaderMenuProps = {
|
|
|
6128
5877
|
//#region src/table/components/ListToolBar/index.d.ts
|
|
6129
5878
|
type ListToolBarSetting = {
|
|
6130
5879
|
icon: ReactNode;
|
|
6131
|
-
tooltip?:
|
|
5880
|
+
tooltip?: FormItemTooltipType | string;
|
|
6132
5881
|
key?: string;
|
|
6133
5882
|
onClick?: (key?: string) => void;
|
|
6134
5883
|
};
|
|
@@ -6150,28 +5899,17 @@ type SettingPropType = ReactNode | ListToolBarSetting;
|
|
|
6150
5899
|
type ListToolBarProps = {
|
|
6151
5900
|
prefixCls?: string;
|
|
6152
5901
|
className?: string;
|
|
6153
|
-
style?: CSSProperties;
|
|
6154
|
-
/**
|
|
6155
|
-
|
|
6156
|
-
/**
|
|
6157
|
-
|
|
6158
|
-
/**
|
|
6159
|
-
|
|
6160
|
-
/**
|
|
6161
|
-
|
|
6162
|
-
/**
|
|
6163
|
-
|
|
6164
|
-
/** 工具栏右侧操作区 */
|
|
6165
|
-
actions?: ReactNode[];
|
|
6166
|
-
/** 工作栏右侧设置区 */
|
|
6167
|
-
settings?: SettingPropType[];
|
|
6168
|
-
/** 是否多行展示 */
|
|
6169
|
-
multipleLine?: boolean;
|
|
6170
|
-
/** 过滤区,通常配合 LightFilter 使用 */
|
|
6171
|
-
filter?: ReactNode;
|
|
6172
|
-
/** 标签页配置,仅当 `multipleLine` 为 true 时有效 */
|
|
6173
|
-
tabs?: ListToolBarTabs;
|
|
6174
|
-
/** 菜单配置 */
|
|
5902
|
+
style?: CSSProperties; /** 标题 */
|
|
5903
|
+
title?: ReactNode; /** 副标题 */
|
|
5904
|
+
subTitle?: ReactNode; /** 标题提示 */
|
|
5905
|
+
tooltip?: string | FormItemTooltipType; /** 搜索输入栏相关配置 */
|
|
5906
|
+
search?: SearchPropType; /** 搜索回调 */
|
|
5907
|
+
onSearch?: (keyWords: string) => void; /** 工具栏右侧操作区 */
|
|
5908
|
+
actions?: ReactNode[]; /** 工作栏右侧设置区 */
|
|
5909
|
+
settings?: SettingPropType[]; /** 是否多行展示 */
|
|
5910
|
+
multipleLine?: boolean; /** 过滤区,通常配合 LightFilter 使用 */
|
|
5911
|
+
filter?: ReactNode; /** 标签页配置,仅当 `multipleLine` 为 true 时有效 */
|
|
5912
|
+
tabs?: ListToolBarTabs; /** 菜单配置 */
|
|
6175
5913
|
menu?: ListToolBarMenu;
|
|
6176
5914
|
};
|
|
6177
5915
|
declare const ListToolBar: FC<ListToolBarProps>;
|
|
@@ -6202,7 +5940,7 @@ type OptionsFunctionType = (e: MouseEvent<HTMLSpanElement>, action?: ActionType)
|
|
|
6202
5940
|
type OptionsType = OptionsFunctionType | boolean;
|
|
6203
5941
|
type ToolBarProps<T = unknown> = {
|
|
6204
5942
|
headerTitle?: ReactNode;
|
|
6205
|
-
tooltip?: string |
|
|
5943
|
+
tooltip?: string | FormItemTooltipType;
|
|
6206
5944
|
toolbar?: ListToolBarProps;
|
|
6207
5945
|
toolBarRender?: (action: ActionType | undefined, rows: {
|
|
6208
5946
|
selectedRowKeys?: (string | number)[];
|
|
@@ -6222,7 +5960,7 @@ type ToolbarRenderProps<T> = {
|
|
|
6222
5960
|
onFormSearchSubmit: (params: any) => void;
|
|
6223
5961
|
searchNode: ReactNode;
|
|
6224
5962
|
tableColumn: any[];
|
|
6225
|
-
tooltip?: string |
|
|
5963
|
+
tooltip?: string | FormItemTooltipType;
|
|
6226
5964
|
selectedRows: T[];
|
|
6227
5965
|
selectedRowKeys: Key[] | (string | number)[];
|
|
6228
5966
|
headerTitle: ReactNode;
|
|
@@ -6263,8 +6001,7 @@ type RequestData<T> = {
|
|
|
6263
6001
|
*/
|
|
6264
6002
|
type FilterValue = (string | number)[] | null;
|
|
6265
6003
|
type ProSorter<T> = string | boolean | CompareFn<T> | {
|
|
6266
|
-
compare?: CompareFn<T>;
|
|
6267
|
-
/** Config multiple sorter order priority */
|
|
6004
|
+
compare?: CompareFn<T>; /** Config multiple sorter order priority */
|
|
6268
6005
|
multiple?: number;
|
|
6269
6006
|
};
|
|
6270
6007
|
type ExtraProColumnType<T> = Omit<ColumnType<T>, 'render' | 'children' | 'title' | 'filters' | 'onFilter' | 'sorter'> & {
|
|
@@ -6279,14 +6016,10 @@ type ProColumnType<T = unknown, ValueType = 'text'> = ProSchema<T, ExtraProColum
|
|
|
6279
6016
|
* @param 总宽度 = span* colSize
|
|
6280
6017
|
* @param 默认为 1
|
|
6281
6018
|
*/
|
|
6282
|
-
colSize?: number;
|
|
6283
|
-
/**
|
|
6284
|
-
|
|
6285
|
-
/**
|
|
6286
|
-
ellipsis?: ColumnType<T>['ellipsis'];
|
|
6287
|
-
/** @name 是否拷贝 */
|
|
6288
|
-
copyable?: boolean;
|
|
6289
|
-
/** 在查询表单中隐藏 */
|
|
6019
|
+
colSize?: number; /** 搜索表单的默认值 */
|
|
6020
|
+
initialValue?: any; /** @name 是否缩略 */
|
|
6021
|
+
ellipsis?: ColumnType<T>['ellipsis']; /** @name 是否拷贝 */
|
|
6022
|
+
copyable?: boolean; /** 在查询表单中隐藏 */
|
|
6290
6023
|
search?: boolean | {
|
|
6291
6024
|
/**
|
|
6292
6025
|
* Transform: (value: any) => ({ startTime: value[0], endTime: value[1] }),
|
|
@@ -6294,26 +6027,16 @@ type ProColumnType<T = unknown, ValueType = 'text'> = ProSchema<T, ExtraProColum
|
|
|
6294
6027
|
* @name 转化值的key, 一般用于时间区间的转化
|
|
6295
6028
|
*/
|
|
6296
6029
|
transform: SearchTransformKeyFn;
|
|
6297
|
-
};
|
|
6298
|
-
/** @name
|
|
6299
|
-
|
|
6300
|
-
/** @name
|
|
6301
|
-
|
|
6302
|
-
/** @name
|
|
6303
|
-
|
|
6304
|
-
/** @
|
|
6305
|
-
|
|
6306
|
-
/** @name
|
|
6307
|
-
onFilter?: boolean | ColumnType<T>['onFilter'];
|
|
6308
|
-
/** @name Form 的排序 */
|
|
6309
|
-
order?: number;
|
|
6310
|
-
/** @name 可编辑表格是否可编辑 */
|
|
6311
|
-
editable?: boolean | ProTableEditableFnType<T>;
|
|
6312
|
-
/** @private */
|
|
6313
|
-
listKey?: string;
|
|
6314
|
-
/** @name 只读 */
|
|
6315
|
-
readonly?: boolean;
|
|
6316
|
-
/** @name 列设置的 disabled */
|
|
6030
|
+
}; /** @name 在 table 中隐藏 */
|
|
6031
|
+
hideInTable?: boolean; /** @name 在新建表单中删除 */
|
|
6032
|
+
hideInForm?: boolean; /** @name 不在配置工具中显示 */
|
|
6033
|
+
hideInSetting?: boolean; /** @name 表头的筛选菜单项 */
|
|
6034
|
+
filters?: boolean | ColumnFilterItem[]; /** @name 筛选的函数,设置为 false 会关闭自带的本地筛选 */
|
|
6035
|
+
onFilter?: boolean | ColumnType<T>['onFilter']; /** @name Form 的排序 */
|
|
6036
|
+
order?: number; /** @name 可编辑表格是否可编辑 */
|
|
6037
|
+
editable?: boolean | ProTableEditableFnType<T>; /** @private */
|
|
6038
|
+
listKey?: string; /** @name 只读 */
|
|
6039
|
+
readonly?: boolean; /** @name 列设置的 disabled */
|
|
6317
6040
|
disable?: boolean | {
|
|
6318
6041
|
checkbox: boolean;
|
|
6319
6042
|
};
|
|
@@ -6332,12 +6055,9 @@ type ColumnStateType = {
|
|
|
6332
6055
|
* @param localStorage 设置在关闭浏览器后也是存在的
|
|
6333
6056
|
* @param sessionStorage 关闭浏览器后会丢失
|
|
6334
6057
|
*/
|
|
6335
|
-
persistenceType?: 'localStorage' | 'sessionStorage';
|
|
6336
|
-
/**
|
|
6337
|
-
|
|
6338
|
-
/** ColumnsState 的值 */
|
|
6339
|
-
defaultValue?: Record<string, ColumnsState>;
|
|
6340
|
-
/** ColumnsState 的值 */
|
|
6058
|
+
persistenceType?: 'localStorage' | 'sessionStorage'; /** 持久化的key,用于存储到 storage 中 */
|
|
6059
|
+
persistenceKey?: string; /** ColumnsState 的值 */
|
|
6060
|
+
defaultValue?: Record<string, ColumnsState>; /** ColumnsState 的值 */
|
|
6341
6061
|
value?: Record<string, ColumnsState>;
|
|
6342
6062
|
onChange?: (map: Record<string, ColumnsState>) => void;
|
|
6343
6063
|
};
|
|
@@ -6361,9 +6081,9 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6361
6081
|
* @example pathname 修改重新触发 request
|
|
6362
6082
|
* params={{ pathName }}
|
|
6363
6083
|
*/
|
|
6364
|
-
params?: U;
|
|
6365
|
-
/** @name 列状态的配置,可以用来操作列功能 */
|
|
6084
|
+
params?: U; /** @name 列状态的配置,可以用来操作列功能 */
|
|
6366
6085
|
columnsState?: ColumnStateType;
|
|
6086
|
+
size?: DensitySize;
|
|
6367
6087
|
onSizeChange?: (size: DensitySize) => void;
|
|
6368
6088
|
/**
|
|
6369
6089
|
* @name table 外面卡片的设置
|
|
@@ -6373,6 +6093,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6373
6093
|
* @name 渲染 table
|
|
6374
6094
|
*/
|
|
6375
6095
|
tableRender?: (props: ProTableProps<DataSource, U, ValueType>, defaultDom: ReactNode, /** 各个区域的 dom */
|
|
6096
|
+
|
|
6376
6097
|
domList: {
|
|
6377
6098
|
toolbar: ReactNode;
|
|
6378
6099
|
alert: ReactNode;
|
|
@@ -6393,16 +6114,13 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6393
6114
|
/**
|
|
6394
6115
|
* @name 渲染搜索表单
|
|
6395
6116
|
*/
|
|
6396
|
-
searchFormRender?: (props: ProTableProps<DataSource, U, ValueType>, defaultDom: JSX.Element) => ReactNode;
|
|
6397
|
-
/** @name 一个获得 dataSource 的方法 */
|
|
6117
|
+
searchFormRender?: (props: ProTableProps<DataSource, U, ValueType>, defaultDom: JSX.Element) => ReactNode; /** @name 一个获得 dataSource 的方法 */
|
|
6398
6118
|
request?: (params: U & {
|
|
6399
6119
|
pageSize?: number;
|
|
6400
6120
|
current?: number;
|
|
6401
6121
|
keyword?: string;
|
|
6402
|
-
}, sort: Record<string, SortOrder>, filter: Record<string, FilterValue>) => Promise<Partial<RequestData<DataSource>>>;
|
|
6403
|
-
/** @name
|
|
6404
|
-
postData?: any;
|
|
6405
|
-
/** @name 默认的数据 */
|
|
6122
|
+
}, sort: Record<string, SortOrder>, filter: Record<string, FilterValue>) => Promise<Partial<RequestData<DataSource>>>; /** @name 对数据进行一些处理 */
|
|
6123
|
+
postData?: any; /** @name 默认的数据 */
|
|
6406
6124
|
defaultData?: DataSource[];
|
|
6407
6125
|
/**
|
|
6408
6126
|
* @name 初始化的参数,可以操作 table
|
|
@@ -6440,16 +6158,11 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6440
6158
|
* @property {number} polling 表示轮询的时间间隔,0 表示关闭轮询,大于 0 表示开启轮询,最小的轮询时间为 2000ms
|
|
6441
6159
|
* @param dataSource 返回当前的表单数据,你可以用它判断要不要打开轮询
|
|
6442
6160
|
*/
|
|
6443
|
-
polling?: number | ((dataSource: DataSource[]) => number);
|
|
6444
|
-
/** @name 给封装的 table 的
|
|
6445
|
-
|
|
6446
|
-
/** @name
|
|
6447
|
-
|
|
6448
|
-
/** @name 左上角的 title */
|
|
6449
|
-
headerTitle?: ReactNode;
|
|
6450
|
-
/** @name 标题旁边的 tooltip */
|
|
6451
|
-
tooltip?: string | LabelTooltipType;
|
|
6452
|
-
/** @name 操作栏配置 */
|
|
6161
|
+
polling?: number | ((dataSource: DataSource[]) => number); /** @name 给封装的 table 的 className */
|
|
6162
|
+
tableClassName?: string; /** @name 给封装的 table 的 style */
|
|
6163
|
+
tableStyle?: CSSProperties; /** @name 左上角的 title */
|
|
6164
|
+
headerTitle?: ReactNode; /** @name 标题旁边的 tooltip */
|
|
6165
|
+
tooltip?: string | FormItemTooltipType; /** @name 操作栏配置 */
|
|
6453
6166
|
options?: OptionConfig | false;
|
|
6454
6167
|
/**
|
|
6455
6168
|
* @type SearchConfig
|
|
@@ -6467,8 +6180,7 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6467
6180
|
*
|
|
6468
6181
|
* @name 如何格式化日期
|
|
6469
6182
|
*/
|
|
6470
|
-
dateFormatter?: (string & {}) | 'string' | 'number' | ((value: dayjs.Dayjs, valueType: string) => string | number) | false;
|
|
6471
|
-
/** @name 格式化搜索表单提交数据 */
|
|
6183
|
+
dateFormatter?: (string & {}) | 'string' | 'number' | ((value: dayjs.Dayjs, valueType: string) => string | number) | false; /** @name 格式化搜索表单提交数据 */
|
|
6472
6184
|
beforeSearchSubmit?: (params: Partial<U>) => any;
|
|
6473
6185
|
/**
|
|
6474
6186
|
* 设置或者返回false 即可关闭
|
|
@@ -6481,21 +6193,15 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6481
6193
|
*
|
|
6482
6194
|
* @name 自定义 table 的 alert 的操作
|
|
6483
6195
|
*/
|
|
6484
|
-
tableAlertOptionRender?: AlertRenderType<DataSource>;
|
|
6485
|
-
/** @name 选择项配置 */
|
|
6196
|
+
tableAlertOptionRender?: AlertRenderType<DataSource>; /** @name 选择项配置 */
|
|
6486
6197
|
rowSelection?: (TableProps<DataSource>['rowSelection'] & {
|
|
6487
6198
|
alwaysShowAlert?: boolean;
|
|
6488
6199
|
}) | false;
|
|
6489
|
-
style?: CSSProperties;
|
|
6490
|
-
/**
|
|
6491
|
-
|
|
6492
|
-
/** @name
|
|
6493
|
-
|
|
6494
|
-
/** @name 重置表单时触发 */
|
|
6495
|
-
onReset?: () => void;
|
|
6496
|
-
/** @name 空值时显示 */
|
|
6497
|
-
columnEmptyText?: ProFieldEmptyText;
|
|
6498
|
-
/** @name 是否手动触发请求 */
|
|
6200
|
+
style?: CSSProperties; /** 支持 ProTable 的类型 */
|
|
6201
|
+
type?: ProSchemaComponentTypes; /** @name 提交表单时触发 */
|
|
6202
|
+
onSubmit?: (params: U) => void; /** @name 重置表单时触发 */
|
|
6203
|
+
onReset?: () => void; /** @name 空值时显示 */
|
|
6204
|
+
columnEmptyText?: ProFieldEmptyText; /** @name 是否手动触发请求 */
|
|
6499
6205
|
manualRequest?: boolean;
|
|
6500
6206
|
/**
|
|
6501
6207
|
* @name 编辑行相关的配置
|
|
@@ -6510,10 +6216,8 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6510
6216
|
/**
|
|
6511
6217
|
* @name 可编辑表格修改数据的改变
|
|
6512
6218
|
*/
|
|
6513
|
-
onDataSourceChange?: (dataSource: DataSource[]) => void;
|
|
6514
|
-
/** @name
|
|
6515
|
-
cardBordered?: Bordered;
|
|
6516
|
-
/** @name 去抖时间 */
|
|
6219
|
+
onDataSourceChange?: (dataSource: DataSource[]) => void; /** @name 查询表单和 Table 的卡片 border 配置 */
|
|
6220
|
+
cardBordered?: Bordered; /** @name 去抖时间 */
|
|
6517
6221
|
debounceTime?: number;
|
|
6518
6222
|
/**
|
|
6519
6223
|
* 只在request 存在的时候生效,可编辑表格也不会生效
|
|
@@ -6521,9 +6225,8 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6521
6225
|
* @default false
|
|
6522
6226
|
* @name 窗口聚焦时自动重新请求
|
|
6523
6227
|
*/
|
|
6524
|
-
revalidateOnFocus?: boolean;
|
|
6525
|
-
|
|
6526
|
-
defaultSize?: SizeType;
|
|
6228
|
+
revalidateOnFocus?: boolean; /** 默认的表格大小 */
|
|
6229
|
+
defaultSize?: DensitySize;
|
|
6527
6230
|
/**
|
|
6528
6231
|
* @name, 可编辑表格的name,通过这个name 可以直接与 form通信,无需嵌套
|
|
6529
6232
|
*/
|
|
@@ -6532,11 +6235,9 @@ type ProTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
6532
6235
|
* 错误边界自定义
|
|
6533
6236
|
*/
|
|
6534
6237
|
ErrorBoundary?: ComponentClass<any, any> | false;
|
|
6535
|
-
} & Omit<TableProps<DataSource>, 'columns' | 'rowSelection'>;
|
|
6238
|
+
} & Omit<TableProps<DataSource>, 'columns' | 'rowSelection' | 'size'>;
|
|
6536
6239
|
type ActionType = ProCoreActionType & {
|
|
6537
|
-
/** 原生 DOM 元素引用 */
|
|
6538
|
-
nativeElement?: HTMLDivElement;
|
|
6539
|
-
/** 聚焦方法 */
|
|
6240
|
+
/** 原生 DOM 元素引用 */nativeElement?: HTMLDivElement; /** 聚焦方法 */
|
|
6540
6241
|
focus?: () => void;
|
|
6541
6242
|
fullScreen?: () => void;
|
|
6542
6243
|
setPageInfo?: (page: Partial<PageInfo$1>) => void;
|
|
@@ -6552,20 +6253,16 @@ type ActionType = ProCoreActionType & {
|
|
|
6552
6253
|
}) => void;
|
|
6553
6254
|
};
|
|
6554
6255
|
type OptionSearchProps = Omit<SearchProps, 'onSearch'> & {
|
|
6555
|
-
/** 如果 onSearch 返回一个false,直接拦截请求 */
|
|
6556
|
-
onSearch?: (keyword: string) => Promise<boolean | undefined> | boolean | undefined;
|
|
6256
|
+
/** 如果 onSearch 返回一个false,直接拦截请求 */onSearch?: (keyword: string) => Promise<boolean | undefined> | boolean | undefined;
|
|
6557
6257
|
};
|
|
6558
6258
|
//#endregion
|
|
6559
6259
|
//#region src/table/components/DragSortTable/index.d.ts
|
|
6560
6260
|
type DragTableProps<T, U> = {
|
|
6561
|
-
/** @name 拖动排序列key值 如配置此参数,则会在该 key 对应的行显示拖拽排序把手,允许拖拽排序 */
|
|
6562
|
-
|
|
6563
|
-
/** @name 渲染自定义拖动排序把手的函数 如配置了 dragSortKey 但未配置此参数,则使用默认把手图标 */
|
|
6564
|
-
dragSortHandlerRender?: (rowData: T, idx: number) => ReactNode;
|
|
6565
|
-
/** @name 拖动排序完成回调 */
|
|
6261
|
+
/** @name 拖动排序列key值 如配置此参数,则会在该 key 对应的行显示拖拽排序把手,允许拖拽排序 */dragSortKey?: string; /** @name 渲染自定义拖动排序把手的函数 如配置了 dragSortKey 但未配置此参数,则使用默认把手图标 */
|
|
6262
|
+
dragSortHandlerRender?: (rowData: T, idx: number) => ReactNode; /** @name 拖动排序完成回调 */
|
|
6566
6263
|
onDragSortEnd?: (beforeIndex: number, afterIndex: number, newDataSource: T[]) => Promise<void> | void;
|
|
6567
6264
|
} & ProTableProps<T, U>;
|
|
6568
|
-
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>):
|
|
6265
|
+
declare function DragSortTable<T extends Record<string, any>, U extends ParamsType = ParamsType, ValueType = 'text'>(props: DragTableProps<T, U>): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
|
|
6569
6266
|
//#endregion
|
|
6570
6267
|
//#region src/table/components/Dropdown/index.d.ts
|
|
6571
6268
|
interface MenuItems extends MenuItemProps {
|
|
@@ -6639,31 +6336,24 @@ type RecordCreatorProps<DataSourceType> = {
|
|
|
6639
6336
|
* @augments dataSource 将会新增一行数据到 dataSource 中,不支持取消,只能删除
|
|
6640
6337
|
* @augments cache 将会把数据放到缓存中,取消后消失
|
|
6641
6338
|
*/
|
|
6642
|
-
newRecordType?: 'dataSource' | 'cache';
|
|
6643
|
-
/** 要增加到哪个节点下,一般用于多重嵌套表格 */
|
|
6339
|
+
newRecordType?: 'dataSource' | 'cache'; /** 要增加到哪个节点下,一般用于多重嵌套表格 */
|
|
6644
6340
|
parentKey?: Key | ((index: number, dataSource: DataSourceType[]) => Key);
|
|
6645
6341
|
};
|
|
6646
6342
|
type EditableProTableProps<T, U extends ParamsType, ValueType = 'text'> = Omit<ProTableProps<T, U, ValueType>, 'onChange'> & {
|
|
6647
6343
|
defaultValue?: readonly T[];
|
|
6648
6344
|
value?: readonly T[];
|
|
6649
|
-
onChange?: (value: readonly T[]) => void;
|
|
6650
|
-
/** @name 原先的 table OnChange */
|
|
6345
|
+
onChange?: (value: readonly T[]) => void; /** @name 原先的 table OnChange */
|
|
6651
6346
|
onTableChange?: ProTableProps<T, U>['onChange'];
|
|
6652
6347
|
/**
|
|
6653
6348
|
*@name 可编辑表格,列配置的form,可以操作表格里面的数据
|
|
6654
6349
|
*/
|
|
6655
|
-
editableFormRef?: Ref<EditableFormInstance<T> | undefined>;
|
|
6656
|
-
/** @name 新建按钮的设置 */
|
|
6350
|
+
editableFormRef?: Ref<EditableFormInstance<T> | undefined>; /** @name 新建按钮的设置 */
|
|
6657
6351
|
recordCreatorProps?: (RecordCreatorProps<T> & ButtonProps & {
|
|
6658
6352
|
creatorButtonText?: ReactNode;
|
|
6659
|
-
}) | false;
|
|
6660
|
-
/**
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
onValuesChange?: (values: T[], record: T) => void;
|
|
6664
|
-
/** 是否受控,如果为 true,每次 value 更新都会重置表单 */
|
|
6665
|
-
controlled?: boolean;
|
|
6666
|
-
/** FormItem 的设置 */
|
|
6353
|
+
}) | false; /** 最大行数 */
|
|
6354
|
+
maxLength?: number; /** Table 的值发生改变,为了适应 Form 调整了顺序 */
|
|
6355
|
+
onValuesChange?: (values: T[], record: T) => void; /** 是否受控,如果为 true,每次 value 更新都会重置表单 */
|
|
6356
|
+
controlled?: boolean; /** FormItem 的设置 */
|
|
6667
6357
|
formItemProps?: Omit<FormItemProps, 'children' | 'name'>;
|
|
6668
6358
|
};
|
|
6669
6359
|
/**
|
|
@@ -6671,18 +6361,18 @@ type EditableProTableProps<T, U extends ParamsType, ValueType = 'text'> = Omit<P
|
|
|
6671
6361
|
* A React component that is used to create a table.
|
|
6672
6362
|
* @param props
|
|
6673
6363
|
*/
|
|
6674
|
-
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6364
|
+
declare function FieldEditableTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6675
6365
|
declare namespace FieldEditableTable {
|
|
6676
6366
|
var RecordCreator: <T = Record<string, any>>(props: RecordCreatorProps<T> & {
|
|
6677
6367
|
children: JSX.Element;
|
|
6678
|
-
}) =>
|
|
6368
|
+
}) => _$react.FunctionComponentElement<any>;
|
|
6679
6369
|
}
|
|
6680
6370
|
//#endregion
|
|
6681
6371
|
//#region src/table/components/EditableTable/CellEditorTable.d.ts
|
|
6682
|
-
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6372
|
+
declare function CellEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6683
6373
|
//#endregion
|
|
6684
6374
|
//#region src/table/components/EditableTable/RowEditorTable.d.ts
|
|
6685
|
-
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>):
|
|
6375
|
+
declare function RowEditorTable<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = 'text'>(props: EditableProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6686
6376
|
//#endregion
|
|
6687
6377
|
//#region src/table/components/Form/index.d.ts
|
|
6688
6378
|
type BaseFormProps<T, U> = {
|
|
@@ -6718,7 +6408,7 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6718
6408
|
*/
|
|
6719
6409
|
isEqual: (next: BaseFormProps<T, U>) => boolean;
|
|
6720
6410
|
shouldComponentUpdate: (next: BaseFormProps<T, U>) => boolean;
|
|
6721
|
-
render: () =>
|
|
6411
|
+
render: () => _$react_jsx_runtime0.JSX.Element;
|
|
6722
6412
|
}
|
|
6723
6413
|
//#endregion
|
|
6724
6414
|
//#region src/table/Table.d.ts
|
|
@@ -6728,10 +6418,10 @@ declare class FormSearch<T, U> extends Component<BaseFormProps<T, U> & {
|
|
|
6728
6418
|
* @param props
|
|
6729
6419
|
*/
|
|
6730
6420
|
declare const ProviderTableContainer: {
|
|
6731
|
-
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>):
|
|
6732
|
-
Summary:
|
|
6733
|
-
Row: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Row0.FooterRowProps>>;
|
|
6734
|
-
Cell: React.FC<React.PropsWithChildren<_rc_component_table_lib_Footer_Cell0.SummaryCellProps>>;
|
|
6421
|
+
<DataType extends Record<string, any>, Params extends ParamsType = ParamsType, ValueType = "text">(props: ProTableProps<DataType, Params, ValueType>): _$react_jsx_runtime0.JSX.Element;
|
|
6422
|
+
Summary: _$react.FC<_$react.PropsWithChildren<_$_rc_component_table_lib_Footer_Summary0.SummaryProps>> & {
|
|
6423
|
+
Row: React.FC<React.PropsWithChildren<_$_rc_component_table_lib_Footer_Row0.FooterRowProps>>;
|
|
6424
|
+
Cell: React.FC<React.PropsWithChildren<_$_rc_component_table_lib_Footer_Cell0.SummaryCellProps>>;
|
|
6735
6425
|
};
|
|
6736
6426
|
};
|
|
6737
6427
|
//#endregion
|
|
@@ -6808,7 +6498,7 @@ type BaseProListMetas<T = any> = {
|
|
|
6808
6498
|
type ProListMetas<T = any> = BaseProListMetas<T> & { [key in keyof T]?: IsAny<T> extends true ? ProListMetaAction<T> : ProListMeta<T> };
|
|
6809
6499
|
type GetComponentProps<RecordType> = (record: RecordType, index: number) => HTMLAttributes<HTMLElement>;
|
|
6810
6500
|
type ProListProps<RecordType = any, Params = Record<string, any>, ValueType = 'text'> = Omit<ProTableProps<RecordType, Params, ValueType>, 'size' | 'footer'> & AntdListProps<RecordType> & {
|
|
6811
|
-
tooltip?:
|
|
6501
|
+
tooltip?: FormItemTooltipType | string;
|
|
6812
6502
|
metas?: ProListMetas<RecordType>;
|
|
6813
6503
|
showActions?: 'hover' | 'always';
|
|
6814
6504
|
showExtra?: 'hover' | 'always';
|
|
@@ -6820,8 +6510,8 @@ type ProListProps<RecordType = any, Params = Record<string, any>, ValueType = 't
|
|
|
6820
6510
|
itemTitleRender?: ItemProps<RecordType>['itemTitleRender'];
|
|
6821
6511
|
};
|
|
6822
6512
|
type TriggerEventHandler<RecordType> = (record: RecordType) => void;
|
|
6823
|
-
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>):
|
|
6824
|
-
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>):
|
|
6513
|
+
declare function BaseProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): _$react_jsx_runtime0.JSX.Element;
|
|
6514
|
+
declare function ProList<RecordType extends Record<string, any>, U extends Record<string, any> = Record<string, any>>(props: ProListProps<RecordType, U>): _$react_jsx_runtime0.JSX.Element;
|
|
6825
6515
|
//#endregion
|
|
6826
6516
|
//#region src/skeleton/components/Descriptions/index.d.ts
|
|
6827
6517
|
type DescriptionsPageSkeletonProps = {
|
|
@@ -6840,7 +6530,7 @@ declare const TableItemSkeleton: ({
|
|
|
6840
6530
|
}: {
|
|
6841
6531
|
active: boolean;
|
|
6842
6532
|
header?: boolean;
|
|
6843
|
-
}) =>
|
|
6533
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6844
6534
|
/**
|
|
6845
6535
|
* Table 骨架屏
|
|
6846
6536
|
*
|
|
@@ -6854,7 +6544,7 @@ declare const DescriptionsSkeleton: ({
|
|
|
6854
6544
|
active
|
|
6855
6545
|
}: {
|
|
6856
6546
|
active: boolean;
|
|
6857
|
-
}) =>
|
|
6547
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6858
6548
|
//#endregion
|
|
6859
6549
|
//#region src/skeleton/components/List/index.d.ts
|
|
6860
6550
|
/** 列表子项目骨架屏 */
|
|
@@ -6876,7 +6566,7 @@ declare const PageHeaderSkeleton: ({
|
|
|
6876
6566
|
active
|
|
6877
6567
|
}: {
|
|
6878
6568
|
active: boolean;
|
|
6879
|
-
}) =>
|
|
6569
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6880
6570
|
type ListPageSkeletonProps = {
|
|
6881
6571
|
active?: boolean;
|
|
6882
6572
|
pageHeader?: false;
|
|
@@ -6894,7 +6584,7 @@ declare const ListToolbarSkeleton: ({
|
|
|
6894
6584
|
active
|
|
6895
6585
|
}: {
|
|
6896
6586
|
active: boolean;
|
|
6897
|
-
}) =>
|
|
6587
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
6898
6588
|
declare const ListPageSkeleton: FC<ListPageSkeletonProps>;
|
|
6899
6589
|
//#endregion
|
|
6900
6590
|
//#region src/skeleton/index.d.ts
|