@xxlabs/antd-plus 1.5.0 → 1.5.1

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