@flatbiz/antd 3.0.12 → 3.0.14
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 +5 -3
- package/package.json +2 -2
- package/cjs/index.css +0 -742
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface ButtonOperateProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* 如果数组中使用ReactElement类型
|
|
31
31
|
* 1. 一般为antd Button组件,可设置type=link,会有设置的hover效果
|
|
32
|
-
* 2.
|
|
32
|
+
* 2. 可配置 v-permission 权限值,例如 v-permission="add"
|
|
33
|
+
* 3. 任何confirm、disabled等状态在外部控制
|
|
33
34
|
* 3. 不支持fold效果
|
|
34
35
|
*/
|
|
35
36
|
operateList: Array<ButtonOperateItem | null | ReactElement>;
|
|
@@ -42,6 +43,7 @@ export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
|
42
43
|
export declare type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
|
|
43
44
|
onClick: (e: any) => Promise<void> | void;
|
|
44
45
|
debounceDuration?: number;
|
|
46
|
+
permission?: string;
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* antd Button包装组件
|
|
@@ -50,7 +52,7 @@ export declare type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"
|
|
|
50
52
|
* @param props
|
|
51
53
|
* @returns
|
|
52
54
|
*/
|
|
53
|
-
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element;
|
|
55
|
+
export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
|
|
54
56
|
export declare type LabelValueItem<T extends string | number | boolean = string | number> = {
|
|
55
57
|
value: T;
|
|
56
58
|
label: string;
|
|
@@ -1158,7 +1160,7 @@ export declare type PageFixedFooterProps = {
|
|
|
1158
1160
|
export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element;
|
|
1159
1161
|
export declare const Page404: () => JSX.Element;
|
|
1160
1162
|
export declare const getPermissionList: () => string[];
|
|
1161
|
-
export declare const hasPermission: (name
|
|
1163
|
+
export declare const hasPermission: (name?: string) => boolean;
|
|
1162
1164
|
export interface PermissionProps {
|
|
1163
1165
|
name?: string;
|
|
1164
1166
|
children?: ReactNode | ReactNode[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "flat-biz oss ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"react": "18.2.0",
|
|
54
54
|
"react-dom": "18.2.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "89689c5c39bb84fd36642f70fb74744ddeae45e8"
|
|
57
57
|
}
|