@flatbiz/antd 3.2.15 → 3.2.17
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/index.d.ts +19 -18
- package/index.js +1 -4
- package/package.json +1 -1
- package/cjs/index.css +0 -1112
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -15,18 +15,32 @@ import { UploadFile } from 'antd/lib/upload/interface';
|
|
|
15
15
|
import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction } from 'react';
|
|
16
16
|
|
|
17
17
|
export declare const styles: () => void;
|
|
18
|
-
export
|
|
18
|
+
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading" | "hidden" | "color"> & {
|
|
19
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => Promise<void> | void;
|
|
20
|
+
debounceDuration?: number;
|
|
21
|
+
permission?: string;
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
/** loading 显示位置,默认值:left */
|
|
24
|
+
loadingPosition?: "left" | "center";
|
|
25
|
+
color?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* antd Button包装组件
|
|
29
|
+
* 1. 添加按钮 onClick 返回 Promise自定loading效果
|
|
30
|
+
* 2. 添加指定时间内重复点击无效(默认间隙时间500ms)
|
|
31
|
+
* @param props
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
35
|
+
export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
19
36
|
/** hover 提示文字 */
|
|
20
37
|
hoverTips?: string | React.ReactElement;
|
|
21
38
|
/** hover 提示类型 默认:'tooltip' */
|
|
22
39
|
tipsType?: "popover" | "tooltip";
|
|
23
40
|
text: string | ReactElement;
|
|
24
|
-
color?: string;
|
|
25
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
26
41
|
permission?: string;
|
|
27
42
|
needConfirm?: boolean;
|
|
28
43
|
confirmMessage?: string;
|
|
29
|
-
hidden?: boolean;
|
|
30
44
|
popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
|
|
31
45
|
isFold?: boolean;
|
|
32
46
|
}
|
|
@@ -46,25 +60,12 @@ export interface ButtonOperateProps {
|
|
|
46
60
|
className?: string;
|
|
47
61
|
split?: boolean;
|
|
48
62
|
spaceProps?: SpaceProps;
|
|
63
|
+
style?: CSSProperties;
|
|
49
64
|
}
|
|
50
65
|
export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
|
|
51
66
|
children?: ReactNode;
|
|
52
67
|
}) => JSX.Element;
|
|
53
68
|
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
54
|
-
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading" | "hidden"> & {
|
|
55
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => Promise<void> | void;
|
|
56
|
-
debounceDuration?: number;
|
|
57
|
-
permission?: string;
|
|
58
|
-
hidden?: boolean;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* antd Button包装组件
|
|
62
|
-
* 1. 添加按钮 onClick 返回 Promise自定loading效果
|
|
63
|
-
* 2. 添加指定时间内重复点击无效(默认间隙时间500ms)
|
|
64
|
-
* @param props
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
|
-
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
68
69
|
export type RequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
69
70
|
export type RequestStatusRenderProps = {
|
|
70
71
|
status?: RequestStatus;
|
package/index.js
CHANGED