@flatbiz/antd 4.5.45 → 4.5.47
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/button-operate/index.js +1 -1
- package/esm/button-operate/index.js.map +1 -1
- package/esm/dialog-drag-modal/index.css +1 -0
- package/esm/dialog-drag-modal/index.js +12 -0
- package/esm/dialog-drag-modal/index.js.map +1 -0
- package/esm/index.js +2 -1
- package/esm/tabs-wrapper/index.css +1 -1
- package/esm/tree-modal-selector/index.js +1 -1
- package/esm/tree-modal-selector/index.js.map +1 -1
- package/esm/tree-wrapper/index.js +1 -1
- package/esm/tree-wrapper/index.js.map +1 -1
- package/esm/upload-wrapper/index.js +1 -1
- package/esm/upload-wrapper/index.js.map +1 -1
- package/index.d.ts +84 -2
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -556,6 +556,8 @@ export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
|
556
556
|
/** 是否折叠合拢 */
|
|
557
557
|
isFold?: boolean;
|
|
558
558
|
confirmModalProps?: DialogModalProps;
|
|
559
|
+
/** 是否显示按钮,优先级高于 hidden */
|
|
560
|
+
show?: boolean;
|
|
559
561
|
}
|
|
560
562
|
export interface ButtonOperateProps {
|
|
561
563
|
className?: string;
|
|
@@ -1236,6 +1238,64 @@ export declare const dialogConfirm: {
|
|
|
1236
1238
|
close: () => void;
|
|
1237
1239
|
};
|
|
1238
1240
|
};
|
|
1241
|
+
export type DialogDragModalProps = {
|
|
1242
|
+
/** 相同的modalKey,最多只有一个弹起状态 */
|
|
1243
|
+
modalKey?: string;
|
|
1244
|
+
className?: string;
|
|
1245
|
+
style?: CSSProperties;
|
|
1246
|
+
styles?: {
|
|
1247
|
+
header?: CSSProperties;
|
|
1248
|
+
body?: CSSProperties;
|
|
1249
|
+
footer?: CSSProperties;
|
|
1250
|
+
};
|
|
1251
|
+
width?: number;
|
|
1252
|
+
bodyHeight?: number;
|
|
1253
|
+
/** 触发弹起点击事件event,用于计算鼠标位置 */
|
|
1254
|
+
event?: React.MouseEvent<HTMLElement>;
|
|
1255
|
+
/** 定义弹出层距离触发点的x轴偏移量 */
|
|
1256
|
+
xOffset?: number;
|
|
1257
|
+
title?: string;
|
|
1258
|
+
okText?: string | ReactElement;
|
|
1259
|
+
cancelText?: string | ReactElement;
|
|
1260
|
+
okHidden?: boolean;
|
|
1261
|
+
cancelHidden?: boolean;
|
|
1262
|
+
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1263
|
+
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1264
|
+
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
1265
|
+
onClose: TNoopDefine;
|
|
1266
|
+
}) => ReactElement);
|
|
1267
|
+
/** 覆盖当前footer,自定义操作按钮 */
|
|
1268
|
+
footer?: null | ((form: FormInstance, operate: {
|
|
1269
|
+
onClose: TNoopDefine;
|
|
1270
|
+
}) => ReactElement);
|
|
1271
|
+
/** 当前footer操作按钮,左侧扩展 */
|
|
1272
|
+
footerOperateBeforeRender?: (form: FormInstance, operate: {
|
|
1273
|
+
onClose: TNoopDefine;
|
|
1274
|
+
}) => ReactElement;
|
|
1275
|
+
/** 当前footer操作按钮,右侧扩展 */
|
|
1276
|
+
footerOperateAfterRender?: (form: FormInstance, operate: {
|
|
1277
|
+
onClose: TNoopDefine;
|
|
1278
|
+
}) => ReactElement;
|
|
1279
|
+
};
|
|
1280
|
+
/**
|
|
1281
|
+
* 可移动弹框
|
|
1282
|
+
* ```
|
|
1283
|
+
* 1. 设置 event 后,弹起位置受鼠标点击位置控制
|
|
1284
|
+
* 2. 相同的modalKey,最多只有一个弹起状态
|
|
1285
|
+
* ```
|
|
1286
|
+
*/
|
|
1287
|
+
export declare const dialogDragModal: {
|
|
1288
|
+
open: (props: DialogDragModalProps) => {
|
|
1289
|
+
close: () => void;
|
|
1290
|
+
} | undefined;
|
|
1291
|
+
/**
|
|
1292
|
+
* ```
|
|
1293
|
+
* 1. 关闭最新弹框,如果有多个弹框只能关闭最后一个
|
|
1294
|
+
* 2. 多个弹框主动关闭,只能使用 dialogDrawer.open()返回值中的close
|
|
1295
|
+
* ```
|
|
1296
|
+
*/
|
|
1297
|
+
close: (modalKey?: string) => void;
|
|
1298
|
+
};
|
|
1239
1299
|
export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "footer" | "extra"> & {
|
|
1240
1300
|
okText?: string | ReactElement;
|
|
1241
1301
|
cancelText?: string | ReactElement;
|
|
@@ -2031,7 +2091,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2031
2091
|
autoSubmit?: boolean;
|
|
2032
2092
|
/** 图片预览开关, 重写 onPreview 方法后失效 */
|
|
2033
2093
|
imagePreviewSwitch?: boolean;
|
|
2034
|
-
/** 图片预览文件类型,默认:['png', 'jpg', 'jpeg', 'gif'] */
|
|
2094
|
+
/** 图片预览文件类型,默认:['png', 'jpg', 'jpeg', 'gif', 'heic', 'heif'] */
|
|
2035
2095
|
imagePreviewAccept?: string[];
|
|
2036
2096
|
/**
|
|
2037
2097
|
* 配置文件额外操作
|
|
@@ -6348,6 +6408,12 @@ export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRen
|
|
|
6348
6408
|
disabled?: boolean;
|
|
6349
6409
|
allowClear?: boolean;
|
|
6350
6410
|
};
|
|
6411
|
+
export type TreeModalSelectorApi = {
|
|
6412
|
+
getDataSourceMap: () => {
|
|
6413
|
+
treeDataList: TPlainObject[];
|
|
6414
|
+
dataSourceMap: TPlainObject;
|
|
6415
|
+
};
|
|
6416
|
+
};
|
|
6351
6417
|
/**
|
|
6352
6418
|
* 树弹框选择器
|
|
6353
6419
|
* ```
|
|
@@ -6355,7 +6421,23 @@ export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRen
|
|
|
6355
6421
|
* 2. demo: https://fex.qa.tcshuke.com/docs/admin/main/selector/tree
|
|
6356
6422
|
* ```
|
|
6357
6423
|
*/
|
|
6358
|
-
export declare const TreeModalSelector:
|
|
6424
|
+
export declare const TreeModalSelector: import("react").ForwardRefExoticComponent<Omit<TreeModalProps, "children" | "onChange" | "forceRender"> & {
|
|
6425
|
+
placeholder?: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* 1. 可指定数量
|
|
6428
|
+
* 2. 可设置 responsive,一行自适应显示
|
|
6429
|
+
*/
|
|
6430
|
+
maxTagCount?: number | "responsive";
|
|
6431
|
+
/** 是否返回label+value模式 */
|
|
6432
|
+
labelInValue?: boolean;
|
|
6433
|
+
onChange?: (values?: TreeModelSelectItem[] | TreeModelSelectItem) => void;
|
|
6434
|
+
/** 最大选择数量 */
|
|
6435
|
+
maxCount?: number;
|
|
6436
|
+
/** 超过最大选择数量提示文本 */
|
|
6437
|
+
overMaxCountMsg?: string;
|
|
6438
|
+
disabled?: boolean;
|
|
6439
|
+
allowClear?: boolean;
|
|
6440
|
+
} & import("react").RefAttributes<TreeModalSelectorApi>>;
|
|
6359
6441
|
export type TreeSelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
6360
6442
|
export type TreeSelectorServiceConfig = {
|
|
6361
6443
|
params?: TPlainObject;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.47",
|
|
4
4
|
"description": "flat-biz ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@dimjs/model": ">=1.2.3",
|
|
32
32
|
"@dimjs/model-react": ">=1.2.3",
|
|
33
33
|
"@dimjs/utils": ">=1.5.1",
|
|
34
|
-
"@flatbiz/utils": ">=4.0.
|
|
34
|
+
"@flatbiz/utils": ">=4.0.33",
|
|
35
35
|
"@wove/react": ">=1.2.23",
|
|
36
36
|
"ahooks": ">=3.7.11",
|
|
37
37
|
"antd": ">=5.11.0",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"react-dom": ">=18.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@ant-design/icons": "^
|
|
43
|
+
"@ant-design/icons": "^5.0.1",
|
|
44
44
|
"@dimjs/lang": "^1.5.0",
|
|
45
45
|
"@dimjs/model": "^1.2.3",
|
|
46
46
|
"@dimjs/model-react": "^1.2.3",
|
|
47
47
|
"@dimjs/utils": "^1.5.1",
|
|
48
|
-
"@flatbiz/utils": "^4.0.
|
|
48
|
+
"@flatbiz/utils": "^4.0.33",
|
|
49
49
|
"@wove/react": "^1.2.23",
|
|
50
50
|
"ace-builds": "^1.32.2",
|
|
51
51
|
"ahooks": "^3.7.11",
|