@flatbiz/antd 4.1.8 → 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 +240 -256
- package/package.json +1 -1
- 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,9 +14,8 @@ 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 {
|
|
21
20
|
/** hover 提示文字 */
|
|
22
21
|
hoverTips?: string | React.ReactElement;
|
|
@@ -70,23 +69,23 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
|
|
|
70
69
|
* @returns
|
|
71
70
|
*/
|
|
72
71
|
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
73
|
-
export type
|
|
74
|
-
export type
|
|
75
|
-
status?:
|
|
72
|
+
export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
73
|
+
export type TRequestStatusProps = {
|
|
74
|
+
status?: TRequestStatus;
|
|
76
75
|
errorButton?: ReactElement;
|
|
77
|
-
messageConfig?: Partial<Record<
|
|
76
|
+
messageConfig?: Partial<Record<TRequestStatus, string>>;
|
|
78
77
|
loading?: boolean;
|
|
79
78
|
};
|
|
80
|
-
export declare const
|
|
79
|
+
export declare const RequestStatus: (props: TRequestStatusProps) => JSX.Element;
|
|
81
80
|
export type CascaderWrapperServiceConfig = {
|
|
82
81
|
params?: TPlainObject;
|
|
83
|
-
onRequest?: (params?:
|
|
82
|
+
onRequest?: (params?: TAny) => TAny;
|
|
84
83
|
/**
|
|
85
84
|
* 响应数据适配器
|
|
86
85
|
*/
|
|
87
|
-
onRequestResultAdapter?: (respData:
|
|
86
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
88
87
|
};
|
|
89
|
-
export type CascaderWrapperProps = Omit<CascaderProps<
|
|
88
|
+
export type CascaderWrapperProps = Omit<CascaderProps<TAny>, "loading" | "notFoundContent" | "options" | "value" | "multiple" | "onChange"> & {
|
|
90
89
|
modelKey: string;
|
|
91
90
|
/**
|
|
92
91
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
@@ -100,7 +99,7 @@ export type CascaderWrapperProps = Omit<CascaderProps<any>, "loading" | "notFoun
|
|
|
100
99
|
isDynamicLoad?: boolean;
|
|
101
100
|
value?: string | number;
|
|
102
101
|
onChange?: (value?: string | number, selectedList?: TPlainObject[]) => void;
|
|
103
|
-
requestMessageConfig?:
|
|
102
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
104
103
|
};
|
|
105
104
|
export type CascaderWrapperRefApi = {
|
|
106
105
|
getCascaderList: () => TPlainObject[];
|
|
@@ -131,7 +130,7 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
131
130
|
isDynamicLoad?: boolean | undefined;
|
|
132
131
|
value?: string | number | undefined;
|
|
133
132
|
onChange?: ((value?: string | number, selectedList?: TPlainObject[]) => void) | undefined;
|
|
134
|
-
requestMessageConfig?:
|
|
133
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
135
134
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
136
135
|
export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject> {
|
|
137
136
|
className?: string;
|
|
@@ -139,7 +138,6 @@ export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject>
|
|
|
139
138
|
children?: ReactNode | undefined;
|
|
140
139
|
}
|
|
141
140
|
export type CheckListItemValue = string | number;
|
|
142
|
-
export type CheckListValue = CheckListItemValue[] | CheckListItemValue | undefined;
|
|
143
141
|
export type CheckListSelectedValue<T extends "multi" | "radio"> = T extends "multi" ? CheckListItemValue[] : CheckListItemValue;
|
|
144
142
|
export type CheckListProps<T extends "multi" | "radio"> = {
|
|
145
143
|
multiple?: boolean;
|
|
@@ -152,7 +150,6 @@ export type CheckListProps<T extends "multi" | "radio"> = {
|
|
|
152
150
|
stopPropagation?: boolean;
|
|
153
151
|
required?: boolean;
|
|
154
152
|
} & CommonPropsWithChildren;
|
|
155
|
-
export declare const CheckList: <T extends "radio" | "multi">(props: CheckListProps<T>) => JSX.Element;
|
|
156
153
|
export type CheckListItemContentProps = {
|
|
157
154
|
checked?: boolean;
|
|
158
155
|
disabled?: boolean;
|
|
@@ -169,11 +166,72 @@ export type CheckListItemProps = {
|
|
|
169
166
|
className?: string;
|
|
170
167
|
style?: CSSProperties;
|
|
171
168
|
};
|
|
172
|
-
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
|
+
};
|
|
173
172
|
export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
174
173
|
locale?: "en" | "zh-cn";
|
|
175
174
|
};
|
|
176
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>>;
|
|
177
235
|
export type CssHoverProps = {
|
|
178
236
|
children: ReactElement | ReactElement[];
|
|
179
237
|
} & Pick<CommonPropsWithChildren<{
|
|
@@ -190,30 +248,14 @@ export type CssHoverProps = {
|
|
|
190
248
|
* @returns
|
|
191
249
|
*/
|
|
192
250
|
export declare const CssNodeHover: (props: CssHoverProps) => JSX.Element;
|
|
193
|
-
export type
|
|
194
|
-
export
|
|
195
|
-
YMDHms = "YYYY-MM-DD HH:mm:ss",
|
|
196
|
-
YMDHm = "YYYY-MM-DD HH:mm",
|
|
197
|
-
YMDH = "YYYY-MM-DD HH",
|
|
198
|
-
YMD = "YYYY-MM-DD"
|
|
199
|
-
}
|
|
200
|
-
export declare enum DayjsTimeTypeEnum {
|
|
201
|
-
Hms = "HH:mm:ss",
|
|
202
|
-
Hm = "HH:mm",
|
|
203
|
-
H = "HH",
|
|
204
|
-
ms = "mm:ss",
|
|
205
|
-
m = "mm",
|
|
206
|
-
s = "ss"
|
|
207
|
-
}
|
|
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 & {});
|
|
208
253
|
export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value" | "onChange" | "format"> & {
|
|
209
254
|
value?: string;
|
|
210
255
|
onChange?: (value?: string) => void;
|
|
211
|
-
/**
|
|
212
|
-
* minDate、maxDate设置格式:DayjsDateTypeEnum
|
|
213
|
-
*/
|
|
214
256
|
disabledDateConfig?: {
|
|
215
|
-
minDate?:
|
|
216
|
-
maxDate?:
|
|
257
|
+
minDate?: TDayjsDateType;
|
|
258
|
+
maxDate?: TDayjsDateType;
|
|
217
259
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
218
260
|
disabledHourList?: number[];
|
|
219
261
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -221,7 +263,8 @@ export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value"
|
|
|
221
263
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
222
264
|
disabledSecondList?: number[];
|
|
223
265
|
};
|
|
224
|
-
|
|
266
|
+
/** 可自定义格式 */
|
|
267
|
+
format?: TDayjsDateType;
|
|
225
268
|
};
|
|
226
269
|
/**
|
|
227
270
|
* DatePicker包装组件
|
|
@@ -244,12 +287,12 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
244
287
|
string
|
|
245
288
|
]) => void;
|
|
246
289
|
/**
|
|
247
|
-
* 1. minDate、maxDate
|
|
290
|
+
* 1. minDate、maxDate 与 format格式相同;默认:YYYY-MM-DD
|
|
248
291
|
* 2. maxDays 最大可选的天数
|
|
249
292
|
*/
|
|
250
293
|
disabledDateConfig?: {
|
|
251
|
-
minDate?:
|
|
252
|
-
maxDate?:
|
|
294
|
+
minDate?: TDayjsDateType;
|
|
295
|
+
maxDate?: TDayjsDateType;
|
|
253
296
|
maxDays?: number;
|
|
254
297
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
255
298
|
disabledHourList?: number[];
|
|
@@ -258,7 +301,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
258
301
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
259
302
|
disabledSecondList?: number[];
|
|
260
303
|
};
|
|
261
|
-
format?:
|
|
304
|
+
format?: TDayjsDateType;
|
|
262
305
|
};
|
|
263
306
|
/**
|
|
264
307
|
* DatePicker.RangePicker包装组件
|
|
@@ -275,6 +318,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
|
|
|
275
318
|
* ```
|
|
276
319
|
*/
|
|
277
320
|
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => JSX.Element;
|
|
321
|
+
export type FormItemNamePath = string | number | Array<string | number>;
|
|
278
322
|
export type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
|
|
279
323
|
/**
|
|
280
324
|
* 开始的时间name
|
|
@@ -441,24 +485,6 @@ export declare const dialogLoading: {
|
|
|
441
485
|
*/
|
|
442
486
|
close: () => void;
|
|
443
487
|
};
|
|
444
|
-
export interface DrawerStateType {
|
|
445
|
-
title: string;
|
|
446
|
-
/**
|
|
447
|
-
* 显示drawer
|
|
448
|
-
*/
|
|
449
|
-
open: boolean;
|
|
450
|
-
/**
|
|
451
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
452
|
-
*/
|
|
453
|
-
itemData?: Record<string, any>;
|
|
454
|
-
operateType: "create" | "update" | "view" | null;
|
|
455
|
-
pageLoading?: boolean;
|
|
456
|
-
}
|
|
457
|
-
export interface DrawerActionsParamType {
|
|
458
|
-
openDrawerForm: Pick<DrawerStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
459
|
-
closeDrawer: void;
|
|
460
|
-
setDrawerItemData: Record<string, any>;
|
|
461
|
-
}
|
|
462
488
|
export interface DrawerOperationProps {
|
|
463
489
|
loading?: boolean;
|
|
464
490
|
okText?: string;
|
|
@@ -487,6 +513,7 @@ declare const DrawerWrapperContent: (props: {
|
|
|
487
513
|
declare const DrawerWrapperFooter: (props: any) => JSX.Element;
|
|
488
514
|
/**
|
|
489
515
|
* 弹窗机制
|
|
516
|
+
* @deprecated 已过期,后面版本会移除;请使用 dialogDrawer.open
|
|
490
517
|
* ```
|
|
491
518
|
* 1. 默认 destroyOnClose = true
|
|
492
519
|
* 2. 默认 forceRender = false
|
|
@@ -499,17 +526,6 @@ declare const DrawerWrapperFooter: (props: any) => JSX.Element;
|
|
|
499
526
|
* ```
|
|
500
527
|
*/
|
|
501
528
|
export declare const DrawerWrapper: FC<DrawerWrapperProps> & DrawerWrapperStaticMethods;
|
|
502
|
-
/**
|
|
503
|
-
* drawer弹窗模型
|
|
504
|
-
* @param key 唯一值必传
|
|
505
|
-
* @returns
|
|
506
|
-
*
|
|
507
|
-
* ```
|
|
508
|
-
* 使用方式
|
|
509
|
-
* const [drawerState, drawerActions] = createDrawerWrapperModel('key值').useStore();
|
|
510
|
-
* ```
|
|
511
|
-
*/
|
|
512
|
-
export declare const createDrawerWrapperModel: (key: string) => API<ModelType<DrawerStateType, DrawerActionsParamType, any>>;
|
|
513
529
|
export interface DropdownMenuItem extends ButtonProps {
|
|
514
530
|
text: string | ReactElement;
|
|
515
531
|
color?: string;
|
|
@@ -585,52 +601,6 @@ export type EasyTableProps = {
|
|
|
585
601
|
/** 如果自定义查询按钮,可设置 Form onFinish */
|
|
586
602
|
onFormFinish?: (values?: TPlainObject) => void;
|
|
587
603
|
};
|
|
588
|
-
/**
|
|
589
|
-
* 对 查询条件+表格数据 进行深度封装,内置数据交互处理
|
|
590
|
-
* ```
|
|
591
|
-
* 1. 需要获取查询条件、主动发起请求等可通过ref操作
|
|
592
|
-
* 2. 可通过属性 initRequest 设置初始化是否请求数据
|
|
593
|
-
* 3. 可通过属性 fieldNames 来设置自定义变量,默认值为:list、total、pageNo、pageSize
|
|
594
|
-
*
|
|
595
|
-
* Demo https://fex.qa.tcshuke.com/docs/admin/main/crud/easy-table
|
|
596
|
-
* ```
|
|
597
|
-
*/
|
|
598
|
-
export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>>;
|
|
599
|
-
export type FormColProps = {
|
|
600
|
-
span?: number;
|
|
601
|
-
/** 屏幕 < 576px */
|
|
602
|
-
xs?: number;
|
|
603
|
-
/** 屏幕 ≥ 576px */
|
|
604
|
-
sm?: number;
|
|
605
|
-
/** 屏幕 ≥ 768px */
|
|
606
|
-
md?: number;
|
|
607
|
-
/** 屏幕 ≥ 992px */
|
|
608
|
-
lg?: number;
|
|
609
|
-
/** 屏幕 ≥ 1200px */
|
|
610
|
-
xl?: number;
|
|
611
|
-
/** 屏幕 ≥ 1600px */
|
|
612
|
-
xxl?: number;
|
|
613
|
-
/** 强制单独一行 */
|
|
614
|
-
forceAloneRow?: boolean;
|
|
615
|
-
children?: ReactNode | ReactNode[];
|
|
616
|
-
};
|
|
617
|
-
/**
|
|
618
|
-
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
619
|
-
*```
|
|
620
|
-
* 1. 设置 span 栅格占位格数,不考虑响应式
|
|
621
|
-
* 2. grid 自定义响应式网格布局
|
|
622
|
-
* xs: 屏幕 < 576px
|
|
623
|
-
* sm: 屏幕 ≥ 576px
|
|
624
|
-
* md: 屏幕 ≥ 768px
|
|
625
|
-
* lg: 屏幕 ≥ 992px
|
|
626
|
-
* xl: 屏幕 ≥ 1200px
|
|
627
|
-
* xxl: 屏幕 ≥ 1600px
|
|
628
|
-
* ```
|
|
629
|
-
*/
|
|
630
|
-
export declare const FormCol: {
|
|
631
|
-
(props: FormColProps): JSX.Element;
|
|
632
|
-
domTypeName: string;
|
|
633
|
-
};
|
|
634
604
|
export type FormOperateColProps = {
|
|
635
605
|
className?: string;
|
|
636
606
|
leftList?: Array<ReactElement | null>;
|
|
@@ -639,30 +609,6 @@ export type FormOperateColProps = {
|
|
|
639
609
|
/** 强制单独一行 */
|
|
640
610
|
forceAloneRow?: boolean;
|
|
641
611
|
};
|
|
642
|
-
/**
|
|
643
|
-
* FormOperateCol 布局说明
|
|
644
|
-
* ```
|
|
645
|
-
* 1. 网格数以及位置为动态计算,不支持 xs、sm、md等
|
|
646
|
-
* 2. 如果FormRow只有一行col,则OperateCol会在当前行剩余网格内居左对齐
|
|
647
|
-
* 3. 如果同时设置 leftList、rightList,则此cell会强制独占一行,并左右布局
|
|
648
|
-
* 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
|
|
649
|
-
* ```
|
|
650
|
-
*/
|
|
651
|
-
export declare const FormOperateCol: {
|
|
652
|
-
(props: FormOperateColProps): JSX.Element;
|
|
653
|
-
domTypeName: string;
|
|
654
|
-
};
|
|
655
|
-
export type FormRowProps = RowProps & {
|
|
656
|
-
children?: ReactNode | ReactNode[];
|
|
657
|
-
};
|
|
658
|
-
/**
|
|
659
|
-
* FormItem网格响应式布局
|
|
660
|
-
*```
|
|
661
|
-
* 1. 应用场景:Form条件布局
|
|
662
|
-
* 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
|
|
663
|
-
* 3. 所有子元素中只能存在一个 FormOperateCol
|
|
664
|
-
*/
|
|
665
|
-
export declare const FormRow: (props: FormRowProps) => JSX.Element;
|
|
666
612
|
export type EasyTableFilterProps = {
|
|
667
613
|
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
668
614
|
/** isPure = true时无效 */
|
|
@@ -676,49 +622,51 @@ export type EasyTableFilterProps = {
|
|
|
676
622
|
text?: string;
|
|
677
623
|
};
|
|
678
624
|
};
|
|
679
|
-
/**
|
|
680
|
-
* 过滤条件
|
|
681
|
-
* @param props
|
|
682
|
-
* @returns
|
|
683
|
-
*
|
|
684
|
-
*```
|
|
685
|
-
*1. 用法1
|
|
686
|
-
* -- 默认网格布局 规则:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
687
|
-
* <EasyTableFilter>
|
|
688
|
-
* <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
689
|
-
* </EasyTableFilter>
|
|
690
|
-
*
|
|
691
|
-
* -- 自定义网格布局 使用 FormCol组件包装 Form.Item
|
|
692
|
-
* <EasyTableFilter>
|
|
693
|
-
* <FormCol span={12}><Form.Item name="field1" label="条件1">xxx</Form.Item></FormCol>
|
|
694
|
-
* </EasyTableFilter>
|
|
695
|
-
*
|
|
696
|
-
* -- children 可为 function
|
|
697
|
-
* <EasyTableFilter>
|
|
698
|
-
* {(form) => {
|
|
699
|
-
* return <Form.Item name="field1" label="条件1">xxx</Form.Item>
|
|
700
|
-
* }}
|
|
701
|
-
* </EasyTableFilter>
|
|
702
|
-
*2. 用户2(自定义布局)
|
|
703
|
-
* EasyTableFilter设置 isPure = true,FormItem无布局规则
|
|
704
|
-
*3. EasyTableFilter中内置了 Form 标签,当children为函数时,可获取form实例
|
|
705
|
-
*4. 默认布局下,可通过设置 filterOperate 设置操作按钮
|
|
706
|
-
*```
|
|
707
|
-
*/
|
|
708
|
-
export declare const EasyTableFilter: (props: EasyTableFilterProps) => JSX.Element;
|
|
709
625
|
export type EasyTableTableProps = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey"> & {
|
|
710
626
|
children?: ReactElement;
|
|
711
627
|
/** 表格行 key 的取值 */
|
|
712
628
|
rowKey: string;
|
|
713
629
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
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
|
+
};
|
|
722
670
|
export interface EditableFieldProps {
|
|
723
671
|
className?: string;
|
|
724
672
|
editRender: ReactElement | ((data: {
|
|
@@ -833,7 +781,7 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
|
|
|
833
781
|
showIcon?: boolean;
|
|
834
782
|
/** select option添加图标;与showIcon组合使用 */
|
|
835
783
|
icon?: (data: TPlainObject, index: number) => ReactElement;
|
|
836
|
-
requestMessageConfig?:
|
|
784
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
837
785
|
/**
|
|
838
786
|
* value格式
|
|
839
787
|
*```
|
|
@@ -1068,7 +1016,7 @@ export type EditableTableProps = {
|
|
|
1068
1016
|
export declare const EditableTable: (props: EditableTableProps) => JSX.Element;
|
|
1069
1017
|
export type varStyles = "--fa-color-primary" | "--fa-color-secondary" | "--fa-color-warning" | "--fa-color-danger" | "--fa-color-success" | "--editor-card-bgcolor";
|
|
1070
1018
|
export type EditorWrapperProps = {
|
|
1071
|
-
onChange
|
|
1019
|
+
onChange?: (data?: string) => void;
|
|
1072
1020
|
value?: string;
|
|
1073
1021
|
editorInitParams?: TPlainObject;
|
|
1074
1022
|
editorProps?: TPlainObject;
|
|
@@ -1081,8 +1029,35 @@ export type EditorWrapperProps = {
|
|
|
1081
1029
|
* @returns
|
|
1082
1030
|
*/
|
|
1083
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
|
+
};
|
|
1084
1059
|
export type FileImportProps = {
|
|
1085
|
-
onImportFinish: (data?:
|
|
1060
|
+
onImportFinish: (data?: TAny) => void;
|
|
1086
1061
|
buttonName?: string | ReactElement;
|
|
1087
1062
|
children?: React.ReactNode | ((data: {
|
|
1088
1063
|
loading: boolean;
|
|
@@ -1122,6 +1097,67 @@ export type FlexLayoutProps = {
|
|
|
1122
1097
|
* @returns
|
|
1123
1098
|
*/
|
|
1124
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
|
+
};
|
|
1125
1161
|
export type FormItemHorizontalUnionProps = {
|
|
1126
1162
|
className?: string;
|
|
1127
1163
|
style?: CSSProperties;
|
|
@@ -1175,29 +1211,6 @@ export type GapProps = {
|
|
|
1175
1211
|
* @returns
|
|
1176
1212
|
*/
|
|
1177
1213
|
export declare const Gap: (props: GapProps) => JSX.Element;
|
|
1178
|
-
export declare const useArrayChange: <T>(dataList: T[], forceUpdate?: boolean) => readonly [
|
|
1179
|
-
T[],
|
|
1180
|
-
{
|
|
1181
|
-
add: (dataItem: T | T[], isUnshift?: boolean) => void;
|
|
1182
|
-
update: (index: number, dataItem: T) => void;
|
|
1183
|
-
delete: (index: number) => T[];
|
|
1184
|
-
resetList: (dataList: T[]) => void;
|
|
1185
|
-
getList: () => T[];
|
|
1186
|
-
}
|
|
1187
|
-
];
|
|
1188
|
-
export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
|
|
1189
|
-
export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
|
|
1190
|
-
export type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
|
|
1191
|
-
export declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
|
|
1192
|
-
/**
|
|
1193
|
-
* 获取响应式节点
|
|
1194
|
-
*/
|
|
1195
|
-
export declare const useResponsivePoint: () => string | undefined;
|
|
1196
|
-
export declare const useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
|
|
1197
|
-
S,
|
|
1198
|
-
Dispatch<SetStateAction<S>>
|
|
1199
|
-
];
|
|
1200
|
-
export declare const useThemeToken: () => import("antd").GlobalToken;
|
|
1201
1214
|
export type IconWrapperProps = {
|
|
1202
1215
|
hoverTips?: string | React.ReactElement;
|
|
1203
1216
|
/**
|
|
@@ -1215,7 +1228,7 @@ export type IconWrapperProps = {
|
|
|
1215
1228
|
hidden?: boolean;
|
|
1216
1229
|
};
|
|
1217
1230
|
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element | null;
|
|
1218
|
-
export type
|
|
1231
|
+
export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
1219
1232
|
/**
|
|
1220
1233
|
* ```
|
|
1221
1234
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1227,8 +1240,8 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
|
1227
1240
|
*
|
|
1228
1241
|
* ```
|
|
1229
1242
|
*/
|
|
1230
|
-
export declare const
|
|
1231
|
-
export type
|
|
1243
|
+
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => JSX.Element;
|
|
1244
|
+
export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
1232
1245
|
/**
|
|
1233
1246
|
* ```
|
|
1234
1247
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1240,8 +1253,8 @@ export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
1240
1253
|
*
|
|
1241
1254
|
* ```
|
|
1242
1255
|
*/
|
|
1243
|
-
export declare const
|
|
1244
|
-
export type
|
|
1256
|
+
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => JSX.Element;
|
|
1257
|
+
export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
1245
1258
|
/**
|
|
1246
1259
|
* ```
|
|
1247
1260
|
* 1. 在输入框内输入拼音的时候,在拼音尚未输入完成时,字母会触发Input的onChange事件;导致以上效果的原因是input事件没办法知道我们在使用中文输入法
|
|
@@ -1253,7 +1266,7 @@ export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue">;
|
|
|
1253
1266
|
*
|
|
1254
1267
|
* ```
|
|
1255
1268
|
*/
|
|
1256
|
-
export declare const
|
|
1269
|
+
export declare const InputWrapper: (props: InputWrapperProps) => JSX.Element;
|
|
1257
1270
|
export type LabelValueLayoutProps = {
|
|
1258
1271
|
options: {
|
|
1259
1272
|
label: string | ReactElement;
|
|
@@ -1321,24 +1334,6 @@ export interface ModalActionProps {
|
|
|
1321
1334
|
* ```
|
|
1322
1335
|
*/
|
|
1323
1336
|
export declare const ModalAction: (props: ModalActionProps) => JSX.Element;
|
|
1324
|
-
export interface ModalStateType {
|
|
1325
|
-
title?: string;
|
|
1326
|
-
/**
|
|
1327
|
-
* 显示modal
|
|
1328
|
-
*/
|
|
1329
|
-
open: boolean;
|
|
1330
|
-
/**
|
|
1331
|
-
* 用来处理form, `更新`的时候的传递当前item列表行的数据, 当`创建`的时候强制设置为 `undefined`
|
|
1332
|
-
*/
|
|
1333
|
-
itemData?: Record<string, unknown> | null;
|
|
1334
|
-
operateType: "create" | "update" | "view";
|
|
1335
|
-
pageLoading?: boolean;
|
|
1336
|
-
}
|
|
1337
|
-
export interface ModalActionsParamType {
|
|
1338
|
-
openModalForm: Pick<ModalStateType, "title" | "itemData" | "operateType" | "pageLoading">;
|
|
1339
|
-
closeModal: void;
|
|
1340
|
-
setModalItemData: Record<string, unknown>;
|
|
1341
|
-
}
|
|
1342
1337
|
export interface ModalOperationOldProps {
|
|
1343
1338
|
loading?: boolean;
|
|
1344
1339
|
okText?: string;
|
|
@@ -1364,6 +1359,7 @@ declare const ModalWrapperContent: (props: {
|
|
|
1364
1359
|
declare const ModalWrapperFooter: (props: any) => JSX.Element;
|
|
1365
1360
|
/**
|
|
1366
1361
|
* 弹窗机制
|
|
1362
|
+
* @deprecated 已过期,后面版本会移除;请使用 dialogModal.open
|
|
1367
1363
|
* ```
|
|
1368
1364
|
* 1. 默认 destroyOnClose = true
|
|
1369
1365
|
* 2. 默认 forceRender = false
|
|
@@ -1376,17 +1372,6 @@ declare const ModalWrapperFooter: (props: any) => JSX.Element;
|
|
|
1376
1372
|
* ```
|
|
1377
1373
|
*/
|
|
1378
1374
|
export declare const ModalWrapper: FC<ModalWrapperProps> & ModalWrapperStaticMethods;
|
|
1379
|
-
/**
|
|
1380
|
-
* modal弹窗模型
|
|
1381
|
-
* @param key 唯一值必传
|
|
1382
|
-
* @returns
|
|
1383
|
-
*
|
|
1384
|
-
* ```
|
|
1385
|
-
* 使用方式
|
|
1386
|
-
* const [modalState, modalActions] = createModalWrapperModel('key值').useStore();
|
|
1387
|
-
* ```
|
|
1388
|
-
*/
|
|
1389
|
-
export declare const createModalWrapperModel: (key: string) => API<ModelType<ModalStateType, ModalActionsParamType, any>>;
|
|
1390
1375
|
export type PageFixedFooterProps = {
|
|
1391
1376
|
className?: string;
|
|
1392
1377
|
style?: CSSProperties;
|
|
@@ -1397,8 +1382,6 @@ export type Page404Props = {
|
|
|
1397
1382
|
message?: string;
|
|
1398
1383
|
};
|
|
1399
1384
|
export declare const Page404: (props: Page404Props) => JSX.Element;
|
|
1400
|
-
export declare const getPermissionList: () => string[];
|
|
1401
|
-
export declare const hasPermission: (name?: string) => boolean;
|
|
1402
1385
|
export interface PermissionProps {
|
|
1403
1386
|
name?: string;
|
|
1404
1387
|
children?: ReactNode | ReactNode[];
|
|
@@ -1524,7 +1507,7 @@ export type TRelationTreeOperate = {
|
|
|
1524
1507
|
add: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeRelationItem) => void;
|
|
1525
1508
|
addChildren: (soruceData: TRelationTreeCustomData, initialData: TRelationTreeData) => void;
|
|
1526
1509
|
remove: (uid: string) => void;
|
|
1527
|
-
onChange: (name: string, value:
|
|
1510
|
+
onChange: (name: string, value: TAny) => void;
|
|
1528
1511
|
};
|
|
1529
1512
|
export declare const RelationTree: (props: RelationTreeProps) => JSX.Element;
|
|
1530
1513
|
export type RollLocationCenterProps = {
|
|
@@ -1596,7 +1579,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
1596
1579
|
* 通过服务获取数据异常回调
|
|
1597
1580
|
*/
|
|
1598
1581
|
onSelectorRequestError?: (error: Error) => void;
|
|
1599
|
-
requestMessageConfig?:
|
|
1582
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1600
1583
|
};
|
|
1601
1584
|
/**
|
|
1602
1585
|
* 选择器简单包装组件
|
|
@@ -1638,7 +1621,7 @@ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
1638
1621
|
* 通过服务获取数据异常回调
|
|
1639
1622
|
*/
|
|
1640
1623
|
onSelectorRequestError?: (error: Error) => void;
|
|
1641
|
-
requestMessageConfig?:
|
|
1624
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1642
1625
|
};
|
|
1643
1626
|
/**
|
|
1644
1627
|
* 选择器简单包装组件
|
|
@@ -1698,6 +1681,7 @@ export interface SmsCountDownProps {
|
|
|
1698
1681
|
className?: string;
|
|
1699
1682
|
}
|
|
1700
1683
|
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
1684
|
+
export declare const styles: () => void;
|
|
1701
1685
|
export type SwitchWrapperValue = string | number | boolean;
|
|
1702
1686
|
export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked" | "onChange"> & {
|
|
1703
1687
|
value?: SwitchWrapperValue;
|
|
@@ -1908,12 +1892,12 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
1908
1892
|
value?: string;
|
|
1909
1893
|
onChange?: (value?: string) => void;
|
|
1910
1894
|
/**
|
|
1911
|
-
* 1. minTime、maxTime设置为 DayjsTimeTypeEnum,默认格式:
|
|
1895
|
+
* 1. minTime、maxTime设置为 DayjsTimeTypeEnum,默认格式:HH:mm:ss
|
|
1912
1896
|
* 2. minTime、maxTime格式必须与 format 相同
|
|
1913
1897
|
*/
|
|
1914
1898
|
disabledTimeConfig?: {
|
|
1915
|
-
minTime?:
|
|
1916
|
-
maxTime?:
|
|
1899
|
+
minTime?: TDayjsTimeType;
|
|
1900
|
+
maxTime?: TDayjsTimeType;
|
|
1917
1901
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1918
1902
|
disabledHourList?: number[];
|
|
1919
1903
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -1921,7 +1905,7 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
1921
1905
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1922
1906
|
disabledSecondList?: number[];
|
|
1923
1907
|
};
|
|
1924
|
-
format?:
|
|
1908
|
+
format?: TDayjsTimeType;
|
|
1925
1909
|
};
|
|
1926
1910
|
/**
|
|
1927
1911
|
* TimePicker组件包装
|
|
@@ -1944,12 +1928,12 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
1944
1928
|
string
|
|
1945
1929
|
]) => void;
|
|
1946
1930
|
/**
|
|
1947
|
-
* 1. minTime、maxTime设置格式,默认格式:
|
|
1931
|
+
* 1. minTime、maxTime设置格式,默认格式:HH:mm:ss
|
|
1948
1932
|
* 2. minTime、maxTime格式必须与 format 相同
|
|
1949
1933
|
*/
|
|
1950
1934
|
disabledTimeConfig?: {
|
|
1951
|
-
minTime?:
|
|
1952
|
-
maxTime?:
|
|
1935
|
+
minTime?: TDayjsTimeType;
|
|
1936
|
+
maxTime?: TDayjsTimeType;
|
|
1953
1937
|
/** 禁用 小时 刻度列表,与日期无关 */
|
|
1954
1938
|
disabledHourList?: number[];
|
|
1955
1939
|
/** 禁用 分钟 刻度列表,与日期无关 */
|
|
@@ -1957,7 +1941,7 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
1957
1941
|
/** 禁用 秒钟 刻度列表,与日期无关 */
|
|
1958
1942
|
disabledSecondList?: number[];
|
|
1959
1943
|
};
|
|
1960
|
-
format?:
|
|
1944
|
+
format?: TDayjsTimeType;
|
|
1961
1945
|
};
|
|
1962
1946
|
/**
|
|
1963
1947
|
* TimePicker组件包装
|
|
@@ -1996,11 +1980,11 @@ export type TreeSelectorWrapperValue = string | number | Array<string | number>
|
|
|
1996
1980
|
export type TreeSelectorServiceConfig = {
|
|
1997
1981
|
params?: TPlainObject;
|
|
1998
1982
|
requiredParamsKeys?: string[];
|
|
1999
|
-
onRequest?: (params?:
|
|
1983
|
+
onRequest?: (params?: TAny) => TAny;
|
|
2000
1984
|
/**
|
|
2001
1985
|
* 响应数据适配器
|
|
2002
1986
|
*/
|
|
2003
|
-
onRequestResultAdapter?: (respData:
|
|
1987
|
+
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
2004
1988
|
};
|
|
2005
1989
|
export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys" | "treeData" | "loading" | "onTreeExpand" | "onChange" | "value" | "fieldNames"> & {
|
|
2006
1990
|
modelKey: string;
|
|
@@ -2053,7 +2037,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
2053
2037
|
* tree item 数据适配器
|
|
2054
2038
|
*/
|
|
2055
2039
|
onTreeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
2056
|
-
requestMessageConfig?:
|
|
2040
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2057
2041
|
/**
|
|
2058
2042
|
* value格式
|
|
2059
2043
|
*```
|
|
@@ -2166,7 +2150,7 @@ export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "on
|
|
|
2166
2150
|
* 是否必选,最后一个不能取消
|
|
2167
2151
|
*/
|
|
2168
2152
|
required?: boolean;
|
|
2169
|
-
requestMessageConfig?:
|
|
2153
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2170
2154
|
/**
|
|
2171
2155
|
* value格式
|
|
2172
2156
|
*```
|
|
@@ -2263,7 +2247,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
2263
2247
|
* 是否必选,最后一个不能取消
|
|
2264
2248
|
*/
|
|
2265
2249
|
required?: boolean | undefined;
|
|
2266
|
-
requestMessageConfig?:
|
|
2250
|
+
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
2267
2251
|
/**
|
|
2268
2252
|
* value格式
|
|
2269
2253
|
*```
|