@flatbiz/antd 4.1.7 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_rollupPluginBabelHelpers-1f4d8910.js +3 -0
- package/esm/_rollupPluginBabelHelpers-1f4d8910.js.map +1 -0
- package/esm/attach-properties-to-component-9d9644cf.js +3 -0
- package/esm/attach-properties-to-component-9d9644cf.js.map +1 -0
- package/esm/button-operate/index.css +1 -0
- package/esm/button-operate/index.js +10 -0
- package/esm/button-operate/index.js.map +1 -0
- package/esm/button-operate-32f0fea1.js +3 -0
- package/esm/button-operate-32f0fea1.js.map +1 -0
- package/esm/button-wrapper/index.css +0 -0
- package/esm/button-wrapper/index.js +6 -0
- package/esm/button-wrapper/index.js.map +1 -0
- package/esm/button-wrapper-9bef2281.js +3 -0
- package/esm/button-wrapper-9bef2281.js.map +1 -0
- package/esm/cascader-wrapper/index.css +1 -0
- package/esm/cascader-wrapper/index.js +7 -0
- package/esm/cascader-wrapper/index.js.map +1 -0
- package/esm/check-list/index.css +1 -0
- package/esm/check-list/index.js +6 -0
- package/esm/check-list/index.js.map +1 -0
- package/esm/config-provider-wrapper/index.css +0 -0
- package/esm/config-provider-wrapper/index.js +6 -0
- package/esm/config-provider-wrapper/index.js.map +1 -0
- package/esm/config-provider-wrapper-dfe8f592.js +3 -0
- package/esm/config-provider-wrapper-dfe8f592.js.map +1 -0
- package/esm/context-25d0b686.js +3 -0
- package/esm/context-25d0b686.js.map +1 -0
- package/esm/create-drawer-wrapper-model/index.css +0 -0
- package/esm/create-drawer-wrapper-model/index.js +5 -0
- package/esm/create-drawer-wrapper-model/index.js.map +1 -0
- package/esm/create-modal-wrapper-model/index.css +0 -0
- package/esm/create-modal-wrapper-model/index.js +5 -0
- package/esm/create-modal-wrapper-model/index.js.map +1 -0
- package/esm/css-node-hover/index.css +1 -0
- package/esm/css-node-hover/index.js +5 -0
- package/esm/css-node-hover/index.js.map +1 -0
- package/esm/date-picker-wrapper/index.css +0 -0
- package/esm/date-picker-wrapper/index.js +5 -0
- package/esm/date-picker-wrapper/index.js.map +1 -0
- package/esm/date-picker-wrapper-407942d1.js +3 -0
- package/esm/date-picker-wrapper-407942d1.js.map +1 -0
- package/esm/date-range-picker-wrapper/index.css +0 -0
- package/esm/date-range-picker-wrapper/index.js +5 -0
- package/esm/date-range-picker-wrapper/index.js.map +1 -0
- package/esm/date-range-picker-wrapper-d22d0f60.js +3 -0
- package/esm/date-range-picker-wrapper-d22d0f60.js.map +1 -0
- package/esm/date-range-picker-wrapper-form-item/index.css +0 -0
- package/esm/date-range-picker-wrapper-form-item/index.js +8 -0
- package/esm/date-range-picker-wrapper-form-item/index.js.map +1 -0
- package/esm/dialog-alert/index.css +1 -0
- package/esm/dialog-alert/index.js +11 -0
- package/esm/dialog-alert/index.js.map +1 -0
- package/esm/dialog-confirm/index.css +1 -0
- package/esm/dialog-confirm/index.js +10 -0
- package/esm/dialog-confirm/index.js.map +1 -0
- package/esm/dialog-confirm-0bc1ee6e.js +3 -0
- package/esm/dialog-confirm-0bc1ee6e.js.map +1 -0
- package/esm/dialog-drawer/index.css +0 -0
- package/esm/dialog-drawer/index.js +9 -0
- package/esm/dialog-drawer/index.js.map +1 -0
- package/esm/dialog-loading/index.css +1 -0
- package/esm/dialog-loading/index.js +6 -0
- package/esm/dialog-loading/index.js.map +1 -0
- package/esm/dialog-modal/index.css +1 -0
- package/esm/dialog-modal/index.js +9 -0
- package/esm/dialog-modal/index.js.map +1 -0
- package/esm/dialog-modal-29b1ddf9.js +3 -0
- package/esm/dialog-modal-29b1ddf9.js.map +1 -0
- package/esm/dom-4d04aa64.js +3 -0
- package/esm/dom-4d04aa64.js.map +1 -0
- package/esm/drawer-wrapper/index.css +1 -0
- package/esm/drawer-wrapper/index.js +6 -0
- package/esm/drawer-wrapper/index.js.map +1 -0
- package/esm/dropdown-menu-wrapper/index.css +1 -0
- package/esm/dropdown-menu-wrapper/index.js +8 -0
- package/esm/dropdown-menu-wrapper/index.js.map +1 -0
- package/esm/dropdown-menu-wrapper-40f6a65b.js +3 -0
- package/esm/dropdown-menu-wrapper-40f6a65b.js.map +1 -0
- package/esm/easy-table/index.css +0 -0
- package/esm/easy-table/index.js +10 -0
- package/esm/easy-table/index.js.map +1 -0
- package/esm/editable-field/index.css +1 -0
- package/esm/editable-field/index.js +7 -0
- package/esm/editable-field/index.js.map +1 -0
- package/esm/editable-field-provider/index.css +0 -0
- package/esm/editable-field-provider/index.js +5 -0
- package/esm/editable-field-provider/index.js.map +1 -0
- package/esm/editable-table/index.css +1 -0
- package/esm/editable-table/index.js +13 -0
- package/esm/editable-table/index.js.map +1 -0
- package/esm/editor-wrapper/index.css +1 -0
- package/esm/editor-wrapper/index.js +5 -0
- package/esm/editor-wrapper/index.js.map +1 -0
- package/esm/fba-hooks/index.css +0 -0
- package/esm/fba-hooks/index.js +5 -0
- package/esm/fba-hooks/index.js.map +1 -0
- package/esm/fba-utils/index.css +0 -0
- package/esm/fba-utils/index.js +5 -0
- package/esm/fba-utils/index.js.map +1 -0
- package/esm/fba-utils-a4c7d94d.js +3 -0
- package/esm/fba-utils-a4c7d94d.js.map +1 -0
- package/esm/file-import/index.css +0 -0
- package/esm/file-import/index.js +5 -0
- package/esm/file-import/index.js.map +1 -0
- package/esm/flex-layout/index.css +1 -0
- package/esm/flex-layout/index.js +5 -0
- package/esm/flex-layout/index.js.map +1 -0
- package/esm/flex-layout-8d2b668b.js +3 -0
- package/esm/flex-layout-8d2b668b.js.map +1 -0
- package/esm/form-grid/index.css +0 -0
- package/esm/form-grid/index.js +5 -0
- package/esm/form-grid/index.js.map +1 -0
- package/esm/form-item-group/index.css +1 -0
- package/esm/form-item-group/index.js +7 -0
- package/esm/form-item-group/index.js.map +1 -0
- package/esm/form-item-wrapper/index.css +0 -0
- package/esm/form-item-wrapper/index.js +5 -0
- package/esm/form-item-wrapper/index.js.map +1 -0
- package/esm/gap/index.css +0 -0
- package/esm/gap/index.js +5 -0
- package/esm/gap/index.js.map +1 -0
- package/esm/icon-wrapper/index.css +1 -0
- package/esm/icon-wrapper/index.js +5 -0
- package/esm/icon-wrapper/index.js.map +1 -0
- package/esm/icon-wrapper-ed5fcacc.js +3 -0
- package/esm/icon-wrapper-ed5fcacc.js.map +1 -0
- package/esm/input-search-wrapper/index.css +0 -0
- package/esm/input-search-wrapper/index.js +6 -0
- package/esm/input-search-wrapper/index.js.map +1 -0
- package/esm/input-search-wrapper-10d4a9b9.js +3 -0
- package/esm/input-search-wrapper-10d4a9b9.js.map +1 -0
- package/esm/input-text-area-wrapper/index.css +0 -0
- package/esm/input-text-area-wrapper/index.js +6 -0
- package/esm/input-text-area-wrapper/index.js.map +1 -0
- package/esm/input-text-area-wrapper-c958fba0.js +3 -0
- package/esm/input-text-area-wrapper-c958fba0.js.map +1 -0
- package/esm/input-wrapper/index.css +0 -0
- package/esm/input-wrapper/index.js +6 -0
- package/esm/input-wrapper/index.js.map +1 -0
- package/esm/input-wrapper-b378eb5a.js +3 -0
- package/esm/input-wrapper-b378eb5a.js.map +1 -0
- package/esm/label-value-layout/index.css +1 -0
- package/esm/label-value-layout/index.js +5 -0
- package/esm/label-value-layout/index.js.map +1 -0
- package/esm/local-loading/index.css +1 -0
- package/esm/local-loading/index.js +6 -0
- package/esm/local-loading/index.js.map +1 -0
- package/esm/modal-action/index.css +0 -0
- package/esm/modal-action/index.js +5 -0
- package/esm/modal-action/index.js.map +1 -0
- package/esm/modal-wrapper/index.css +1 -0
- package/esm/modal-wrapper/index.js +6 -0
- package/esm/modal-wrapper/index.js.map +1 -0
- package/esm/page-fixed-footer/index.css +1 -0
- package/esm/page-fixed-footer/index.js +5 -0
- package/esm/page-fixed-footer/index.js.map +1 -0
- package/esm/page404/index.css +0 -0
- package/esm/page404/index.js +5 -0
- package/esm/page404/index.js.map +1 -0
- package/esm/permission/index.css +0 -0
- package/esm/permission/index.js +6 -0
- package/esm/permission/index.js.map +1 -0
- package/esm/pre-defined-class-name/index.css +1 -0
- package/esm/pre-defined-class-name/index.js +5 -0
- package/esm/pre-defined-class-name/index.js.map +1 -0
- package/esm/radio-group-wrapper/index.css +0 -0
- package/esm/radio-group-wrapper/index.js +5 -0
- package/esm/radio-group-wrapper/index.js.map +1 -0
- package/esm/relation-tree/index.css +1 -0
- package/esm/relation-tree/index.js +6 -0
- package/esm/relation-tree/index.js.map +1 -0
- package/esm/request-status/index.css +1 -0
- package/esm/request-status/index.js +5 -0
- package/esm/request-status/index.js.map +1 -0
- package/esm/request-status-03fc60e2.js +3 -0
- package/esm/request-status-03fc60e2.js.map +1 -0
- package/esm/roll-location-center/index.css +1 -0
- package/esm/roll-location-center/index.js +6 -0
- package/esm/roll-location-center/index.js.map +1 -0
- package/esm/roll-location-in-view/index.css +1 -0
- package/esm/roll-location-in-view/index.js +6 -0
- package/esm/roll-location-in-view/index.js.map +1 -0
- package/esm/rule-describe/index.css +1 -0
- package/esm/rule-describe/index.js +7 -0
- package/esm/rule-describe/index.js.map +1 -0
- package/esm/selector-wrapper/index.css +1 -0
- package/esm/selector-wrapper/index.js +7 -0
- package/esm/selector-wrapper/index.js.map +1 -0
- package/esm/selector-wrapper-6560eb49.js +3 -0
- package/esm/selector-wrapper-6560eb49.js.map +1 -0
- package/esm/selector-wrapper-search/index.css +0 -0
- package/esm/selector-wrapper-search/index.js +6 -0
- package/esm/selector-wrapper-search/index.js.map +1 -0
- package/esm/selector-wrapper-simple/index.css +0 -0
- package/esm/selector-wrapper-simple/index.js +7 -0
- package/esm/selector-wrapper-simple/index.js.map +1 -0
- package/esm/simple-layout/index.css +1 -0
- package/esm/simple-layout/index.js +6 -0
- package/esm/simple-layout/index.js.map +1 -0
- package/esm/simple-layout-1676e586.js +3 -0
- package/esm/simple-layout-1676e586.js.map +1 -0
- package/esm/sms-count-down/index.css +0 -0
- package/esm/sms-count-down/index.js +5 -0
- package/esm/sms-count-down/index.js.map +1 -0
- package/esm/styles/index.css +1 -0
- package/esm/styles/index.js +5 -0
- package/esm/styles/index.js.map +1 -0
- package/esm/switch-wrapper/index.css +0 -0
- package/esm/switch-wrapper/index.js +5 -0
- package/esm/switch-wrapper/index.js.map +1 -0
- package/esm/table-cell-render/index.css +0 -0
- package/esm/table-cell-render/index.js +12 -0
- package/esm/table-cell-render/index.js.map +1 -0
- package/esm/table-title-tooltip/index.css +0 -0
- package/esm/table-title-tooltip/index.js +5 -0
- package/esm/table-title-tooltip/index.js.map +1 -0
- package/esm/tabs-wrapper/index.css +1 -0
- package/esm/tabs-wrapper/index.js +5 -0
- package/esm/tabs-wrapper/index.js.map +1 -0
- package/esm/tag-group/index.css +0 -0
- package/esm/tag-group/index.js +6 -0
- package/esm/tag-group/index.js.map +1 -0
- package/esm/tag-list-select/index.css +0 -0
- package/esm/tag-list-select/index.js +5 -0
- package/esm/tag-list-select/index.js.map +1 -0
- package/esm/tag-list-select-066f682f.js +3 -0
- package/esm/tag-list-select-066f682f.js.map +1 -0
- package/esm/time-2782aa9b.js +3 -0
- package/esm/time-2782aa9b.js.map +1 -0
- package/esm/time-picker-wrapper/index.css +0 -0
- package/esm/time-picker-wrapper/index.js +5 -0
- package/esm/time-picker-wrapper/index.js.map +1 -0
- package/esm/time-range-picker-wrapper/index.css +0 -0
- package/esm/time-range-picker-wrapper/index.js +5 -0
- package/esm/time-range-picker-wrapper/index.js.map +1 -0
- package/esm/time-range-picker-wrapper-24adf0d0.js +3 -0
- package/esm/time-range-picker-wrapper-24adf0d0.js.map +1 -0
- package/esm/time-range-picker-wrapper-form-item/index.css +0 -0
- package/esm/time-range-picker-wrapper-form-item/index.js +8 -0
- package/esm/time-range-picker-wrapper-form-item/index.js.map +1 -0
- package/esm/tree-selector-wrapper/index.css +1 -0
- package/esm/tree-selector-wrapper/index.js +7 -0
- package/esm/tree-selector-wrapper/index.js.map +1 -0
- package/esm/tree-wrapper/index.css +1 -0
- package/esm/tree-wrapper/index.js +11 -0
- package/esm/tree-wrapper/index.js.map +1 -0
- package/esm/types/index.css +0 -0
- package/esm/types/index.js +4 -0
- package/esm/types/index.js.map +1 -0
- package/esm/upload-wrapper/index.css +1 -0
- package/esm/upload-wrapper/index.js +6 -0
- package/esm/upload-wrapper/index.js.map +1 -0
- package/esm/upload-wrapper-f20208d6.js +3 -0
- package/esm/upload-wrapper-f20208d6.js.map +1 -0
- package/esm/use-responsive-point-21b8c601.js +3 -0
- package/esm/use-responsive-point-21b8c601.js.map +1 -0
- package/index.d.ts +291 -256
- package/package.json +5 -3
- package/esm/index.css +0 -1
- package/esm/index.js +0 -5
- package/esm/index.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -14,10 +14,13 @@ import { UploadChangeParam } from 'antd/lib/upload';
|
|
|
14
14
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
16
|
import { Dayjs } from 'dayjs';
|
|
17
|
-
import { CSSProperties, DependencyList,
|
|
17
|
+
import { CSSProperties, DependencyList, FC, ReactElement, ReactNode } from 'react';
|
|
18
18
|
|
|
19
|
-
export declare const styles: () => void;
|
|
20
19
|
export interface ButtonOperateItem extends ButtonProps {
|
|
20
|
+
/** hover 提示文字 */
|
|
21
|
+
hoverTips?: string | React.ReactElement;
|
|
22
|
+
/** hover 提示类型 默认:'tooltip' */
|
|
23
|
+
tipsType?: "popover" | "tooltip";
|
|
21
24
|
text: string | ReactElement;
|
|
22
25
|
color?: string;
|
|
23
26
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
@@ -44,6 +47,9 @@ export interface ButtonOperateProps {
|
|
|
44
47
|
split?: boolean;
|
|
45
48
|
spaceProps?: SpaceProps;
|
|
46
49
|
}
|
|
50
|
+
export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
}) => JSX.Element;
|
|
47
53
|
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
48
54
|
export type TAny = any;
|
|
49
55
|
export type TPlainObject<T = TAny> = Record<string, T>;
|
|
@@ -63,23 +69,23 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
|
|
|
63
69
|
* @returns
|
|
64
70
|
*/
|
|
65
71
|
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
66
|
-
export type
|
|
67
|
-
export type
|
|
68
|
-
status?:
|
|
72
|
+
export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
73
|
+
export type TRequestStatusProps = {
|
|
74
|
+
status?: TRequestStatus;
|
|
69
75
|
errorButton?: ReactElement;
|
|
70
|
-
messageConfig?: Partial<Record<
|
|
76
|
+
messageConfig?: Partial<Record<TRequestStatus, string>>;
|
|
71
77
|
loading?: boolean;
|
|
72
78
|
};
|
|
73
|
-
export declare const
|
|
79
|
+
export declare const RequestStatus: (props: TRequestStatusProps) => JSX.Element;
|
|
74
80
|
export type CascaderWrapperServiceConfig = {
|
|
75
81
|
params?: TPlainObject;
|
|
76
|
-
onRequest?: (params?:
|
|
82
|
+
onRequest?: (params?: TAny) => TAny;
|
|
77
83
|
/**
|
|
78
84
|
* 响应数据适配器
|
|
79
85
|
*/
|
|
80
|
-
onRequestResultAdapter?: (respData:
|
|
86
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
81
87
|
};
|
|
82
|
-
export type CascaderWrapperProps = Omit<CascaderProps<
|
|
88
|
+
export type CascaderWrapperProps = Omit<CascaderProps<TAny>, "loading" | "notFoundContent" | "options" | "value" | "multiple" | "onChange"> & {
|
|
83
89
|
modelKey: string;
|
|
84
90
|
/**
|
|
85
91
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
@@ -93,7 +99,7 @@ export type CascaderWrapperProps = Omit<CascaderProps<any>, "loading" | "notFoun
|
|
|
93
99
|
isDynamicLoad?: boolean;
|
|
94
100
|
value?: string | number;
|
|
95
101
|
onChange?: (value?: string | number, selectedList?: TPlainObject[]) => void;
|
|
96
|
-
requestMessageConfig?:
|
|
102
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
97
103
|
};
|
|
98
104
|
export type CascaderWrapperRefApi = {
|
|
99
105
|
getCascaderList: () => TPlainObject[];
|
|
@@ -124,7 +130,7 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
124
130
|
isDynamicLoad?: boolean | undefined;
|
|
125
131
|
value?: string | number | undefined;
|
|
126
132
|
onChange?: ((value?: string | number, selectedList?: TPlainObject[]) => void) | undefined;
|
|
127
|
-
requestMessageConfig?:
|
|
133
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
128
134
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
129
135
|
export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject> {
|
|
130
136
|
className?: string;
|
|
@@ -132,7 +138,6 @@ export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject>
|
|
|
132
138
|
children?: ReactNode | undefined;
|
|
133
139
|
}
|
|
134
140
|
export type CheckListItemValue = string | number;
|
|
135
|
-
export type CheckListValue = CheckListItemValue[] | CheckListItemValue | undefined;
|
|
136
141
|
export type CheckListSelectedValue<T extends "multi" | "radio"> = T extends "multi" ? CheckListItemValue[] : CheckListItemValue;
|
|
137
142
|
export type CheckListProps<T extends "multi" | "radio"> = {
|
|
138
143
|
multiple?: boolean;
|
|
@@ -145,7 +150,6 @@ export type CheckListProps<T extends "multi" | "radio"> = {
|
|
|
145
150
|
stopPropagation?: boolean;
|
|
146
151
|
required?: boolean;
|
|
147
152
|
} & CommonPropsWithChildren;
|
|
148
|
-
export declare const CheckList: <T extends "radio" | "multi">(props: CheckListProps<T>) => JSX.Element;
|
|
149
153
|
export type CheckListItemContentProps = {
|
|
150
154
|
checked?: boolean;
|
|
151
155
|
disabled?: boolean;
|
|
@@ -162,13 +166,74 @@ export type CheckListItemProps = {
|
|
|
162
166
|
className?: string;
|
|
163
167
|
style?: CSSProperties;
|
|
164
168
|
};
|
|
165
|
-
export declare const
|
|
169
|
+
export declare const CheckList: (<T extends "radio" | "multi">(props: CheckListProps<T>) => JSX.Element) & {
|
|
170
|
+
Item: (props: CheckListItemProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
171
|
+
};
|
|
166
172
|
export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
167
173
|
locale?: "en" | "zh-cn";
|
|
168
174
|
};
|
|
169
175
|
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => JSX.Element;
|
|
176
|
+
export interface DrawerStateType {
|
|
177
|
+
title: string;
|
|
178
|
+
/**
|
|
179
|
+
* 显示drawer
|
|
180
|
+
*/
|
|
181
|
+
open: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
184
|
+
*/
|
|
185
|
+
itemData?: Record<string, any>;
|
|
186
|
+
operateType: "create" | "update" | "view" | null;
|
|
187
|
+
pageLoading?: boolean;
|
|
188
|
+
}
|
|
189
|
+
export interface DrawerActionsParamType {
|
|
190
|
+
openDrawerForm: Pick<DrawerStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
191
|
+
closeDrawer: void;
|
|
192
|
+
setDrawerItemData: Record<string, any>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* drawer弹窗模型
|
|
196
|
+
* @param key 唯一值必传
|
|
197
|
+
* @returns
|
|
198
|
+
* @deprecated 废弃 DrawerWrapper
|
|
199
|
+
*
|
|
200
|
+
* ```
|
|
201
|
+
* 使用方式
|
|
202
|
+
* const [drawerState, drawerActions] = createDrawerWrapperModel('key值').useStore();
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
export declare const createDrawerWrapperModel: (key: string) => API<ModelType<DrawerStateType, DrawerActionsParamType, any>>;
|
|
206
|
+
export interface ModalStateType {
|
|
207
|
+
title?: string;
|
|
208
|
+
/**
|
|
209
|
+
* 显示modal
|
|
210
|
+
*/
|
|
211
|
+
open: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
214
|
+
*/
|
|
215
|
+
itemData?: Record<string, unknown> | null;
|
|
216
|
+
operateType: "create" | "update" | "view";
|
|
217
|
+
pageLoading?: boolean;
|
|
218
|
+
}
|
|
219
|
+
export interface ModalActionsParamType {
|
|
220
|
+
openModalForm: Pick<ModalStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
221
|
+
closeModal: void;
|
|
222
|
+
setModalItemData: Record<string, unknown>;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* modal弹窗模型
|
|
226
|
+
* @param key 唯一值必传
|
|
227
|
+
* @deprecated 废弃 ModalWrapper
|
|
228
|
+
*
|
|
229
|
+
* ```
|
|
230
|
+
* 使用方式
|
|
231
|
+
* const [modalState, modalActions] = createModalWrapperModel('key值').useStore();
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare const createModalWrapperModel: (key: string) => API<ModelType<ModalStateType, ModalActionsParamType, any>>;
|
|
170
235
|
export type CssHoverProps = {
|
|
171
|
-
children: ReactElement;
|
|
236
|
+
children: ReactElement | ReactElement[];
|
|
172
237
|
} & Pick<CommonPropsWithChildren<{
|
|
173
238
|
"--v-css-hover-bgcolor": CSSProperties["backgroundColor"];
|
|
174
239
|
"--v-css-hover-opacity": CSSProperties["opacity"];
|
|
@@ -183,30 +248,14 @@ export type CssHoverProps = {
|
|
|
183
248
|
* @returns
|
|
184
249
|
*/
|
|
185
250
|
export declare const CssNodeHover: (props: CssHoverProps) => JSX.Element;
|
|
186
|
-
export type
|
|
187
|
-
export
|
|
188
|
-
YMDHms = "YYYY-MM-DD HH:mm:ss",
|
|
189
|
-
YMDHm = "YYYY-MM-DD HH:mm",
|
|
190
|
-
YMDH = "YYYY-MM-DD HH",
|
|
191
|
-
YMD = "YYYY-MM-DD"
|
|
192
|
-
}
|
|
193
|
-
export declare enum DayjsTimeTypeEnum {
|
|
194
|
-
Hms = "HH:mm:ss",
|
|
195
|
-
Hm = "HH:mm",
|
|
196
|
-
H = "HH",
|
|
197
|
-
ms = "mm:ss",
|
|
198
|
-
m = "mm",
|
|
199
|
-
s = "ss"
|
|
200
|
-
}
|
|
251
|
+
export type TDayjsDateType = "YYYY-MM-DD HH:mm:ss" | "YYYY-MM-DD HH:mm" | "YYYY-MM-DD HH" | "YYYY-MM-DD" | (string & {});
|
|
252
|
+
export type TDayjsTimeType = "HH:mm:ss" | "HH:mm" | "HH" | "mm:ss" | "mm" | "ss" | (string & {});
|
|
201
253
|
export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value" | "onChange" | "format"> & {
|
|
202
254
|
value?: string;
|
|
203
255
|
onChange?: (value?: string) => void;
|
|
204
|
-
/**
|
|
205
|
-
* minDate、maxDate设置格式:DayjsDateTypeEnum
|
|
206
|
-
*/
|
|
207
256
|
disabledDateConfig?: {
|
|
208
|
-
minDate?:
|
|
209
|
-
maxDate?:
|
|
257
|
+
minDate?: TDayjsDateType;
|
|
258
|
+
maxDate?: TDayjsDateType;
|
|
210
259
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
211
260
|
disabledHourList?: number[];
|
|
212
261
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -214,7 +263,8 @@ export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value"
|
|
|
214
263
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
215
264
|
disabledSecondList?: number[];
|
|
216
265
|
};
|
|
217
|
-
|
|
266
|
+
/** 可自定义格式 */
|
|
267
|
+
format?: TDayjsDateType;
|
|
218
268
|
};
|
|
219
269
|
/**
|
|
220
270
|
* DatePicker包装组件
|
|
@@ -237,12 +287,12 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
237
287
|
string
|
|
238
288
|
]) => void;
|
|
239
289
|
/**
|
|
240
|
-
* 1. minDate、maxDate
|
|
290
|
+
* 1. minDate、maxDate 与 format格式相同;默认:YYYY-MM-DD
|
|
241
291
|
* 2. maxDays 最大可选的天数
|
|
242
292
|
*/
|
|
243
293
|
disabledDateConfig?: {
|
|
244
|
-
minDate?:
|
|
245
|
-
maxDate?:
|
|
294
|
+
minDate?: TDayjsDateType;
|
|
295
|
+
maxDate?: TDayjsDateType;
|
|
246
296
|
maxDays?: number;
|
|
247
297
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
248
298
|
disabledHourList?: number[];
|
|
@@ -251,7 +301,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
251
301
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
252
302
|
disabledSecondList?: number[];
|
|
253
303
|
};
|
|
254
|
-
format?:
|
|
304
|
+
format?: TDayjsDateType;
|
|
255
305
|
};
|
|
256
306
|
/**
|
|
257
307
|
* DatePicker.RangePicker包装组件
|
|
@@ -268,6 +318,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
268
318
|
* ```
|
|
269
319
|
*/
|
|
270
320
|
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => JSX.Element;
|
|
321
|
+
export type FormItemNamePath = string | number | Array<string | number>;
|
|
271
322
|
export type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
272
323
|
/**
|
|
273
324
|
* 开始的时间name
|
|
@@ -434,24 +485,6 @@ export declare const dialogLoading: {
|
|
|
434
485
|
*/
|
|
435
486
|
close: () => void;
|
|
436
487
|
};
|
|
437
|
-
export interface DrawerStateType {
|
|
438
|
-
title: string;
|
|
439
|
-
/**
|
|
440
|
-
* 显示drawer
|
|
441
|
-
*/
|
|
442
|
-
open: boolean;
|
|
443
|
-
/**
|
|
444
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
445
|
-
*/
|
|
446
|
-
itemData?: Record<string, any>;
|
|
447
|
-
operateType: "create" | "update" | "view" | null;
|
|
448
|
-
pageLoading?: boolean;
|
|
449
|
-
}
|
|
450
|
-
export interface DrawerActionsParamType {
|
|
451
|
-
openDrawerForm: Pick<DrawerStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
452
|
-
closeDrawer: void;
|
|
453
|
-
setDrawerItemData: Record<string, any>;
|
|
454
|
-
}
|
|
455
488
|
export interface DrawerOperationProps {
|
|
456
489
|
loading?: boolean;
|
|
457
490
|
okText?: string;
|
|
@@ -480,6 +513,7 @@ declare const DrawerWrapperContent: (props: {
|
|
|
480
513
|
declare const DrawerWrapperFooter: (props: any) => JSX.Element;
|
|
481
514
|
/**
|
|
482
515
|
* 弹窗机制
|
|
516
|
+
* @deprecated 已过期,后面版本会移除;请使用 dialogDrawer.open
|
|
483
517
|
* ```
|
|
484
518
|
* 1. 默认 destroyOnClose = true
|
|
485
519
|
* 2. 默认 forceRender = false
|
|
@@ -492,17 +526,6 @@ declare const DrawerWrapperFooter: (props: any) => JSX.Element;
|
|
|
492
526
|
* ```
|
|
493
527
|
*/
|
|
494
528
|
export declare const DrawerWrapper: FC<DrawerWrapperProps> & DrawerWrapperStaticMethods;
|
|
495
|
-
/**
|
|
496
|
-
* drawer弹窗模型
|
|
497
|
-
* @param key 唯一值必传
|
|
498
|
-
* @returns
|
|
499
|
-
*
|
|
500
|
-
* ```
|
|
501
|
-
* 使用方式
|
|
502
|
-
* const [drawerState, drawerActions] = createDrawerWrapperModel('key值').useStore();
|
|
503
|
-
* ```
|
|
504
|
-
*/
|
|
505
|
-
export declare const createDrawerWrapperModel: (key: string) => API<ModelType<DrawerStateType, DrawerActionsParamType, any>>;
|
|
506
529
|
export interface DropdownMenuItem extends ButtonProps {
|
|
507
530
|
text: string | ReactElement;
|
|
508
531
|
color?: string;
|
|
@@ -575,52 +598,8 @@ export type EasyTableProps = {
|
|
|
575
598
|
/** 初始化是否请求,默认值:true */
|
|
576
599
|
initRequest?: boolean;
|
|
577
600
|
onDataSourceChange?: (dataSource: TAny) => void;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
* 对 查询条件+表格数据 进行深度封装,内置数据交互处理
|
|
581
|
-
* ```
|
|
582
|
-
* 1. 需要获取查询条件、主动发起请求等可通过ref操作
|
|
583
|
-
* 2. 可通过属性 initRequest 设置初始化是否请求数据
|
|
584
|
-
* 3. 可通过属性 fieldNames 来设置自定义变量,默认值为:list、total、pageNo、pageSize
|
|
585
|
-
*
|
|
586
|
-
* Demo https://fex.qa.tcshuke.com/docs/admin/main/crud/easy-table
|
|
587
|
-
* ```
|
|
588
|
-
*/
|
|
589
|
-
export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>>;
|
|
590
|
-
export type FormColProps = {
|
|
591
|
-
span?: number;
|
|
592
|
-
/** 屏幕 < 576px */
|
|
593
|
-
xs?: number;
|
|
594
|
-
/** 屏幕 ≥ 576px */
|
|
595
|
-
sm?: number;
|
|
596
|
-
/** 屏幕 ≥ 768px */
|
|
597
|
-
md?: number;
|
|
598
|
-
/** 屏幕 ≥ 992px */
|
|
599
|
-
lg?: number;
|
|
600
|
-
/** 屏幕 ≥ 1200px */
|
|
601
|
-
xl?: number;
|
|
602
|
-
/** 屏幕 ≥ 1600px */
|
|
603
|
-
xxl?: number;
|
|
604
|
-
/** 强制单独一行 */
|
|
605
|
-
forceAloneRow?: boolean;
|
|
606
|
-
children?: ReactNode | ReactNode[];
|
|
607
|
-
};
|
|
608
|
-
/**
|
|
609
|
-
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
610
|
-
*```
|
|
611
|
-
* 1. 设置 span 栅格占位格数,不考虑响应式
|
|
612
|
-
* 2. grid 自定义响应式网格布局
|
|
613
|
-
* xs: 屏幕 < 576px
|
|
614
|
-
* sm: 屏幕 ≥ 576px
|
|
615
|
-
* md: 屏幕 ≥ 768px
|
|
616
|
-
* lg: 屏幕 ≥ 992px
|
|
617
|
-
* xl: 屏幕 ≥ 1200px
|
|
618
|
-
* xxl: 屏幕 ≥ 1600px
|
|
619
|
-
* ```
|
|
620
|
-
*/
|
|
621
|
-
export declare const FormCol: {
|
|
622
|
-
(props: FormColProps): JSX.Element;
|
|
623
|
-
domTypeName: string;
|
|
601
|
+
/** 如果自定义查询按钮,可设置 Form onFinish */
|
|
602
|
+
onFormFinish?: (values?: TPlainObject) => void;
|
|
624
603
|
};
|
|
625
604
|
export type FormOperateColProps = {
|
|
626
605
|
className?: string;
|
|
@@ -630,30 +609,6 @@ export type FormOperateColProps = {
|
|
|
630
609
|
/** 强制单独一行 */
|
|
631
610
|
forceAloneRow?: boolean;
|
|
632
611
|
};
|
|
633
|
-
/**
|
|
634
|
-
* FormOperateCol 布局说明
|
|
635
|
-
* ```
|
|
636
|
-
* 1. 网格数以及位置为动态计算,不支持 xs、sm、md等
|
|
637
|
-
* 2. 如果FormRow只有一行col,则OperateCol会在当前行剩余网格内居左对齐
|
|
638
|
-
* 3. 如果同时设置 leftList、rightList,则此cell会强制独占一行,并左右布局
|
|
639
|
-
* 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
|
|
640
|
-
* ```
|
|
641
|
-
*/
|
|
642
|
-
export declare const FormOperateCol: {
|
|
643
|
-
(props: FormOperateColProps): JSX.Element;
|
|
644
|
-
domTypeName: string;
|
|
645
|
-
};
|
|
646
|
-
export type FormRowProps = RowProps & {
|
|
647
|
-
children?: ReactNode | ReactNode[];
|
|
648
|
-
};
|
|
649
|
-
/**
|
|
650
|
-
* FormItem网格响应式布局
|
|
651
|
-
*```
|
|
652
|
-
* 1. 应用场景:Form条件布局
|
|
653
|
-
* 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
|
|
654
|
-
* 3. 所有子元素中只能存在一个 FormOperateCol
|
|
655
|
-
*/
|
|
656
|
-
export declare const FormRow: (props: FormRowProps) => JSX.Element;
|
|
657
612
|
export type EasyTableFilterProps = {
|
|
658
613
|
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
659
614
|
/** isPure = true时无效 */
|
|
@@ -667,49 +622,51 @@ export type EasyTableFilterProps = {
|
|
|
667
622
|
text?: string;
|
|
668
623
|
};
|
|
669
624
|
};
|
|
670
|
-
/**
|
|
671
|
-
* 过滤条件
|
|
672
|
-
* @param props
|
|
673
|
-
* @returns
|
|
674
|
-
*
|
|
675
|
-
*```
|
|
676
|
-
*1. 用法1
|
|
677
|
-
* -- 默认网格布局 规则:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
678
|
-
* <EasyTableFilter>
|
|
679
|
-
* <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
680
|
-
* </EasyTableFilter>
|
|
681
|
-
*
|
|
682
|
-
* -- 自定义网格布局 使用 FormCol组件包装 Form.Item
|
|
683
|
-
* <EasyTableFilter>
|
|
684
|
-
* <FormCol span={12}><Form.Item name="field1" label="条件1">xxx</Form.Item></FormCol>
|
|
685
|
-
* </EasyTableFilter>
|
|
686
|
-
*
|
|
687
|
-
* -- children 可为 function
|
|
688
|
-
* <EasyTableFilter>
|
|
689
|
-
* {(form) => {
|
|
690
|
-
* return <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
691
|
-
* }}
|
|
692
|
-
* </EasyTableFilter>
|
|
693
|
-
*2. 用户2(自定义布局)
|
|
694
|
-
* EasyTableFilter设置 isPure = true,FormItem无布局规则
|
|
695
|
-
*3. EasyTableFilter中内置了 Form 标签,当children为函数时,可获取form实例
|
|
696
|
-
*4. 默认布局下,可通过设置 filterOperate 设置操作按钮
|
|
697
|
-
*```
|
|
698
|
-
*/
|
|
699
|
-
export declare const EasyTableFilter: (props: EasyTableFilterProps) => JSX.Element;
|
|
700
625
|
export type EasyTableTableProps = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey"> & {
|
|
701
626
|
children?: ReactElement;
|
|
702
627
|
/** 表格行 key 的取值 */
|
|
703
628
|
rowKey: string;
|
|
704
629
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
630
|
+
export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>> & {
|
|
631
|
+
/**
|
|
632
|
+
* 过滤条件
|
|
633
|
+
* @param props
|
|
634
|
+
* @returns
|
|
635
|
+
*
|
|
636
|
+
*```
|
|
637
|
+
*1. 用法1
|
|
638
|
+
* -- 默认网格布局 规则:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
639
|
+
* <EasyTableFilter>
|
|
640
|
+
* <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
641
|
+
* </EasyTableFilter>
|
|
642
|
+
*
|
|
643
|
+
* -- 自定义网格布局 使用 FormCol组件包装 Form.Item
|
|
644
|
+
* <EasyTableFilter>
|
|
645
|
+
* <FormCol span={12}><Form.Item name="field1" label="条件1">xxx</Form.Item></FormCol>
|
|
646
|
+
* </EasyTableFilter>
|
|
647
|
+
*
|
|
648
|
+
* -- children 可为 function
|
|
649
|
+
* <EasyTableFilter>
|
|
650
|
+
* {(form) => {
|
|
651
|
+
* return <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
652
|
+
* }}
|
|
653
|
+
* </EasyTableFilter>
|
|
654
|
+
*2. 用户2(自定义布局)
|
|
655
|
+
* EasyTableFilter设置 isPure = true,FormItem无布局规则
|
|
656
|
+
*3. EasyTableFilter中内置了 Form 标签,当children为函数时,可获取form实例
|
|
657
|
+
*4. 默认布局下,可通过设置 filterOperate 设置操作按钮
|
|
658
|
+
*```
|
|
659
|
+
*/
|
|
660
|
+
Filter: (props: EasyTableFilterProps) => JSX.Element;
|
|
661
|
+
/**
|
|
662
|
+
* 表格渲染
|
|
663
|
+
* @param props
|
|
664
|
+
* ```
|
|
665
|
+
* 1. 继承了 TableProps 可设置antd table功能
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
668
|
+
Table: (props: EasyTableTableProps) => JSX.Element;
|
|
669
|
+
};
|
|
713
670
|
export interface EditableFieldProps {
|
|
714
671
|
className?: string;
|
|
715
672
|
editRender: ReactElement | ((data: {
|
|
@@ -720,7 +677,7 @@ export interface EditableFieldProps {
|
|
|
720
677
|
value?: TAny;
|
|
721
678
|
onChange?: (data?: TAny) => void;
|
|
722
679
|
placeholderValue?: string;
|
|
723
|
-
/** edit 区域是否铺满,
|
|
680
|
+
/** edit 区域是否铺满,showEditableIcon=false 无效 */
|
|
724
681
|
isEditFull?: boolean;
|
|
725
682
|
/** 是否可编辑 */
|
|
726
683
|
editable?: boolean;
|
|
@@ -824,7 +781,7 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
|
|
|
824
781
|
showIcon?: boolean;
|
|
825
782
|
/** select option添加图标;与showIcon组合使用 */
|
|
826
783
|
icon?: (data: TPlainObject, index: number) => ReactElement;
|
|
827
|
-
requestMessageConfig?:
|
|
784
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
828
785
|
/**
|
|
829
786
|
* value格式
|
|
830
787
|
*```
|
|
@@ -1059,7 +1016,7 @@ export type EditableTableProps = {
|
|
|
1059
1016
|
export declare const EditableTable: (props: EditableTableProps) => JSX.Element;
|
|
1060
1017
|
export type varStyles = "--fa-color-primary" | "--fa-color-secondary" | "--fa-color-warning" | "--fa-color-danger" | "--fa-color-success" | "--editor-card-bgcolor";
|
|
1061
1018
|
export type EditorWrapperProps = {
|
|
1062
|
-
onChange
|
|
1019
|
+
onChange?: (data?: string) => void;
|
|
1063
1020
|
value?: string;
|
|
1064
1021
|
editorInitParams?: TPlainObject;
|
|
1065
1022
|
editorProps?: TPlainObject;
|
|
@@ -1071,9 +1028,36 @@ export type EditorWrapperProps = {
|
|
|
1071
1028
|
* @param props
|
|
1072
1029
|
* @returns
|
|
1073
1030
|
*/
|
|
1074
|
-
export declare const EditorWrapper: (props:
|
|
1031
|
+
export declare const EditorWrapper: (props: EditorWrapperProps) => JSX.Element;
|
|
1032
|
+
export type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
|
|
1033
|
+
declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
|
|
1034
|
+
export declare const fbaHooks: {
|
|
1035
|
+
useEffectCustom: (fn: import("react").EffectCallback, deps: import("react").DependencyList) => void;
|
|
1036
|
+
useEffectCustomAsync: (fn: () => Promise<void>, deps: import("react").DependencyList) => void;
|
|
1037
|
+
useThemeToken: () => import("antd").GlobalToken;
|
|
1038
|
+
useArrayChange: <T>(dataList: T[], forceUpdate?: boolean) => readonly [
|
|
1039
|
+
T[],
|
|
1040
|
+
{
|
|
1041
|
+
add: (dataItem: T | T[], isUnshift?: boolean | undefined) => void;
|
|
1042
|
+
update: (index: number, dataItem: T) => void;
|
|
1043
|
+
delete: (index: number) => T[];
|
|
1044
|
+
resetList: (dataList: T[]) => void;
|
|
1045
|
+
getList: () => T[];
|
|
1046
|
+
}
|
|
1047
|
+
];
|
|
1048
|
+
usePrevious: typeof usePrevious;
|
|
1049
|
+
useResponsivePoint: () => string | undefined;
|
|
1050
|
+
useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
|
|
1051
|
+
S,
|
|
1052
|
+
import("react").Dispatch<import("react").SetStateAction<S>>
|
|
1053
|
+
];
|
|
1054
|
+
};
|
|
1055
|
+
export declare const fbaUtils: {
|
|
1056
|
+
hasPermission: (name?: string) => boolean;
|
|
1057
|
+
getPermissionList: () => string[];
|
|
1058
|
+
};
|
|
1075
1059
|
export type FileImportProps = {
|
|
1076
|
-
onImportFinish: (data?:
|
|
1060
|
+
onImportFinish: (data?: TAny) => void;
|
|
1077
1061
|
buttonName?: string | ReactElement;
|
|
1078
1062
|
children?: React.ReactNode | ((data: {
|
|
1079
1063
|
loading: boolean;
|
|
@@ -1113,6 +1097,67 @@ export type FlexLayoutProps = {
|
|
|
1113
1097
|
* @returns
|
|
1114
1098
|
*/
|
|
1115
1099
|
export declare const FlexLayout: (props: FlexLayoutProps) => JSX.Element;
|
|
1100
|
+
export type FormRowProps = RowProps & {
|
|
1101
|
+
children?: ReactNode | ReactNode[];
|
|
1102
|
+
};
|
|
1103
|
+
export type FormColProps = {
|
|
1104
|
+
span?: number;
|
|
1105
|
+
/** 屏幕 < 576px */
|
|
1106
|
+
xs?: number;
|
|
1107
|
+
/** 屏幕 ≥ 576px */
|
|
1108
|
+
sm?: number;
|
|
1109
|
+
/** 屏幕 ≥ 768px */
|
|
1110
|
+
md?: number;
|
|
1111
|
+
/** 屏幕 ≥ 992px */
|
|
1112
|
+
lg?: number;
|
|
1113
|
+
/** 屏幕 ≥ 1200px */
|
|
1114
|
+
xl?: number;
|
|
1115
|
+
/** 屏幕 ≥ 1600px */
|
|
1116
|
+
xxl?: number;
|
|
1117
|
+
/** 强制单独一行 */
|
|
1118
|
+
forceAloneRow?: boolean;
|
|
1119
|
+
children?: ReactNode | ReactNode[];
|
|
1120
|
+
};
|
|
1121
|
+
export declare const FormGrid: {
|
|
1122
|
+
/**
|
|
1123
|
+
* FormItem网格响应式布局
|
|
1124
|
+
*```
|
|
1125
|
+
* 1. 应用场景:Form条件布局
|
|
1126
|
+
* 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
|
|
1127
|
+
* 3. 所有子元素中只能存在一个 FormOperateCol
|
|
1128
|
+
*/
|
|
1129
|
+
Row: (props: FormRowProps) => JSX.Element;
|
|
1130
|
+
/**
|
|
1131
|
+
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
1132
|
+
*```
|
|
1133
|
+
* 1. 设置 span 栅格占位格数,不考虑响应式
|
|
1134
|
+
* 2. grid 自定义响应式网格布局
|
|
1135
|
+
* xs: 屏幕 < 576px
|
|
1136
|
+
* sm: 屏幕 ≥ 576px
|
|
1137
|
+
* md: 屏幕 ≥ 768px
|
|
1138
|
+
* lg: 屏幕 ≥ 992px
|
|
1139
|
+
* xl: 屏幕 ≥ 1200px
|
|
1140
|
+
* xxl: 屏幕 ≥ 1600px
|
|
1141
|
+
* ```
|
|
1142
|
+
*/
|
|
1143
|
+
Col: {
|
|
1144
|
+
(props: FormColProps): JSX.Element;
|
|
1145
|
+
domTypeName: string;
|
|
1146
|
+
};
|
|
1147
|
+
/**
|
|
1148
|
+
* FormOperateCol 布局说明
|
|
1149
|
+
* ```
|
|
1150
|
+
* 1. 网格数以及位置为动态计算,不支持 xs、sm、md等
|
|
1151
|
+
* 2. 如果FormRow只有一行col,则OperateCol会在当前行剩余网格内居左对齐
|
|
1152
|
+
* 3. 如果同时设置 leftList、rightList,则此cell会强制独占一行,并左右布局
|
|
1153
|
+
* 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
|
|
1154
|
+
* ```
|
|
1155
|
+
*/
|
|
1156
|
+
OperateCol: {
|
|
1157
|
+
(props: FormOperateColProps): JSX.Element;
|
|
1158
|
+
domTypeName: string;
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1116
1161
|
export type FormItemHorizontalUnionProps = {
|
|
1117
1162
|
className?: string;
|
|
1118
1163
|
style?: CSSProperties;
|
|
@@ -1166,25 +1211,6 @@ export type GapProps = {
|
|
|
1166
1211
|
* @returns
|
|
1167
1212
|
*/
|
|
1168
1213
|
export declare const Gap: (props: GapProps) => JSX.Element;
|
|
1169
|
-
export declare const useArrayChange: <T>(dataList: T[], forceUpdate?: boolean) => readonly [
|
|
1170
|
-
T[],
|
|
1171
|
-
{
|
|
1172
|
-
add: (dataItem: T | T[], isUnshift?: boolean) => void;
|
|
1173
|
-
update: (index: number, dataItem: T) => void;
|
|
1174
|
-
delete: (index: number) => T[];
|
|
1175
|
-
resetList: (dataList: T[]) => void;
|
|
1176
|
-
getList: () => T[];
|
|
1177
|
-
}
|
|
1178
|
-
];
|
|
1179
|
-
export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
|
|
1180
|
-
export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
|
|
1181
|
-
export type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
|
|
1182
|
-
export declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
|
|
1183
|
-
export declare const useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
|
|
1184
|
-
S,
|
|
1185
|
-
Dispatch<SetStateAction<S>>
|
|
1186
|
-
];
|
|
1187
|
-
export declare const useThemeToken: () => import("antd").GlobalToken;
|
|
1188
1214
|
export type IconWrapperProps = {
|
|
1189
1215
|
hoverTips?: string | React.ReactElement;
|
|
1190
1216
|
/**
|
|
@@ -1202,7 +1228,7 @@ export type IconWrapperProps = {
|
|
|
1202
1228
|
hidden?: boolean;
|
|
1203
1229
|
};
|
|
1204
1230
|
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element | null;
|
|
1205
|
-
export type
|
|
1231
|
+
export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
1206
1232
|
/**
|
|
1207
1233
|
* ```
|
|
1208
1234
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1214,8 +1240,8 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
|
1214
1240
|
*
|
|
1215
1241
|
* ```
|
|
1216
1242
|
*/
|
|
1217
|
-
export declare const
|
|
1218
|
-
export type
|
|
1243
|
+
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => JSX.Element;
|
|
1244
|
+
export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
1219
1245
|
/**
|
|
1220
1246
|
* ```
|
|
1221
1247
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1227,8 +1253,8 @@ export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
1227
1253
|
*
|
|
1228
1254
|
* ```
|
|
1229
1255
|
*/
|
|
1230
|
-
export declare const
|
|
1231
|
-
export type
|
|
1256
|
+
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => JSX.Element;
|
|
1257
|
+
export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
1232
1258
|
/**
|
|
1233
1259
|
* ```
|
|
1234
1260
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1240,7 +1266,7 @@ export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
|
1240
1266
|
*
|
|
1241
1267
|
* ```
|
|
1242
1268
|
*/
|
|
1243
|
-
export declare const
|
|
1269
|
+
export declare const InputWrapper: (props: InputWrapperProps) => JSX.Element;
|
|
1244
1270
|
export type LabelValueLayoutProps = {
|
|
1245
1271
|
options: {
|
|
1246
1272
|
label: string | ReactElement;
|
|
@@ -1308,24 +1334,6 @@ export interface ModalActionProps {
|
|
|
1308
1334
|
* ```
|
|
1309
1335
|
*/
|
|
1310
1336
|
export declare const ModalAction: (props: ModalActionProps) => JSX.Element;
|
|
1311
|
-
export interface ModalStateType {
|
|
1312
|
-
title?: string;
|
|
1313
|
-
/**
|
|
1314
|
-
* 显示modal
|
|
1315
|
-
*/
|
|
1316
|
-
open: boolean;
|
|
1317
|
-
/**
|
|
1318
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
1319
|
-
*/
|
|
1320
|
-
itemData?: Record<string, unknown> | null;
|
|
1321
|
-
operateType: "create" | "update" | "view";
|
|
1322
|
-
pageLoading?: boolean;
|
|
1323
|
-
}
|
|
1324
|
-
export interface ModalActionsParamType {
|
|
1325
|
-
openModalForm: Pick<ModalStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
1326
|
-
closeModal: void;
|
|
1327
|
-
setModalItemData: Record<string, unknown>;
|
|
1328
|
-
}
|
|
1329
1337
|
export interface ModalOperationOldProps {
|
|
1330
1338
|
loading?: boolean;
|
|
1331
1339
|
okText?: string;
|
|
@@ -1351,6 +1359,7 @@ declare const ModalWrapperContent: (props: {
|
|
|
1351
1359
|
declare const ModalWrapperFooter: (props: any) => JSX.Element;
|
|
1352
1360
|
/**
|
|
1353
1361
|
* 弹窗机制
|
|
1362
|
+
* @deprecated 已过期,后面版本会移除;请使用 dialogModal.open
|
|
1354
1363
|
* ```
|
|
1355
1364
|
* 1. 默认 destroyOnClose = true
|
|
1356
1365
|
* 2. 默认 forceRender = false
|
|
@@ -1363,17 +1372,6 @@ declare const ModalWrapperFooter: (props: any) => JSX.Element;
|
|
|
1363
1372
|
* ```
|
|
1364
1373
|
*/
|
|
1365
1374
|
export declare const ModalWrapper: FC<ModalWrapperProps> & ModalWrapperStaticMethods;
|
|
1366
|
-
/**
|
|
1367
|
-
* modal弹窗模型
|
|
1368
|
-
* @param key 唯一值必传
|
|
1369
|
-
* @returns
|
|
1370
|
-
*
|
|
1371
|
-
* ```
|
|
1372
|
-
* 使用方式
|
|
1373
|
-
* const [modalState, modalActions] = createModalWrapperModel('key值').useStore();
|
|
1374
|
-
* ```
|
|
1375
|
-
*/
|
|
1376
|
-
export declare const createModalWrapperModel: (key: string) => API<ModelType<ModalStateType, ModalActionsParamType, any>>;
|
|
1377
1375
|
export type PageFixedFooterProps = {
|
|
1378
1376
|
className?: string;
|
|
1379
1377
|
style?: CSSProperties;
|
|
@@ -1384,8 +1382,6 @@ export type Page404Props = {
|
|
|
1384
1382
|
message?: string;
|
|
1385
1383
|
};
|
|
1386
1384
|
export declare const Page404: (props: Page404Props) => JSX.Element;
|
|
1387
|
-
export declare const getPermissionList: () => string[];
|
|
1388
|
-
export declare const hasPermission: (name?: string) => boolean;
|
|
1389
1385
|
export interface PermissionProps {
|
|
1390
1386
|
name?: string;
|
|
1391
1387
|
children?: ReactNode | ReactNode[];
|
|
@@ -1511,9 +1507,34 @@ export type TRelationTreeOperate = {
|
|
|
1511
1507
|
add: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeRelationItem) => void;
|
|
1512
1508
|
addChildren: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeData) => void;
|
|
1513
1509
|
remove: (uid: string) => void;
|
|
1514
|
-
onChange: (name: string, value:
|
|
1510
|
+
onChange: (name: string, value: TAny) => void;
|
|
1515
1511
|
};
|
|
1516
1512
|
export declare const RelationTree: (props: RelationTreeProps) => JSX.Element;
|
|
1513
|
+
export type RollLocationCenterProps = {
|
|
1514
|
+
renderList: {
|
|
1515
|
+
activeKey: string;
|
|
1516
|
+
render: ReactElement;
|
|
1517
|
+
}[];
|
|
1518
|
+
activeKey?: string;
|
|
1519
|
+
behavior?: ScrollBehavior;
|
|
1520
|
+
direction?: "horizontal" | "vertical";
|
|
1521
|
+
style?: CSSProperties;
|
|
1522
|
+
className?: string;
|
|
1523
|
+
};
|
|
1524
|
+
export declare const RollLocationCenter: (props: RollLocationCenterProps) => JSX.Element;
|
|
1525
|
+
export type RollLocationInViewProps = {
|
|
1526
|
+
renderList: {
|
|
1527
|
+
activeKey: string;
|
|
1528
|
+
render: ReactElement;
|
|
1529
|
+
}[];
|
|
1530
|
+
activeKey?: string;
|
|
1531
|
+
behavior?: ScrollBehavior;
|
|
1532
|
+
activeOffset?: number;
|
|
1533
|
+
direction?: "horizontal" | "vertical";
|
|
1534
|
+
style?: CSSProperties;
|
|
1535
|
+
className?: string;
|
|
1536
|
+
};
|
|
1537
|
+
export declare const RollLocationInView: (props: RollLocationInViewProps) => JSX.Element;
|
|
1517
1538
|
export type RuleDataItem = {
|
|
1518
1539
|
title?: string | ReactElement;
|
|
1519
1540
|
desc?: string | ReactElement;
|
|
@@ -1558,7 +1579,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
1558
1579
|
* 通过服务获取数据异常回调
|
|
1559
1580
|
*/
|
|
1560
1581
|
onSelectorRequestError?: (error: Error) => void;
|
|
1561
|
-
requestMessageConfig?:
|
|
1582
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1562
1583
|
};
|
|
1563
1584
|
/**
|
|
1564
1585
|
* 选择器简单包装组件
|
|
@@ -1600,7 +1621,7 @@ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
1600
1621
|
* 通过服务获取数据异常回调
|
|
1601
1622
|
*/
|
|
1602
1623
|
onSelectorRequestError?: (error: Error) => void;
|
|
1603
|
-
requestMessageConfig?:
|
|
1624
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1604
1625
|
};
|
|
1605
1626
|
/**
|
|
1606
1627
|
* 选择器简单包装组件
|
|
@@ -1660,6 +1681,7 @@ export interface SmsCountDownProps {
|
|
|
1660
1681
|
className?: string;
|
|
1661
1682
|
}
|
|
1662
1683
|
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
1684
|
+
export declare const styles: () => void;
|
|
1663
1685
|
export type SwitchWrapperValue = string | number | boolean;
|
|
1664
1686
|
export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked" | "onChange"> & {
|
|
1665
1687
|
value?: SwitchWrapperValue;
|
|
@@ -1748,8 +1770,21 @@ export declare const tableCellRender: {
|
|
|
1748
1770
|
extraContentRender: (handle: (item: TPlainObject) => TableColumnIconRenderProps) => (value: TAny, item: TPlainObject) => any;
|
|
1749
1771
|
/**
|
|
1750
1772
|
* table 索引展示,如果存在pageSize、pageNo参数可分页展示索引,否则每页都从1开始
|
|
1773
|
+
* @deprecated 已过时,请使用 serialNumberCell
|
|
1774
|
+
*/
|
|
1775
|
+
indexCell: (pageNo?: number, pageSize?: number) => (_value: any, _record: any, index: number) => number;
|
|
1776
|
+
/**
|
|
1777
|
+
* table 序号展示,如果存在pageSize、pageNo参数可分页展示累加序号,否则每页都从1开始
|
|
1778
|
+
* ```
|
|
1779
|
+
* render: tableCellRender.serialNumberCell(() => {
|
|
1780
|
+
* return { pageNo,pageSize };
|
|
1781
|
+
* }),
|
|
1782
|
+
* ```
|
|
1751
1783
|
*/
|
|
1752
|
-
|
|
1784
|
+
serialNumberCell: (method?: () => {
|
|
1785
|
+
pageNo?: number;
|
|
1786
|
+
pageSize?: number;
|
|
1787
|
+
}) => (_value: any, _record: any, index: number) => number;
|
|
1753
1788
|
/**
|
|
1754
1789
|
* 表格日期格式数据渲染,默认格式:YYYY-MM-DD
|
|
1755
1790
|
* ```
|
|
@@ -1857,12 +1892,12 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
1857
1892
|
value?: string;
|
|
1858
1893
|
onChange?: (value?: string) => void;
|
|
1859
1894
|
/**
|
|
1860
|
-
* 1. minTime、maxTime设置为 DayjsTimeTypeEnum,默认格式:
|
|
1895
|
+
* 1. minTime、maxTime设置为 DayjsTimeTypeEnum,默认格式:HH:mm:ss
|
|
1861
1896
|
* 2. minTime、maxTime格式必须与 format 相同
|
|
1862
1897
|
*/
|
|
1863
1898
|
disabledTimeConfig?: {
|
|
1864
|
-
minTime?:
|
|
1865
|
-
maxTime?:
|
|
1899
|
+
minTime?: TDayjsTimeType;
|
|
1900
|
+
maxTime?: TDayjsTimeType;
|
|
1866
1901
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1867
1902
|
disabledHourList?: number[];
|
|
1868
1903
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -1870,7 +1905,7 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
1870
1905
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1871
1906
|
disabledSecondList?: number[];
|
|
1872
1907
|
};
|
|
1873
|
-
format?:
|
|
1908
|
+
format?: TDayjsTimeType;
|
|
1874
1909
|
};
|
|
1875
1910
|
/**
|
|
1876
1911
|
* TimePicker组件包装
|
|
@@ -1893,12 +1928,12 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
1893
1928
|
string
|
|
1894
1929
|
]) => void;
|
|
1895
1930
|
/**
|
|
1896
|
-
* 1. minTime、maxTime设置格式,默认格式:
|
|
1931
|
+
* 1. minTime、maxTime设置格式,默认格式:HH:mm:ss
|
|
1897
1932
|
* 2. minTime、maxTime格式必须与 format 相同
|
|
1898
1933
|
*/
|
|
1899
1934
|
disabledTimeConfig?: {
|
|
1900
|
-
minTime?:
|
|
1901
|
-
maxTime?:
|
|
1935
|
+
minTime?: TDayjsTimeType;
|
|
1936
|
+
maxTime?: TDayjsTimeType;
|
|
1902
1937
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1903
1938
|
disabledHourList?: number[];
|
|
1904
1939
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -1906,7 +1941,7 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
1906
1941
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1907
1942
|
disabledSecondList?: number[];
|
|
1908
1943
|
};
|
|
1909
|
-
format?:
|
|
1944
|
+
format?: TDayjsTimeType;
|
|
1910
1945
|
};
|
|
1911
1946
|
/**
|
|
1912
1947
|
* TimePicker组件包装
|
|
@@ -1945,11 +1980,11 @@ export type TreeSelectorWrapperValue = string | number | Array<string | number>
|
|
|
1945
1980
|
export type TreeSelectorServiceConfig = {
|
|
1946
1981
|
params?: TPlainObject;
|
|
1947
1982
|
requiredParamsKeys?: string[];
|
|
1948
|
-
onRequest?: (params?:
|
|
1983
|
+
onRequest?: (params?: TAny) => TAny;
|
|
1949
1984
|
/**
|
|
1950
1985
|
* 响应数据适配器
|
|
1951
1986
|
*/
|
|
1952
|
-
onRequestResultAdapter?: (respData:
|
|
1987
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
1953
1988
|
};
|
|
1954
1989
|
export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys" | "treeData" | "loading" | "onTreeExpand" | "onChange" | "value" | "fieldNames"> & {
|
|
1955
1990
|
modelKey: string;
|
|
@@ -2002,7 +2037,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
2002
2037
|
* tree item 数据适配器
|
|
2003
2038
|
*/
|
|
2004
2039
|
onTreeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
2005
|
-
requestMessageConfig?:
|
|
2040
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2006
2041
|
/**
|
|
2007
2042
|
* value格式
|
|
2008
2043
|
*```
|
|
@@ -2115,7 +2150,7 @@ export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "on
|
|
|
2115
2150
|
* 是否必选,最后一个不能取消
|
|
2116
2151
|
*/
|
|
2117
2152
|
required?: boolean;
|
|
2118
|
-
requestMessageConfig?:
|
|
2153
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2119
2154
|
/**
|
|
2120
2155
|
* value格式
|
|
2121
2156
|
*```
|
|
@@ -2212,7 +2247,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
2212
2247
|
* 是否必选,最后一个不能取消
|
|
2213
2248
|
*/
|
|
2214
2249
|
required?: boolean | undefined;
|
|
2215
|
-
requestMessageConfig?:
|
|
2250
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2216
2251
|
/**
|
|
2217
2252
|
* value格式
|
|
2218
2253
|
*```
|