@flatbiz/antd 4.5.51 → 4.5.53
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/copy-wrapper/index.css +0 -0
- package/esm/copy-wrapper/index.js +6 -0
- package/esm/copy-wrapper/index.js.map +1 -0
- package/esm/delete-node/index.js +1 -1
- package/esm/delete-node/index.js.map +1 -1
- package/esm/dialog-drawer/index.js +1 -1
- package/esm/dialog-drawer/index.js.map +1 -1
- package/esm/dialog-modal/index.js +1 -1
- package/esm/dialog-modal/index.js.map +1 -1
- package/esm/easy-table/index.css +1 -1
- package/esm/easy-table/index.js +2 -2
- package/esm/easy-table/index.js.map +1 -1
- package/esm/editable-card/index.js +1 -1
- package/esm/editable-card/index.js.map +1 -1
- package/esm/fba-app/index.js +1 -1
- package/esm/fba-app/index.js.map +1 -1
- package/esm/full-screen/index.css +1 -0
- package/esm/full-screen/index.js +5 -0
- package/esm/full-screen/index.js.map +1 -0
- package/esm/icon-wrapper/index.js +1 -1
- package/esm/icon-wrapper/index.js.map +1 -1
- package/esm/index.js +3 -1
- package/esm/selector-wrapper/index.js +1 -1
- package/esm/selector-wrapper/index.js.map +1 -1
- package/esm/table-cell-render/index.js +1 -1
- package/esm/table-cell-render/index.js.map +1 -1
- package/esm/tag-list-render/index.js +1 -1
- package/esm/tag-list-render/index.js.map +1 -1
- package/esm/tree-selector-wrapper/index.js +1 -1
- package/esm/tree-selector-wrapper/index.js.map +1 -1
- package/esm/tree-wrapper/index.js +1 -1
- package/esm/tree-wrapper/index.js.map +1 -1
- package/index.d.ts +105 -9
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -474,6 +474,9 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
474
474
|
size?: "small" | "middle" | "large" | null;
|
|
475
475
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
476
476
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
477
|
+
/**
|
|
478
|
+
* content只在第一次弹起时,执行一次
|
|
479
|
+
*/
|
|
477
480
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
478
481
|
onClose: TNoopDefine;
|
|
479
482
|
}) => ReactElement);
|
|
@@ -605,6 +608,13 @@ export interface ButtonOperateProps {
|
|
|
605
608
|
gap?: number;
|
|
606
609
|
/** 折叠合拢属性 */
|
|
607
610
|
dropdownMenuProps?: Omit<DropdownMenuWrapperProps, "menuList">;
|
|
611
|
+
/**
|
|
612
|
+
* 按钮布局尺寸
|
|
613
|
+
* ```
|
|
614
|
+
* 1. 设置为small后,gap、split 配置失效
|
|
615
|
+
* ```
|
|
616
|
+
*/
|
|
617
|
+
size?: "small" | "default";
|
|
608
618
|
}
|
|
609
619
|
export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
|
|
610
620
|
content: ReactNode;
|
|
@@ -868,6 +878,29 @@ export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange
|
|
|
868
878
|
viewMinWidth?: number;
|
|
869
879
|
};
|
|
870
880
|
export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
881
|
+
export type CopyWrapperProps = {
|
|
882
|
+
copyText: string | (() => string);
|
|
883
|
+
/** 复制后提示消息 */
|
|
884
|
+
copyAfterMsg?: string;
|
|
885
|
+
/** 复制鼠标悬浮提示
|
|
886
|
+
* ```
|
|
887
|
+
* hoverTips={(trigger) => {
|
|
888
|
+
* return trigger ? '复制成功' : '复制数据';
|
|
889
|
+
* }}
|
|
890
|
+
* ```
|
|
891
|
+
*/
|
|
892
|
+
hoverTips?: string | ((trigger: any) => string);
|
|
893
|
+
/** 设置icon后失效 */
|
|
894
|
+
iconStyle?: CSSProperties;
|
|
895
|
+
/** 自定义文本,显示在复制图标前或后 */
|
|
896
|
+
text?: ReactNode;
|
|
897
|
+
hiddenTips?: boolean;
|
|
898
|
+
/** 自定义复制icon图标 */
|
|
899
|
+
icon?: ReactNode;
|
|
900
|
+
/** 复制图标位置,text 为空时,此配置无效 */
|
|
901
|
+
iconPosition?: "left" | "right";
|
|
902
|
+
};
|
|
903
|
+
export declare const CopyWrapper: (props: CopyWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
871
904
|
export interface DrawerStateType {
|
|
872
905
|
title: string;
|
|
873
906
|
/**
|
|
@@ -1324,6 +1357,9 @@ export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
1324
1357
|
cancelText?: string | ReactElement;
|
|
1325
1358
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1326
1359
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1360
|
+
/**
|
|
1361
|
+
* content只在第一次弹起时,执行一次
|
|
1362
|
+
*/
|
|
1327
1363
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
1328
1364
|
onClose: TNoopDefine;
|
|
1329
1365
|
}) => ReactElement);
|
|
@@ -1959,8 +1995,13 @@ export type SelectorServiceConfig = {
|
|
|
1959
1995
|
export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundContent" | "options" | "fieldNames" | "onChange" | "value" | "loading" | "mode"> & {
|
|
1960
1996
|
/** 不支持 tags 模式,tags模式请使用 SelectorWrapperSimple 组件 */
|
|
1961
1997
|
mode?: "multiple";
|
|
1962
|
-
/**
|
|
1963
|
-
|
|
1998
|
+
/**
|
|
1999
|
+
* 设置请求唯一值
|
|
2000
|
+
* ```
|
|
2001
|
+
* 1. 设置后,如果请求入参不变,不会重复请求接口,直接使用上次缓存数据
|
|
2002
|
+
* ```
|
|
2003
|
+
*/
|
|
2004
|
+
modelKey?: string;
|
|
1964
2005
|
/**
|
|
1965
2006
|
* 参数Key映射
|
|
1966
2007
|
* ```
|
|
@@ -2038,6 +2079,11 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
|
|
|
2038
2079
|
* 1. true: 在 modelKey下使用请求参数缓存数据,如果相同modelKey、相同请求参数直接使用缓存数据
|
|
2039
2080
|
* 2. false: 每次都调用接口,不参与缓存数据、不使用缓存数据
|
|
2040
2081
|
* 3. useCache=false 在 serviceConfig.requiredParamsKeys.length > 0 有效
|
|
2082
|
+
*
|
|
2083
|
+
* @deprecated 已废弃
|
|
2084
|
+
*
|
|
2085
|
+
* ```
|
|
2086
|
+
* 1. 需要缓存设置 modelKey,不需要不设置
|
|
2041
2087
|
* ```
|
|
2042
2088
|
*/
|
|
2043
2089
|
useCache?: boolean;
|
|
@@ -3217,7 +3263,7 @@ export type EasyTableFilterProps = {
|
|
|
3217
3263
|
defaultResetButtonTriggerRequest?: boolean;
|
|
3218
3264
|
easyFormProps?: Omit<EasyFormProps, "isPure" | "column" | "forceColumn" | "width" | "gridGutter" | "children">;
|
|
3219
3265
|
};
|
|
3220
|
-
export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey" | "columns"> & {
|
|
3266
|
+
export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey" | "columns" | "title"> & {
|
|
3221
3267
|
children?: ReactElement | ReactElement[];
|
|
3222
3268
|
/**
|
|
3223
3269
|
* 表格行 key 的取值,
|
|
@@ -3253,6 +3299,10 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
3253
3299
|
* @version 4.4.6
|
|
3254
3300
|
*/
|
|
3255
3301
|
emptyShowSize?: "small" | "large";
|
|
3302
|
+
/** 标题 */
|
|
3303
|
+
title?: ReactNode;
|
|
3304
|
+
/** 动作 */
|
|
3305
|
+
actions?: ReactElement[];
|
|
3256
3306
|
};
|
|
3257
3307
|
/**
|
|
3258
3308
|
* 对 查询条件+表格数据 进行深度封装,内置数据交互处理
|
|
@@ -3464,6 +3514,9 @@ export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
3464
3514
|
cancelText?: string | ReactElement;
|
|
3465
3515
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3466
3516
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3517
|
+
/**
|
|
3518
|
+
* content只在第一次弹起时,执行一次
|
|
3519
|
+
*/
|
|
3467
3520
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
3468
3521
|
onClose: DrawerProps["onClose"];
|
|
3469
3522
|
}) => ReactElement);
|
|
@@ -3495,6 +3548,9 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
3495
3548
|
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3496
3549
|
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3497
3550
|
onClose?: () => void;
|
|
3551
|
+
/**
|
|
3552
|
+
* content只在第一次弹起时,执行一次
|
|
3553
|
+
*/
|
|
3498
3554
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
3499
3555
|
onClose: TNoopDefine;
|
|
3500
3556
|
}) => ReactElement);
|
|
@@ -4122,6 +4178,31 @@ export type FormListWrapperProps = {
|
|
|
4122
4178
|
* ```
|
|
4123
4179
|
*/
|
|
4124
4180
|
export declare const FormListWrapper: (props: FormListWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
4181
|
+
export interface FullScreenHandleProps {
|
|
4182
|
+
active: boolean;
|
|
4183
|
+
toggle: () => void;
|
|
4184
|
+
}
|
|
4185
|
+
export type FullScreenProps = {
|
|
4186
|
+
children: ReactElement;
|
|
4187
|
+
handle: FullScreenHandleProps;
|
|
4188
|
+
className?: string;
|
|
4189
|
+
style?: CSSProperties;
|
|
4190
|
+
};
|
|
4191
|
+
/**
|
|
4192
|
+
* 全屏显示(点击键盘ESC可关闭全屏显示)
|
|
4193
|
+
*
|
|
4194
|
+
* ```
|
|
4195
|
+
* const handle = FullScreen.useFullScreenHandle();
|
|
4196
|
+
*
|
|
4197
|
+
* <FullScreen handle={handle}>
|
|
4198
|
+
* 包裹需要全屏的元素
|
|
4199
|
+
* <Button onClick={handle.toggle}>全屏</Button>
|
|
4200
|
+
* </FullScreen>
|
|
4201
|
+
* ```
|
|
4202
|
+
*/
|
|
4203
|
+
export declare const FullScreen: ((props: FullScreenProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4204
|
+
useFullScreenHandle: () => FullScreenHandleProps;
|
|
4205
|
+
};
|
|
4125
4206
|
export type GapProps = {
|
|
4126
4207
|
height?: number;
|
|
4127
4208
|
width?: number;
|
|
@@ -4136,15 +4217,16 @@ export type GapProps = {
|
|
|
4136
4217
|
*/
|
|
4137
4218
|
export declare const Gap: (props: GapProps) => import("react/jsx-runtime").JSX.Element;
|
|
4138
4219
|
export type IconWrapperProps = {
|
|
4139
|
-
hoverTips?: string |
|
|
4220
|
+
hoverTips?: string | ReactElement;
|
|
4140
4221
|
/**
|
|
4141
4222
|
* 提示类型
|
|
4142
4223
|
* @default 'tooltip'
|
|
4143
4224
|
*/
|
|
4144
4225
|
tipsType?: "popover" | "tooltip";
|
|
4145
|
-
icon?:
|
|
4226
|
+
icon?: ReactNode;
|
|
4146
4227
|
style?: CSSProperties;
|
|
4147
|
-
|
|
4228
|
+
wrapperStyle?: CSSProperties;
|
|
4229
|
+
text?: string | ReactElement;
|
|
4148
4230
|
className?: string;
|
|
4149
4231
|
size?: "small" | "middle" | "large";
|
|
4150
4232
|
onClick?: (event: any) => void;
|
|
@@ -5829,6 +5911,8 @@ export type TagListRenderProps = {
|
|
|
5829
5911
|
foldShowAllTag?: boolean;
|
|
5830
5912
|
/** 所有tag背景匹配此颜色,在colorMap为空、dataList中未配置color的情况下有效果 */
|
|
5831
5913
|
tagColor?: string;
|
|
5914
|
+
/** 未匹配到color时,是否显示Tag效果,默认值:true */
|
|
5915
|
+
noColorShowTag?: boolean;
|
|
5832
5916
|
};
|
|
5833
5917
|
/**
|
|
5834
5918
|
* 在列表数据dataList中通过value匹配数据,以Tag形式展示
|
|
@@ -6122,8 +6206,13 @@ export type TreeLoadDataServiceConfig = {
|
|
|
6122
6206
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
6123
6207
|
};
|
|
6124
6208
|
export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "fieldNames" | "multiple" | "loadData" | "icon" | "defaultCheckedKeys" | "defaultExpandParent" | "defaultSelectedKeys"> & {
|
|
6125
|
-
/**
|
|
6126
|
-
|
|
6209
|
+
/**
|
|
6210
|
+
* 设置请求唯一值
|
|
6211
|
+
* ```
|
|
6212
|
+
* 1. 设置后,如果请求入参不变,不会重复请求接口,直接使用上次缓存数据
|
|
6213
|
+
* ```
|
|
6214
|
+
*/
|
|
6215
|
+
modelKey?: string;
|
|
6127
6216
|
/**
|
|
6128
6217
|
* 字段映射
|
|
6129
6218
|
* ```
|
|
@@ -6370,6 +6459,7 @@ export type TreeWrapperRefApi = {
|
|
|
6370
6459
|
onExpandedAll: () => void;
|
|
6371
6460
|
/** 取消展开所有 */
|
|
6372
6461
|
onCancelExpandedAll: () => void;
|
|
6462
|
+
onRefresh: () => void;
|
|
6373
6463
|
};
|
|
6374
6464
|
/**
|
|
6375
6465
|
* Tree包装组件,默认返回父节点,可配置不返回
|
|
@@ -6501,7 +6591,13 @@ export type TreeSelectorServiceConfig = {
|
|
|
6501
6591
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
6502
6592
|
};
|
|
6503
6593
|
export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys" | "treeData" | "loading" | "onTreeExpand" | "onChange" | "value" | "fieldNames" | "defaultValue" | "treeDataSimpleMode" | "onSearch"> & {
|
|
6504
|
-
|
|
6594
|
+
/**
|
|
6595
|
+
* 设置请求唯一值
|
|
6596
|
+
* ```
|
|
6597
|
+
* 1. 设置后,如果请求入参不变,不会重复请求接口,直接使用上次缓存数据
|
|
6598
|
+
* ```
|
|
6599
|
+
*/
|
|
6600
|
+
modelKey?: string;
|
|
6505
6601
|
fieldNames?: {
|
|
6506
6602
|
/**
|
|
6507
6603
|
* 1. list 为 onRequest 返回数据中列表key值,可多级取值,例如: 'a.b.c'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.53",
|
|
4
4
|
"description": "flat-biz ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"simple-mind-map": "^0.10.6",
|
|
78
78
|
"sql-formatter": "^15.0.2",
|
|
79
79
|
"use-intl": "3.0.0-rc.6",
|
|
80
|
-
"xml-formatter": "^3.6.2"
|
|
80
|
+
"xml-formatter": "^3.6.2",
|
|
81
|
+
"copy-to-clipboard": "^3.3.3"
|
|
81
82
|
},
|
|
82
83
|
"gitHead": "4378d433b73ee28fd7cb4c64bed8571f993eb5a9"
|
|
83
84
|
}
|