@flatbiz/antd 3.0.11 → 3.0.13
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/cjs/index.css +30 -0
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +23 -10
- package/package.json +2 -2
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;
|
|
@@ -94,13 +96,14 @@ export declare type CascaderWrapperRefApi = {
|
|
|
94
96
|
getCascaderList: () => TPlainObject[];
|
|
95
97
|
};
|
|
96
98
|
/**
|
|
97
|
-
*
|
|
99
|
+
* 级联选择器包装组件,接收value和相应data都是叶子节点数据
|
|
98
100
|
* @param props
|
|
99
101
|
* @returns
|
|
100
102
|
* ```
|
|
101
|
-
* 1.
|
|
102
|
-
* 2.
|
|
103
|
-
* 3.
|
|
103
|
+
* 1. 数据源中 value 不能重复
|
|
104
|
+
* 2. 不支持多选
|
|
105
|
+
* 3. modelKey的配置是为了缓存数据,只缓存初始化数据,如果isDynamicLoad=true,动态获取的数据不再缓存
|
|
106
|
+
* 4. onChange操作第一个参数返回叶子节点value,第二个参数返回选中的多级数据
|
|
104
107
|
* ```
|
|
105
108
|
*/
|
|
106
109
|
export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<Omit<CascaderProps<any>, "value" | "loading" | "multiple" | "options" | "onChange" | "notFoundContent"> & {
|
|
@@ -218,7 +221,7 @@ export declare type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "n
|
|
|
218
221
|
* ```
|
|
219
222
|
*/
|
|
220
223
|
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => JSX.Element;
|
|
221
|
-
export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "visible" | "open"> & {
|
|
224
|
+
export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "visible" | "open" | "footer"> & {
|
|
222
225
|
okText?: string | ReactElement;
|
|
223
226
|
cancelText?: string | ReactElement;
|
|
224
227
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
@@ -230,6 +233,7 @@ export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" |
|
|
|
230
233
|
okButtonExtraProps?: Omit<ButtonProps, "onClick" | "children" | "loading">;
|
|
231
234
|
cancelButtonExtraProps?: Omit<ButtonProps, "onClick" | "children">;
|
|
232
235
|
operatePosition?: "header" | "footer";
|
|
236
|
+
operateRender?: (form: FormInstance) => ReactElement;
|
|
233
237
|
};
|
|
234
238
|
/**
|
|
235
239
|
* 函数式调用弹框;初始化后,内容无法更新
|
|
@@ -260,8 +264,7 @@ export declare type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" |
|
|
|
260
264
|
* },
|
|
261
265
|
* });
|
|
262
266
|
* 注意:
|
|
263
|
-
* 1.
|
|
264
|
-
* 1. operatePosition='header' 设置extra后 onOk、onCancel、okText、cancelText、okButtonExtraProps、cancelButtonExtraProps配置失效
|
|
267
|
+
* 1. 设置operateRender后,需要自定义操作按钮,onOk、onCancel、okText、cancelText、okButtonExtraProps、cancelButtonExtraProps配置失效
|
|
265
268
|
* ```
|
|
266
269
|
*/
|
|
267
270
|
export declare const dialogDrawer: {
|
|
@@ -1157,7 +1160,7 @@ export declare type PageFixedFooterProps = {
|
|
|
1157
1160
|
export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element;
|
|
1158
1161
|
export declare const Page404: () => JSX.Element;
|
|
1159
1162
|
export declare const getPermissionList: () => string[];
|
|
1160
|
-
export declare const hasPermission: (name
|
|
1163
|
+
export declare const hasPermission: (name?: string) => boolean;
|
|
1161
1164
|
export interface PermissionProps {
|
|
1162
1165
|
name?: string;
|
|
1163
1166
|
children?: ReactNode | ReactNode[];
|
|
@@ -1181,6 +1184,11 @@ export declare const preDefinedClassName: {
|
|
|
1181
1184
|
label_width_130: string;
|
|
1182
1185
|
label_width_140: string;
|
|
1183
1186
|
label_width_150: string;
|
|
1187
|
+
label_width_160: string;
|
|
1188
|
+
label_width_170: string;
|
|
1189
|
+
label_width_180: string;
|
|
1190
|
+
label_width_190: string;
|
|
1191
|
+
label_width_200: string;
|
|
1184
1192
|
label_width_auto: string;
|
|
1185
1193
|
label_align_left: string;
|
|
1186
1194
|
label_align_right: string;
|
|
@@ -1195,6 +1203,11 @@ export declare const preDefinedClassName: {
|
|
|
1195
1203
|
label_width_130: string;
|
|
1196
1204
|
label_width_140: string;
|
|
1197
1205
|
label_width_150: string;
|
|
1206
|
+
label_width_160: string;
|
|
1207
|
+
label_width_170: string;
|
|
1208
|
+
label_width_180: string;
|
|
1209
|
+
label_width_190: string;
|
|
1210
|
+
label_width_200: string;
|
|
1198
1211
|
label_width_auto: string;
|
|
1199
1212
|
label_align_left: string;
|
|
1200
1213
|
label_align_right: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
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": "5f32660ca70cc554f0a07c878c267f4d0d9b557b"
|
|
57
57
|
}
|