@flatbiz/antd 4.1.4 → 4.1.6
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/index.css +1 -0
- package/esm/index.js +5 -0
- package/esm/index.js.map +1 -0
- package/index.d.ts +11 -8
- package/index.js +1 -4
- package/package.json +7 -7
- package/cjs/index.css +0 -954
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const styles: () => void;
|
|
|
20
20
|
export interface ButtonOperateItem extends ButtonProps {
|
|
21
21
|
text: string | ReactElement;
|
|
22
22
|
color?: string;
|
|
23
|
-
onClick
|
|
23
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
24
24
|
permission?: string;
|
|
25
25
|
needConfirm?: boolean;
|
|
26
26
|
confirmMessage?: string;
|
|
@@ -42,6 +42,7 @@ export interface ButtonOperateProps {
|
|
|
42
42
|
foldIcon?: ReactElement;
|
|
43
43
|
className?: string;
|
|
44
44
|
split?: boolean;
|
|
45
|
+
spaceProps?: SpaceProps;
|
|
45
46
|
}
|
|
46
47
|
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
47
48
|
export type TAny = any;
|
|
@@ -299,8 +300,8 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
299
300
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
300
301
|
okHidden?: boolean;
|
|
301
302
|
cancelHidden?: boolean;
|
|
302
|
-
okButtonProps?: Omit<
|
|
303
|
-
cancelButtonProps?: Omit<
|
|
303
|
+
okButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
|
|
304
|
+
cancelButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
|
|
304
305
|
};
|
|
305
306
|
/**
|
|
306
307
|
* 函数式调用弹框;初始化后,内容无法更新
|
|
@@ -366,8 +367,8 @@ export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
366
367
|
onClose: TNoopDefine;
|
|
367
368
|
}) => ReactElement);
|
|
368
369
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
369
|
-
okButtonExtraProps?: Omit<
|
|
370
|
-
cancelButtonExtraProps?: Omit<
|
|
370
|
+
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading" | "hidden">;
|
|
371
|
+
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "hidden">;
|
|
371
372
|
operatePosition?: "header" | "footer";
|
|
372
373
|
operateRender?: (form: FormInstance) => ReactElement;
|
|
373
374
|
okHidden?: boolean;
|
|
@@ -505,7 +506,7 @@ export declare const createDrawerWrapperModel: (key: string) => API<ModelType<Dr
|
|
|
505
506
|
export interface DropdownMenuItem extends ButtonProps {
|
|
506
507
|
text: string | ReactElement;
|
|
507
508
|
color?: string;
|
|
508
|
-
onClick
|
|
509
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
509
510
|
permission?: string;
|
|
510
511
|
needConfirm?: boolean;
|
|
511
512
|
confirmMessage?: string;
|
|
@@ -1165,7 +1166,7 @@ export declare const useSafeState: <S extends unknown>(initialState?: S | (() =>
|
|
|
1165
1166
|
S,
|
|
1166
1167
|
Dispatch<SetStateAction<S>>
|
|
1167
1168
|
];
|
|
1168
|
-
export declare const useThemeToken: () => import("antd
|
|
1169
|
+
export declare const useThemeToken: () => import("antd").GlobalToken;
|
|
1169
1170
|
export type IconWrapperProps = {
|
|
1170
1171
|
hoverTips?: string | React.ReactElement;
|
|
1171
1172
|
/**
|
|
@@ -1180,8 +1181,9 @@ export type IconWrapperProps = {
|
|
|
1180
1181
|
size?: "small" | "middle" | "large";
|
|
1181
1182
|
onClick?: (event: any) => void;
|
|
1182
1183
|
hideHoverBgColor?: boolean;
|
|
1184
|
+
hidden?: boolean;
|
|
1183
1185
|
};
|
|
1184
|
-
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element;
|
|
1186
|
+
export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element | null;
|
|
1185
1187
|
export type InputWrapperProps = Omit<InputProps, "defaultValue">;
|
|
1186
1188
|
/**
|
|
1187
1189
|
* ```
|
|
@@ -1608,6 +1610,7 @@ export type SimpleLayoutProps = {
|
|
|
1608
1610
|
width?: CSSProperties["width"];
|
|
1609
1611
|
children?: ReactNode | ReactNode[];
|
|
1610
1612
|
titleExtra?: string | ReactElement;
|
|
1613
|
+
hidden?: boolean;
|
|
1611
1614
|
};
|
|
1612
1615
|
/**
|
|
1613
1616
|
* 简单布局
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "flat-biz oss ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"
|
|
8
|
+
"esm/",
|
|
9
9
|
"index.js",
|
|
10
10
|
"index.d.ts",
|
|
11
11
|
"README.md",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=13.8.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@ant-design/icons": ">=
|
|
30
|
-
"@dimjs/lang": ">=1.2.
|
|
29
|
+
"@ant-design/icons": ">=5.0.1",
|
|
30
|
+
"@dimjs/lang": ">=1.2.33",
|
|
31
31
|
"@dimjs/model": ">=1.1.8",
|
|
32
32
|
"@dimjs/model-react": ">=1.1.8",
|
|
33
|
-
"@dimjs/utils": ">=1.2.
|
|
34
|
-
"@flatbiz/utils": ">=4.0.
|
|
33
|
+
"@dimjs/utils": ">=1.2.33",
|
|
34
|
+
"@flatbiz/utils": ">=4.0.4",
|
|
35
35
|
"@wove/react": ">=1.2.22",
|
|
36
|
-
"antd": ">=5.1
|
|
36
|
+
"antd": ">=5.2.1",
|
|
37
37
|
"dayjs": ">=1.11.7",
|
|
38
38
|
"react": ">=18.2.0",
|
|
39
39
|
"react-dom": ">=18.2.0"
|