@flatbiz/antd 5.2.0 → 5.2.1

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.
Files changed (76) hide show
  1. package/dist/ace-editor-groovy/index.d.ts +1 -0
  2. package/dist/ace-editor-java/index.d.ts +1 -0
  3. package/dist/ace-editor-json/index.d.ts +1 -0
  4. package/dist/ace-editor-xml/index.d.ts +1 -0
  5. package/dist/button-operate/index.d.ts +1 -0
  6. package/dist/button-wrapper/index.d.ts +1 -0
  7. package/dist/cascader-wrapper/index.d.ts +2 -1
  8. package/dist/check-list/index.d.ts +1 -0
  9. package/dist/css-node-hover/index.d.ts +1 -0
  10. package/dist/{date-Ce1UUrK-.js → date-BpBhtJIk.js} +2 -7
  11. package/dist/date-BpBhtJIk.js.map +1 -0
  12. package/dist/date-picker-wrapper/index.d.ts +1 -1
  13. package/dist/date-picker-wrapper/index.js +1 -1
  14. package/dist/date-range-picker-wrapper/index.d.ts +1 -0
  15. package/dist/date-range-picker-wrapper-form-item/index.d.ts +1 -0
  16. package/dist/dialog-alert/index.d.ts +1 -0
  17. package/dist/dialog-confirm/index.d.ts +1 -0
  18. package/dist/dialog-drag-modal/index.d.ts +1 -0
  19. package/dist/dialog-drawer/index.d.ts +1 -0
  20. package/dist/dialog-drawer-content/index.d.ts +1 -0
  21. package/dist/dialog-modal/index.d.ts +1 -0
  22. package/dist/{drag-BCuqujyV.js → drag-DAkMrJYP.js} +2 -2
  23. package/dist/{drag-BCuqujyV.js.map → drag-DAkMrJYP.js.map} +1 -1
  24. package/dist/drag-collapse-form-list/index.d.ts +1 -0
  25. package/dist/drag-editable-card/index.d.ts +1 -0
  26. package/dist/drag-editable-table/index.d.ts +1 -0
  27. package/dist/drag-editable-table/index.js +3 -3
  28. package/dist/drag-editable-table-pro/index.d.ts +1 -0
  29. package/dist/drag-form-list/index.d.ts +1 -0
  30. package/dist/drag-table/index.d.ts +1 -0
  31. package/dist/dropdown-menu-wrapper/index.d.ts +1 -0
  32. package/dist/easy-table/index.d.ts +9 -2
  33. package/dist/easy-table/index.js +21 -3
  34. package/dist/easy-table/index.js.map +1 -1
  35. package/dist/editable-card/index.d.ts +1 -0
  36. package/dist/editable-field/index.d.ts +1 -0
  37. package/dist/editable-table/index.d.ts +1 -0
  38. package/dist/editable-table/index.js +2 -2
  39. package/dist/{editable-table-B2dSUXSa.js → editable-table-dRs2-MRK.js} +2 -2
  40. package/dist/{editable-table-B2dSUXSa.js.map → editable-table-dRs2-MRK.js.map} +1 -1
  41. package/dist/editable-table-pro/index.d.ts +1 -0
  42. package/dist/error-boundary-wrapper/index.d.ts +1 -0
  43. package/dist/fba-app/index.d.ts +5 -4
  44. package/dist/fba-utils/index.d.ts +2 -1
  45. package/dist/file-import/index.d.ts +1 -0
  46. package/dist/form-item-text/index.d.ts +1 -0
  47. package/dist/form-item-wrapper/index.d.ts +1 -0
  48. package/dist/form-list-wrapper/index.d.ts +1 -0
  49. package/dist/index.d.ts +21 -13
  50. package/dist/index.js +3 -3
  51. package/dist/local-loading/index.d.ts +1 -0
  52. package/dist/mention-editor/index.d.ts +1 -0
  53. package/dist/number-range-form-item/index.d.ts +1 -0
  54. package/dist/relation-tree/index.d.ts +1 -0
  55. package/dist/search-form/index.d.ts +1 -0
  56. package/dist/search-menu/index.d.ts +1 -0
  57. package/dist/selector-wrapper/index.d.ts +1 -0
  58. package/dist/selector-wrapper-search/index.d.ts +1 -0
  59. package/dist/selector-wrapper-simple/index.d.ts +1 -0
  60. package/dist/styles/index.d.ts +1 -1
  61. package/dist/switch-confirm-wrapper/index.d.ts +1 -0
  62. package/dist/switch-wrapper/index.d.ts +1 -0
  63. package/dist/table-cell-render/index.d.ts +2 -1
  64. package/dist/tag-wrapper/index.d.ts +1 -0
  65. package/dist/time-range-picker-wrapper-form-item/index.d.ts +1 -0
  66. package/dist/tree-modal/index.d.ts +437 -1
  67. package/dist/tree-modal-selector/index.d.ts +1 -0
  68. package/dist/tree-selector-wrapper/index.d.ts +1 -0
  69. package/dist/tree-wrapper/index.d.ts +1 -0
  70. package/dist/tree-wrapper/index.js +7 -1
  71. package/dist/tree-wrapper/index.js.map +1 -1
  72. package/dist/types/index.d.ts +1 -1
  73. package/dist/upload-wrapper/index.d.ts +1 -0
  74. package/dist/x-mind-preview/index.d.ts +1 -0
  75. package/package.json +1 -1
  76. package/dist/date-Ce1UUrK-.js.map +0 -1
@@ -1,3 +1,439 @@
1
- export declare const TreeModal: any;
1
+ import { TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
2
+ import { ButtonProps, DropdownProps, FormInstance, ModalProps, PopconfirmProps, SpaceProps, TreeProps } from 'antd';
3
+ import { ConfigProviderProps } from 'antd/lib/config-provider/index.js';
4
+ import { CSSProperties, DependencyList, ReactElement, ReactNode } from 'react';
5
+
6
+ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
7
+ /** 当返回 Promise 时,按钮自动loading */
8
+ onClick?: (e: React.MouseEvent) => Promise<TAny> | void;
9
+ /** 重复点击间隙,单位毫秒 默认值:500 */
10
+ debounceDuration?: number;
11
+ /** 基于GLOBAL中elemAclLimits按钮权限列表,控制按钮显示、隐藏 */
12
+ permission?: string;
13
+ /** 是否隐藏按钮 */
14
+ hidden?: boolean;
15
+ /** loading 显示位置,默认值:left */
16
+ loadingPosition?: "left" | "center";
17
+ /** 移除按钮内边距,一般用于 type=link 类型下 */
18
+ removeGap?: boolean;
19
+ color?: string;
20
+ };
21
+ export type TLocale = "en" | "zh-cn";
22
+ export type TFbaLocale = {
23
+ TreeWrapper?: {
24
+ /** 数据加载异常默认文案 */
25
+ requestError?: string;
26
+ };
27
+ FbaDialogModal?: {
28
+ cancelText?: string;
29
+ };
30
+ };
31
+ export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
32
+ locale?: TLocale;
33
+ /** 自定义国际化数据 */
34
+ customLocaleMessage?: Partial<TFbaLocale>;
35
+ /** 同 fbaHooks.useCopyRemoveSpace[ignoreClass] */
36
+ copyOperateIgnoreClass?: string[];
37
+ };
38
+ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
39
+ /**
40
+ * 内置尺寸,根据比例固定高度、宽度,默认:无
41
+ * ```
42
+ * 1. 如果自定义了width、bodyHeight属性,size中的height、width将对应失效
43
+ * 2. 不传、传null值可取消内置尺寸
44
+ * ```
45
+ */
46
+ size?: "small" | "middle" | "large" | null;
47
+ onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
48
+ onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
49
+ /**
50
+ * content只在第一次弹起时,执行一次
51
+ */
52
+ content: string | ReactElement | ((form: FormInstance, operate: {
53
+ onClose: TNoopDefine;
54
+ }) => ReactElement);
55
+ configProviderProps?: ConfigProviderWrapperProps;
56
+ okHidden?: boolean;
57
+ cancelHidden?: boolean;
58
+ okButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
59
+ cancelButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
60
+ /**
61
+ * 设置modal body height 为当前窗口height的百分比,例如:30
62
+ * @deprecated 已失效,可通过size属性设置
63
+ * ```
64
+ * 1. 最大值:80
65
+ * 1. 设置bodyStyle.height 后,bodyHeightPercent失效
66
+ * ```
67
+ */
68
+ bodyHeightPercent?: number;
69
+ titleExtra?: ReactElement;
70
+ /**
71
+ * null则隐藏footer
72
+ * ```
73
+ * extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
74
+ * ```
75
+ */
76
+ footer?: null | ReactElement | ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => ReactElement);
77
+ /** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
78
+ bodyHeight?: number;
79
+ };
80
+ export interface DropdownMenuItem extends Omit<ButtonProps, "color"> {
81
+ text?: string | ReactElement;
82
+ color?: string;
83
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
84
+ permission?: string;
85
+ needConfirm?: boolean;
86
+ confirmMessage?: ReactNode;
87
+ hidden?: boolean;
88
+ confirmModalProps?: DialogModalProps;
89
+ stopPropagation?: boolean;
90
+ }
91
+ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
92
+ menuList: Array<DropdownMenuItem | null>;
93
+ /** dropdown 设置弹框根节点在body下 */
94
+ isFixed?: boolean;
95
+ }
96
+ export interface ButtonOperateItem extends ButtonWrapperProps {
97
+ /** hover 提示文字,isFold=true无效 */
98
+ hoverTips?: string | ReactElement;
99
+ /** hover 提示类型 默认:'tooltip' */
100
+ tipsType?: "popover" | "tooltip";
101
+ /** 按钮文案 */
102
+ text?: string | ReactElement;
103
+ /** 自定义按钮颜色 */
104
+ color?: string;
105
+ /** 是否需要二次弹框确认 */
106
+ needConfirm?: boolean;
107
+ /** 二次弹框确认文案 */
108
+ confirmMessage?: ReactNode;
109
+ popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
110
+ /** 是否折叠合拢 */
111
+ isFold?: boolean;
112
+ confirmModalProps?: DialogModalProps;
113
+ /** 是否显示按钮,优先级高于 hidden */
114
+ show?: boolean;
115
+ }
116
+ export interface ButtonOperateProps {
117
+ className?: string;
118
+ style?: CSSProperties;
119
+ /**
120
+ * 如果数组中元素为ReactElement类型
121
+ * 1. 一般为antd Button组件,如果组件存在属性hidden=true、v-hidden=true,则会隐藏
122
+ * 2. 可配置 v-permission 权限值,例如 v-permission="add"
123
+ * 3. 任何confirm、disabled等状态在外部控制
124
+ * 3. 不支持fold效果
125
+ */
126
+ operateList: Array<ButtonOperateItem | null | ReactElement>;
127
+ /** 是否换行,默认true */
128
+ wrap?: boolean;
129
+ /** 隐藏图标Icon */
130
+ foldIcon?: ReactElement;
131
+ /** 按钮之间是否添加分隔符 */
132
+ split?: boolean;
133
+ /** 多个按钮的包装组件Space属性 */
134
+ spaceProps?: SpaceProps;
135
+ /** 间距,默认:10;split=true配置下无效(可通过spaceProps设置间距) */
136
+ gap?: number;
137
+ /** 折叠合拢属性 */
138
+ dropdownMenuProps?: Omit<DropdownMenuWrapperProps, "menuList">;
139
+ /**
140
+ * 按钮布局尺寸
141
+ * ```
142
+ * 1. 设置为small后,gap、split 配置失效
143
+ * ```
144
+ */
145
+ size?: "small" | "default";
146
+ }
147
+ export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "request-search-keyword-empty" | "no-dependencies-params";
148
+ export type TRequestStatusProps = {
149
+ status?: TRequestStatus;
150
+ errorButton?: ReactElement;
151
+ messageConfig?: Partial<Record<TRequestStatus, string>>;
152
+ loading?: boolean;
153
+ };
154
+ export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
155
+ export type TreeServiceConfig = {
156
+ params?: TPlainObject;
157
+ requiredParamsKeys?: string[];
158
+ onRequest?: (params?: TAny) => TAny;
159
+ /**
160
+ * 响应数据适配器
161
+ */
162
+ onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
163
+ };
164
+ export type TreeLoadDataServiceConfig = {
165
+ getParams?: (dataItem: TPlainObject) => TPlainObject;
166
+ onRequest: (params: TPlainObject) => TAny;
167
+ /**
168
+ * 响应数据适配器
169
+ */
170
+ onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
171
+ };
172
+ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "fieldNames" | "multiple" | "loadData" | "icon" | "defaultCheckedKeys" | "defaultExpandParent" | "defaultSelectedKeys"> & {
173
+ /**
174
+ * 设置请求唯一值
175
+ * ```
176
+ * 1. 设置后,如果请求入参不变,不会重复请求接口,直接使用上次缓存数据
177
+ * ```
178
+ */
179
+ modelKey?: string;
180
+ /**
181
+ * 字段映射
182
+ * ```
183
+ * 默认值:
184
+ * label = 'label'
185
+ * value = 'value'
186
+ * children = 'children'
187
+ *
188
+ * 如果未设置list,则说明接口返回数据为数组
189
+ * 如果返回数据存在多级,可通过设置 list='a.b.list'
190
+ * ```
191
+ */
192
+ fieldNames?: {
193
+ label?: string;
194
+ value?: string;
195
+ children?: string;
196
+ list?: string;
197
+ };
198
+ /**
199
+ * useEffect依赖项数组,用于重新发起获取接口数据
200
+ */
201
+ effectDependencyList?: DependencyList;
202
+ /**
203
+ * 请求服务需求的数据,当设置`selectorTreeList`后无效果
204
+ */
205
+ serviceConfig?: TreeServiceConfig;
206
+ /**
207
+ * 是否开启异步加载
208
+ */
209
+ loadDataFlag?: boolean;
210
+ /**
211
+ * 异步加载数据配置
212
+ * ```
213
+ * 1. 会通过fieldNames配置label、value、children进行转义
214
+ * 2. fieldNames.list 配置在此处无效
215
+ * ```
216
+ */
217
+ loadDataServiceConfig?: TreeLoadDataServiceConfig;
218
+ /**
219
+ * 当设置selectorTreeList后,serviceConfig将失效
220
+ * ```
221
+ * 1. 不支持异步数据,异步使用serviceConfig方式
222
+ * ```
223
+ */
224
+ selectorTreeList?: TPlainObject[];
225
+ /**
226
+ * 通过服务获取数据后回调,当设置`selectorList`后无效果
227
+ * ```
228
+ * 相同modelKey,同时发起多个渲染时,只有第一个会执行 onSelectorTreeListChange 回调
229
+ * ```
230
+ */
231
+ onSelectorTreeListChange?: (dataList: TPlainObject[]) => void;
232
+ /** 接口响应数据变更 */
233
+ onRequestResponseChange?: (data: TAny) => void;
234
+ onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[], extraData?: TPlainObject) => void;
235
+ /**
236
+ * 搜索关键字,打开tree折叠过滤关键字
237
+ */
238
+ searchValue?: string;
239
+ /**
240
+ * checkable模式下,onChange是否返回父节点,默认值true
241
+ * @description 已过期,请使用 checkableType 配置
242
+ * ```
243
+ * 注意:checkStrictly = true,checkableResponseParentNode配置失效
244
+ * ```
245
+ */
246
+ checkableResponseParentNode?: boolean;
247
+ /**
248
+ * 节点选择类型(默认值:'2'), 多选时有效
249
+ * ```
250
+ * '1' 表示返回所有选中的节点(包含父节点和叶子节点)
251
+ * '2' 表示只返回叶子节点
252
+ * '3' 表示当叶子节点全选时,返回父节点,不返回下面的叶子节点
253
+ *
254
+ * 注意:checkStrictly = true,checkableType配置失效
255
+ * ```
256
+ */
257
+ checkableType?: "1" | "2" | "3";
258
+ /**
259
+ * 菜单触发类型,默认:click
260
+ * ```
261
+ * 自定义设置 titleRender 后失效
262
+ * ```
263
+ */
264
+ menuTriggerType?: "click" | "hover";
265
+ menus?: (dataItem: any) => ButtonOperateProps;
266
+ showSearch?: boolean;
267
+ onSearchValueChange?: (searchValue?: string) => void;
268
+ searchPlaceholder?: string;
269
+ searchStyle?: CSSProperties;
270
+ icon?: (data: {
271
+ isParent: boolean;
272
+ isLeaf: boolean;
273
+ [key: string]: TAny;
274
+ }) => ReactElement;
275
+ /**
276
+ * 状态文案配置
277
+ */
278
+ requestMessageConfig?: TRequestStatusProps["messageConfig"];
279
+ /**
280
+ * value格式
281
+ *```
282
+ * 1. string 、number
283
+ * 2. Array<string | number>
284
+ * 3. lableInValue = true,根据labelInValueFieldNames配置格式
285
+ * 4. lableInValue = true,Array<labelInValueFieldNames配置>
286
+ * ```
287
+ */
288
+ value?: TreeWrapperValue;
289
+ /**
290
+ * 选择的节点数据,是否包含label信息
291
+ * ```
292
+ * 默认选择的节点只有value数据
293
+ * ```
294
+ */
295
+ labelInValue?: boolean;
296
+ /**
297
+ * ```
298
+ * @deprecated 废弃
299
+ * lableInValue = true,onChange输出数据字段名称,默认:{ label: string; value: string|number }
300
+ * ```
301
+ */
302
+ labelInValueFieldNames?: {
303
+ label: string;
304
+ value: string;
305
+ };
306
+ /**
307
+ * 禁用状态是否可选,默认值true
308
+ * 当dateItem中包含 disabled 则数据为禁用状态
309
+ */
310
+ disabledCanUse?: boolean;
311
+ /** treeItem数据适配器 */
312
+ treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
313
+ /** 搜索位置额外元素 */
314
+ searchExtraElement?: ReactElement;
315
+ /** 有唯一跟节点时,初始化是否展开,默认值:false */
316
+ initRootExpand?: boolean;
317
+ /** 搜素过滤方式,高亮 | 过滤;默认:filter */
318
+ searchResultType?: "highlight" | "filter";
319
+ /**
320
+ * 拖拽节点处理,自定义onDrop事件后,失效
321
+ * ```
322
+ * 参数
323
+ * 1. parentId 拖拽结束位置父节点ID
324
+ * 2. id 当前拖拽节点ID
325
+ * 3. index 拖拽结束位置所在数组下标
326
+ * ```
327
+ */
328
+ onDropNodeHandle?: (result: {
329
+ parentId?: string | number;
330
+ id: string | number;
331
+ index: number;
332
+ }) => void;
333
+ /**
334
+ * 拖拽排序前判断,如果返回 true,可排序,其他不可排序
335
+ * ```
336
+ * 可用于需要权限控制判断
337
+ * ```
338
+ */
339
+ onDropPrev?: (info: any) => boolean;
340
+ /**
341
+ * 标签渲染
342
+ * ```
343
+ * 1. 自定义设置 titleRender 后失效
344
+ * 2. 与titleRender的区别
345
+ * a. 设置 labelRender 后,menuLayout有效
346
+ * b. 设置 titleRender 后,menuLayout失效
347
+ * ```
348
+ */
349
+ labelRender?: (nodeData: TPlainObject) => ReactElement;
350
+ /**
351
+ * 自定义搜索规则
352
+ */
353
+ customSearchRule?: (nodeData: TPlainObject, searchValue?: string) => boolean;
354
+ /**
355
+ * 点击父节点 是否切换折叠
356
+ * ```
357
+ * 1. 设置 titleRender 后,此配置失效
358
+ * ```
359
+ */
360
+ clickParentNodeToggleExpand?: boolean;
361
+ /**
362
+ * 禁用节点选中
363
+ * ```
364
+ * 1. checkable = true,此配置失效
365
+ * 2. 在未设置节点 disabled 属性情况下,满足此配置不会触发onChange事件
366
+ * ```
367
+ */
368
+ disableNodeSelect?: (item: TPlainObject) => boolean;
369
+ /**
370
+ * 是否必选,最后一个不能取消
371
+ * ```
372
+ * 1. 设置 checkable = true 时无效
373
+ * ```
374
+ */
375
+ required?: boolean;
376
+ /**
377
+ * 在第一次渲染value时,主动执行一次onChange
378
+ * ```
379
+ * 1. 设置labelInValue = true 时有效
380
+ * 2. 不考虑子父节点的关系
381
+ * ```
382
+ */
383
+ executeOnChangeInRenderFirstValue?: boolean;
384
+ };
385
+ export type TreeModelSelectItem = {
386
+ label: string;
387
+ value: string | number;
388
+ };
389
+ export type TreeModelSelectValue = TreeModelSelectItem[] | Array<TreeModelSelectItem["value"]> | TreeModelSelectItem["value"];
390
+ export type TreeModalContentProps = {
391
+ /** 是否多选,默认值:true */
392
+ isMultiple?: boolean;
393
+ forceRender?: boolean;
394
+ /**
395
+ * 内置尺寸,根据比例固定高度、宽度,默认:large
396
+ */
397
+ size?: "small" | "middle" | "large";
398
+ /** 字段映射 */
399
+ fieldNames?: {
400
+ label?: string;
401
+ value?: string;
402
+ children?: string;
403
+ };
404
+ /**
405
+ * 接口调用
406
+ * @deprecated 已过期,使用 serviceConfig
407
+ */
408
+ onRequest?: () => Promise<TPlainObject[]>;
409
+ serviceConfig?: {
410
+ params?: TPlainObject;
411
+ requiredParamsKeys?: string[];
412
+ onRequest?: (params?: TAny) => TAny;
413
+ };
414
+ value?: TreeModelSelectValue;
415
+ onChange?: (values?: TreeModelSelectItem[]) => void;
416
+ textConfig: {
417
+ title: string;
418
+ /** 选择为空提示,例如:请选择 */
419
+ placeholder?: string;
420
+ /** 选择数量提示,例如:已选择{total}位用户 */
421
+ selectQuantityPrompt?: string;
422
+ };
423
+ onDataSourceChange?: (treeDataList: TPlainObject[], mapData: TPlainObject) => void;
424
+ treeProps?: Pick<TreeWrapperProps, "showSearch" | "searchResultType" | "searchPlaceholder" | "searchValue" | "loadDataFlag" | "loadDataServiceConfig" | "icon" | "disabledCanUse" | "treeItemDataAdapter" | "searchExtraElement" | "initRootExpand" | "searchResultType" | "labelRender" | "customSearchRule" | "checkableType" | "checkStrictly" | "defaultExpandAll" | "clickParentNodeToggleExpand" | "disableNodeSelect">;
425
+ };
426
+ export type TreeModalProps = TreeModalContentProps & {
427
+ children: ReactElement & {
428
+ onClick?: (e: any) => void | Promise<void>;
429
+ };
430
+ modalClassName?: string;
431
+ modalWidth?: number;
432
+ modalBodyHeight?: number;
433
+ disabled?: boolean;
434
+ };
435
+ export declare const TreeModal: ((props: TreeModalProps) => import("react").JSX.Element) & {
436
+ Content: (props: TreeModalContentProps) => import("react").JSX.Element;
437
+ };
2
438
 
3
439
  export {};
@@ -1,3 +1,4 @@
1
+ import { TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
1
2
  import { ButtonProps, DropdownProps, FormInstance, ModalProps, PopconfirmProps, SpaceProps, TreeProps } from 'antd';
2
3
  import { ConfigProviderProps } from 'antd/lib/config-provider/index.js';
3
4
  import { CSSProperties, DependencyList, ReactElement, ReactNode } from 'react';
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { TreeSelectProps } from 'antd';
2
3
  import { DependencyList, ReactElement } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
1
2
  import { ButtonProps, DropdownProps, FormInstance, ModalProps, PopconfirmProps, SpaceProps, TreeProps } from 'antd';
2
3
  import { ConfigProviderProps } from 'antd/lib/config-provider/index.js';
3
4
  import { CSSProperties, DependencyList, ForwardRefExoticComponent, ReactElement, ReactNode, RefAttributes } from 'react';
@@ -946,7 +946,13 @@ var TreeWrapper$1 = /*#__PURE__*/forwardRef(function (props, ref) {
946
946
  }))]
947
947
  });
948
948
  }
949
- return null;
949
+ return /*#__PURE__*/jsx(Fragment, {
950
+ children: /*#__PURE__*/jsx("span", {
951
+ className: "tree-item-title",
952
+ "data-value": nodeData[fieldNames.value],
953
+ children: (labelRender === null || labelRender === void 0 ? void 0 : labelRender(nodeData)) || (nodeData === null || nodeData === void 0 ? void 0 : nodeData[fieldNames.label])
954
+ })
955
+ });
950
956
  });
951
957
  var onChangeDebounce = hooks.useDebounceCallback(function (value) {
952
958
  var _props$onSearchValueC;