@flatbiz/antd 5.0.5 → 5.0.7

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 (42) hide show
  1. package/dist/{drag-BOT05TxF.js → drag-CBosXqSQ.js} +2 -2
  2. package/dist/{drag-BOT05TxF.js.map → drag-CBosXqSQ.js.map} +1 -1
  3. package/dist/drag-editable-card/index.d.ts +2 -0
  4. package/dist/drag-editable-card/index.js +3 -3
  5. package/dist/drag-editable-table-pro/index.d.ts +2 -0
  6. package/dist/drag-editable-table-pro/index.js +2 -2
  7. package/dist/easy-form/index.js +1 -1
  8. package/dist/easy-table/index.js +1 -1
  9. package/dist/editable-card/index.d.ts +2 -0
  10. package/dist/editable-card/index.js +2 -2
  11. package/dist/{editable-card-Of7zVIb7.js → editable-card-DzY1frTO.js} +2 -2
  12. package/dist/{editable-card-Of7zVIb7.js.map → editable-card-DzY1frTO.js.map} +1 -1
  13. package/dist/{editable-card-BnQPaIKV.js → editable-card-Od2SiaIS.js} +3 -2
  14. package/dist/editable-card-Od2SiaIS.js.map +1 -0
  15. package/dist/editable-table-pro/index.d.ts +2 -0
  16. package/dist/editable-table-pro/index.js +1 -1
  17. package/dist/{editable-table-pro-B40tH9it.js → editable-table-pro-D8Vt535W.js} +2 -1
  18. package/dist/editable-table-pro-D8Vt535W.js.map +1 -0
  19. package/dist/{form-N0iC7D0E.js → form-DlOnlnEr.js} +5 -4
  20. package/dist/form-DlOnlnEr.js.map +1 -0
  21. package/dist/index.d.ts +211 -125
  22. package/dist/index.js +9 -5
  23. package/dist/index.js.map +1 -1
  24. package/dist/select-modal-Dt4YHH8a.js +370 -0
  25. package/dist/select-modal-Dt4YHH8a.js.map +1 -0
  26. package/dist/selector-HbymPXNd.js +89 -0
  27. package/dist/selector-HbymPXNd.js.map +1 -0
  28. package/dist/tree-modal/index.css +0 -0
  29. package/dist/tree-modal/index.d.ts +415 -0
  30. package/dist/tree-modal/index.js +73 -0
  31. package/dist/tree-modal/index.js.map +1 -0
  32. package/dist/tree-modal-selector/index.css +0 -0
  33. package/dist/tree-modal-selector/index.d.ts +426 -0
  34. package/dist/tree-modal-selector/index.js +75 -0
  35. package/dist/tree-modal-selector/index.js.map +1 -0
  36. package/dist/tree-wrapper/index.d.ts +15 -1
  37. package/dist/tree-wrapper/index.js +188 -77
  38. package/dist/tree-wrapper/index.js.map +1 -1
  39. package/package.json +11 -3
  40. package/dist/editable-card-BnQPaIKV.js.map +0 -1
  41. package/dist/editable-table-pro-B40tH9it.js.map +0 -1
  42. package/dist/form-N0iC7D0E.js.map +0 -1
@@ -0,0 +1,426 @@
1
+ import { TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
2
+ import { ButtonProps, DropdownProps, FormInstance, ModalProps, PopconfirmProps, SpaceProps, TreeProps } from 'antd';
3
+ import { ConfigProviderProps } from 'antd/es/config-provider';
4
+ import { CSSProperties, DependencyList, ReactElement } from 'react';
5
+
6
+ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
7
+ /** 当返回 Promise 时,按钮自动loading */
8
+ onClick?: (e: React.MouseEvent<HTMLElement>) => 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
+ content: string | ReactElement | ((form: FormInstance, operate: {
50
+ onClose: TNoopDefine;
51
+ }) => ReactElement);
52
+ configProviderProps?: ConfigProviderWrapperProps;
53
+ okHidden?: boolean;
54
+ cancelHidden?: boolean;
55
+ okButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
56
+ cancelButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
57
+ /**
58
+ * 设置modal body height 为当前窗口height的百分比,例如:30
59
+ * @deprecated 已失效,可通过size属性设置
60
+ * ```
61
+ * 1. 最大值:80
62
+ * 1. 设置bodyStyle.height 后,bodyHeightPercent失效
63
+ * ```
64
+ */
65
+ bodyHeightPercent?: number;
66
+ titleExtra?: ReactElement;
67
+ /**
68
+ * null则隐藏footer
69
+ * ```
70
+ * extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
71
+ * ```
72
+ */
73
+ footer?: null | ReactElement | ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => ReactElement);
74
+ /** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
75
+ bodyHeight?: number;
76
+ };
77
+ export interface DropdownMenuItem extends Omit<ButtonProps, "color"> {
78
+ text?: string | ReactElement;
79
+ color?: string;
80
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
81
+ permission?: string;
82
+ needConfirm?: boolean;
83
+ confirmMessage?: string;
84
+ hidden?: boolean;
85
+ confirmModalProps?: DialogModalProps;
86
+ stopPropagation?: boolean;
87
+ }
88
+ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
89
+ menuList: Array<DropdownMenuItem | null>;
90
+ /** dropdown 设置弹框根节点在body下 */
91
+ isFixed?: boolean;
92
+ }
93
+ export interface ButtonOperateItem extends ButtonWrapperProps {
94
+ /** hover 提示文字,isFold=true无效 */
95
+ hoverTips?: string | ReactElement;
96
+ /** hover 提示类型 默认:'tooltip' */
97
+ tipsType?: "popover" | "tooltip";
98
+ /** 按钮文案 */
99
+ text?: string | ReactElement;
100
+ /** 自定义按钮颜色 */
101
+ color?: string;
102
+ /** 是否需要二次弹框确认 */
103
+ needConfirm?: boolean;
104
+ /** 二次弹框确认文案 */
105
+ confirmMessage?: string;
106
+ popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
107
+ /** 是否折叠合拢 */
108
+ isFold?: boolean;
109
+ confirmModalProps?: DialogModalProps;
110
+ }
111
+ export interface ButtonOperateProps {
112
+ className?: string;
113
+ style?: CSSProperties;
114
+ /**
115
+ * 如果数组中元素为ReactElement类型
116
+ * 1. 一般为antd Button组件,如果组件存在属性hidden=true,则会隐藏
117
+ * 2. 可配置 v-permission 权限值,例如 v-permission="add"
118
+ * 3. 任何confirm、disabled等状态在外部控制
119
+ * 3. 不支持fold效果
120
+ */
121
+ operateList: Array<ButtonOperateItem | null | ReactElement>;
122
+ /** 是否换行,默认true */
123
+ wrap?: boolean;
124
+ /** 隐藏图标Icon */
125
+ foldIcon?: ReactElement;
126
+ /** 按钮之间是否添加分隔符 */
127
+ split?: boolean;
128
+ /** 多个按钮的包装组件Space属性 */
129
+ spaceProps?: SpaceProps;
130
+ /** 间距,默认:10;split=true配置下无效(可通过spaceProps设置间距) */
131
+ gap?: number;
132
+ /** 折叠合拢属性 */
133
+ dropdownMenuProps?: Omit<DropdownMenuWrapperProps, "menuList">;
134
+ }
135
+ export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
136
+ export type TRequestStatusProps = {
137
+ status?: TRequestStatus;
138
+ errorButton?: ReactElement;
139
+ messageConfig?: Partial<Record<TRequestStatus, string>>;
140
+ loading?: boolean;
141
+ };
142
+ export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
143
+ export type TreeServiceConfig = {
144
+ params?: TPlainObject;
145
+ requiredParamsKeys?: string[];
146
+ onRequest?: (params?: TAny) => TAny;
147
+ /**
148
+ * 响应数据适配器
149
+ */
150
+ onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
151
+ };
152
+ export type TreeLoadDataServiceConfig = {
153
+ getParams?: (dataItem: TPlainObject) => TPlainObject;
154
+ onRequest: (params: TPlainObject) => TAny;
155
+ /**
156
+ * 响应数据适配器
157
+ */
158
+ onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
159
+ };
160
+ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "fieldNames" | "multiple" | "loadData" | "icon" | "defaultCheckedKeys" | "defaultExpandParent" | "defaultSelectedKeys"> & {
161
+ /** 唯一值,用于缓存数据 */
162
+ modelKey: string;
163
+ /**
164
+ * 字段映射
165
+ * ```
166
+ * 默认值:
167
+ * label = 'label'
168
+ * value = 'value'
169
+ * children = 'children'
170
+ *
171
+ * 如果未设置list,则说明接口返回数据为数组
172
+ * 如果返回数据存在多级,可通过设置 list='a.b.list'
173
+ * ```
174
+ */
175
+ fieldNames?: {
176
+ label?: string;
177
+ value?: string;
178
+ children?: string;
179
+ list?: string;
180
+ };
181
+ /**
182
+ * useEffect依赖项数组,用于重新发起获取接口数据
183
+ */
184
+ effectDependencyList?: DependencyList;
185
+ /**
186
+ * 请求服务需求的数据,当设置`selectorTreeList`后无效果
187
+ */
188
+ serviceConfig?: TreeServiceConfig;
189
+ /**
190
+ * 是否开启异步加载
191
+ */
192
+ loadDataFlag?: boolean;
193
+ /**
194
+ * 异步加载数据配置
195
+ * ```
196
+ * 1. 会通过fieldNames配置label、value、children进行转义
197
+ * 2. fieldNames.list 配置在此处无效
198
+ * ```
199
+ */
200
+ loadDataServiceConfig?: TreeLoadDataServiceConfig;
201
+ /**
202
+ * 当设置selectorTreeList后,serviceConfig将失效
203
+ * ```
204
+ * 1. 不支持异步数据,异步使用serviceConfig方式
205
+ * ```
206
+ */
207
+ selectorTreeList?: TPlainObject[];
208
+ /**
209
+ * 通过服务获取数据后回调,当设置`selectorList`后无效果
210
+ * ```
211
+ * 相同modelKey,同时发起多个渲染时,只有第一个会执行 onSelectorTreeListChange 回调
212
+ * ```
213
+ */
214
+ onSelectorTreeListChange?: (dataList: TPlainObject[]) => void;
215
+ /** 接口响应数据变更 */
216
+ onRequestResponseChange?: (data: TAny) => void;
217
+ onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[], extraData?: TPlainObject) => void;
218
+ /**
219
+ * 搜索关键字,打开tree折叠过滤关键字
220
+ */
221
+ searchValue?: string;
222
+ /**
223
+ * checkable模式下,onChange是否返回父节点,默认值true
224
+ * @description 已过期,请使用 checkableType 配置
225
+ * ```
226
+ * 注意:checkStrictly = true,checkableResponseParentNode配置失效
227
+ * ```
228
+ */
229
+ checkableResponseParentNode?: boolean;
230
+ /**
231
+ * 节点选择类型(默认值:'2'), 多选时有效
232
+ * ```
233
+ * '1' 表示返回所有选中的节点(包含父节点和叶子节点)
234
+ * '2' 表示只返回叶子节点
235
+ * '3' 表示当叶子节点全选时,返回父节点,不返回下面的叶子节点
236
+ *
237
+ * 注意:checkStrictly = true,checkableType配置失效
238
+ * ```
239
+ */
240
+ checkableType?: "1" | "2" | "3";
241
+ /**
242
+ * 菜单结构类型 tile/平铺 fold/折叠;默认:fold
243
+ * @deprecated 已过期 4.3.0版本移除,请使用 menus
244
+ * ```
245
+ * 自定义设置 titleRender 后失效
246
+ * ```
247
+ */
248
+ menuLayoutType?: "tile" | "fold";
249
+ /**
250
+ * 获取菜单类别
251
+ * @param dataItem
252
+ * @deprecated 已过期 4.3.0版本移除,请使用 menus
253
+ * @returns
254
+ * ```
255
+ * 1. menuLayoutType = tile 无效
256
+ * 2. 自定义设置 titleRender 后失效
257
+ * ```
258
+ */
259
+ getMenuOptions?: (dataItem: TPlainObject) => DropdownMenuItem[] | ButtonOperateItem[];
260
+ /**
261
+ * 根据 menuLayoutType 类型赋值
262
+ * @deprecated 已过期 4.3.0版本移除,请使用 menuOptions
263
+ */
264
+ menuOptions?: {
265
+ tile?: (dataItem: TPlainObject) => ButtonOperateProps;
266
+ fold?: (dataItem: TPlainObject) => DropdownMenuItem[];
267
+ };
268
+ /**
269
+ * 菜单触发类型,默认:click
270
+ * ```
271
+ * 自定义设置 titleRender 后失效
272
+ * ```
273
+ */
274
+ menuTriggerType?: "click" | "hover";
275
+ menus?: (dataItem: any) => ButtonOperateProps;
276
+ showSearch?: boolean;
277
+ onSearchValueChange?: (searchValue?: string) => void;
278
+ searchPlaceholder?: string;
279
+ searchStyle?: CSSProperties;
280
+ icon?: (data: {
281
+ isParent: boolean;
282
+ isLeaf: boolean;
283
+ [key: string]: TAny;
284
+ }) => ReactElement;
285
+ /**
286
+ * 状态文案配置
287
+ */
288
+ requestMessageConfig?: TRequestStatusProps["messageConfig"];
289
+ /**
290
+ * value格式
291
+ *```
292
+ * 1. string 、number
293
+ * 2. Array<string | number>
294
+ * 3. lableInValue = true,根据labelInValueFieldNames配置格式
295
+ * 4. lableInValue = true,Array<labelInValueFieldNames配置>
296
+ * ```
297
+ */
298
+ value?: TreeWrapperValue;
299
+ /**
300
+ * 选择的节点数据,是否包含label信息
301
+ * ```
302
+ * 默认选择的节点只有value数据
303
+ * ```
304
+ */
305
+ labelInValue?: boolean;
306
+ /**
307
+ * ```
308
+ * @deprecated 废弃
309
+ * lableInValue = true,onChange输出数据字段名称,默认:{ label: string; value: string|number }
310
+ * ```
311
+ */
312
+ labelInValueFieldNames?: {
313
+ label: string;
314
+ value: string;
315
+ };
316
+ /**
317
+ * 禁用状态是否可选,默认值true
318
+ * 当dateItem中包含 disabled 则数据为禁用状态
319
+ */
320
+ disabledCanUse?: boolean;
321
+ /** treeItem数据适配器 */
322
+ treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
323
+ /** 搜索位置额外元素 */
324
+ searchExtraElement?: ReactElement;
325
+ /** 有唯一跟节点时,初始化是否展开,默认值:false */
326
+ initRootExpand?: boolean;
327
+ /** 搜素过滤方式,高亮 | 过滤;默认:filter */
328
+ searchResultType?: "highlight" | "filter";
329
+ /**
330
+ * 拖拽节点处理,自定义onDrop事件后,失效
331
+ * ```
332
+ * 参数
333
+ * 1. parentId 拖拽结束位置父节点ID
334
+ * 2. id 当前拖拽节点ID
335
+ * 3. index 拖拽结束位置所在数组下标
336
+ * ```
337
+ */
338
+ onDropNodeHandle?: (result: {
339
+ parentId?: string | number;
340
+ id: string | number;
341
+ index: number;
342
+ }) => void;
343
+ /**
344
+ * 拖拽排序前判断,如果返回 true,可排序,其他不可排序
345
+ * ```
346
+ * 可用于需要权限控制判断
347
+ * ```
348
+ */
349
+ onDropPrev?: (info: any) => boolean;
350
+ /**
351
+ * 标签渲染
352
+ * ```
353
+ * 1. 自定义设置 titleRender 后失效
354
+ * 2. 与titleRender的区别
355
+ * a. 设置 labelRender 后,menuLayout有效
356
+ * b. 设置 titleRender 后,menuLayout失效
357
+ * ```
358
+ */
359
+ labelRender?: (nodeData: TPlainObject) => ReactElement;
360
+ /**
361
+ * 自定义搜索规则
362
+ */
363
+ customSearchRule?: (nodeData: TPlainObject, searchValue?: string) => boolean;
364
+ };
365
+ export type TreeModelSelectItem = {
366
+ label: string;
367
+ value: string | number;
368
+ };
369
+ export type TreeModelSelectValue = TreeModelSelectItem[] | Array<TreeModelSelectItem["value"]> | TreeModelSelectItem["value"];
370
+ export type TreeModalProps = {
371
+ /** 是否多选,默认值:true */
372
+ isMultiple?: boolean;
373
+ forceRender?: boolean;
374
+ children: ReactElement & {
375
+ onClick?: (e: any) => void | Promise<void>;
376
+ };
377
+ /**
378
+ * 内置尺寸,根据比例固定高度、宽度,默认:large
379
+ */
380
+ size?: "small" | "middle" | "large";
381
+ /** 字段映射 */
382
+ fieldNames?: {
383
+ label?: string;
384
+ value?: string;
385
+ children?: string;
386
+ };
387
+ /** 接口调用 */
388
+ onRequest: () => Promise<TPlainObject[]>;
389
+ value?: TreeModelSelectValue;
390
+ onChange?: (values?: TreeModelSelectItem[]) => void;
391
+ textConfig: {
392
+ title: string;
393
+ /** 选择为空提示,例如:请选择 */
394
+ placeholder?: string;
395
+ /** 选择数量提示,例如:已选择{total}位用户 */
396
+ selectQuantityPrompt?: string;
397
+ };
398
+ /** 选中值变更change,包括入参value、操作选中等 */
399
+ onSelectChange?: (values?: TreeModelSelectItem[]) => void;
400
+ onChangeDataSource?: (treeDataList: TPlainObject[], mapData: TPlainObject) => void;
401
+ modalClassName?: string;
402
+ modalWidth?: number;
403
+ modalBodyHeight?: number;
404
+ treeProps?: Pick<TreeWrapperProps, "showSearch" | "searchResultType" | "searchPlaceholder" | "searchValue" | "loadDataFlag" | "loadDataServiceConfig" | "icon" | "disabledCanUse" | "treeItemDataAdapter" | "searchExtraElement" | "initRootExpand" | "searchResultType" | "labelRender" | "customSearchRule" | "checkableType">;
405
+ };
406
+ export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRender" | "onChange"> & {
407
+ placeholder?: string;
408
+ /**
409
+ * 1. 可指定数量
410
+ * 2. 可设置 responsive,一行自适应显示
411
+ */
412
+ maxTagCount?: number | "responsive";
413
+ /** 是否返回label+value模式 */
414
+ labelInValue?: boolean;
415
+ onChange?: (values?: TreeModelSelectItem[] | TreeModelSelectItem) => void;
416
+ };
417
+ /**
418
+ * 树弹框选择器
419
+ * ```
420
+ * 1. 可通过 treeProps.checkableType 配置多选节点模式(包括返回所有节点、只返回叶子节点、叶子节点&父节点全选只返回父节点),默认只返回叶子节点
421
+ * 2. demo: https://fex.qa.tcshuke.com/docs/admin/main/selector/tree
422
+ * ```
423
+ */
424
+ export declare const TreeModalSelector: (props: TreeModalSelectorProps) => import("react").JSX.Element;
425
+
426
+ export {};
@@ -0,0 +1,75 @@
1
+ /* eslint-disable */
2
+ import './../button-operate/index.css';
3
+ import './../css-node-hover/index.css';
4
+ import './../dialog-confirm/index.css';
5
+ import './../dropdown-menu-wrapper/index.css';
6
+ import './../fba-hooks/index.css';
7
+ import './../fba-utils/index.css';
8
+ import './../flex-layout/index.css';
9
+ import './../icon-wrapper/index.css';
10
+ import './../input-search-wrapper/index.css';
11
+ import './../request-status/index.css';
12
+ import './../text-overflow/index.css';
13
+ import './../tree-modal/index.css';
14
+ import './../tree-wrapper/index.css';
15
+ import './index.css';
16
+ /*! @flatjs/forge MIT @flatbiz/antd */
17
+
18
+ export { T as TreeModalSelector } from '../selector-HbymPXNd.js';
19
+ import '../_rollupPluginBabelHelpers-BYm17lo8.js';
20
+ import '@dimjs/lang/is-object';
21
+ import 'react';
22
+ import 'antd';
23
+ import '@flatbiz/utils';
24
+ import '../select-modal-Dt4YHH8a.js';
25
+ import '@wove/react/hooks';
26
+ import 'ahooks';
27
+ import '../fba-hooks/index.js';
28
+ import '../use-responsive-point-Bp3D3lZT.js';
29
+ import '../flex-layout-BaDncU_Z.js';
30
+ import '@dimjs/utils/class-names/class-names';
31
+ import 'react/jsx-runtime';
32
+ import '@ant-design/icons/es/icons/CloseOutlined.js';
33
+ import '../css-node-hover-CsHQgf77.js';
34
+ import '../icon-wrapper-CR3akisG.js';
35
+ import '@dimjs/lang/is-undefined';
36
+ import '../text-overflow-Bk9MC6Cg.js';
37
+ import '@dimjs/lang/is-string';
38
+ import '../tree-wrapper/index.js';
39
+ import '@dimjs/lang/is-array';
40
+ import '@dimjs/model-react';
41
+ import '@ant-design/icons/es/icons/CaretDownFilled.js';
42
+ import '@ant-design/icons/es/icons/MoreOutlined.js';
43
+ import '@dimjs/utils/extend/extend';
44
+ import '@dimjs/utils/get/get';
45
+ import '@dimjs/model';
46
+ import '../button-operate-BRkW26Up.js';
47
+ import '@dimjs/lang/is-plain-object';
48
+ import '@dimjs/lang/is-promise';
49
+ import '../button-wrapper-l9FUsrWl.js';
50
+ import '@ant-design/icons/es/icons/LoadingOutlined.js';
51
+ import '../config-provider-wrapper-DDa_64Ce.js';
52
+ import 'antd/es/locale/en_US.js';
53
+ import 'antd/es/locale/zh_CN.js';
54
+ import 'dayjs';
55
+ import 'dayjs/plugin/advancedFormat.js';
56
+ import 'dayjs/plugin/customParseFormat.js';
57
+ import 'dayjs/plugin/localeData.js';
58
+ import 'dayjs/plugin/utc.js';
59
+ import 'dayjs/plugin/weekday.js';
60
+ import 'dayjs/plugin/weekOfYear.js';
61
+ import 'dayjs/plugin/weekYear.js';
62
+ import 'dayjs/locale/en.js';
63
+ import 'dayjs/locale/zh-cn.js';
64
+ import '../fba-utils-Dfbczn1S.js';
65
+ import '../dropdown-menu-wrapper-CSzVvlcO.js';
66
+ import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
67
+ import '../dialog-confirm-BqB8wyB6.js';
68
+ import '../dialog-modal-xt2uoEa-.js';
69
+ import 'react-dom/client';
70
+ import '@wove/react/create-ctx';
71
+ import '../input-search-wrapper-wVYGWi2O.js';
72
+ import '../request-status-DQsSHUSx.js';
73
+ import '@dimjs/utils/tree/walk-through-tree';
74
+ import 'dequal';
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -221,9 +221,23 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
221
221
  searchValue?: string;
222
222
  /**
223
223
  * checkable模式下,onChange是否返回父节点,默认值true
224
- * 1. checkStrictly = true,模式下失效
224
+ * @description 已过期,请使用 checkableType 配置
225
+ * ```
226
+ * 注意:checkStrictly = true,checkableResponseParentNode配置失效
227
+ * ```
225
228
  */
226
229
  checkableResponseParentNode?: boolean;
230
+ /**
231
+ * 节点选择类型(默认值:'2'), 多选时有效
232
+ * ```
233
+ * '1' 表示返回所有选中的节点(包含父节点和叶子节点)
234
+ * '2' 表示只返回叶子节点
235
+ * '3' 表示当叶子节点全选时,返回父节点,不返回下面的叶子节点
236
+ *
237
+ * 注意:checkStrictly = true,checkableType配置失效
238
+ * ```
239
+ */
240
+ checkableType?: "1" | "2" | "3";
227
241
  /**
228
242
  * 菜单结构类型 tile/平铺 fold/折叠;默认:fold
229
243
  * @deprecated 已过期 4.3.0版本移除,请使用 menus