@unicom-cloud/ui 0.8.93 → 0.8.94
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/color-picker/Mode.js +7 -6
- package/index.js +171 -171
- package/layout/index.js +11 -9
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +43 -41
- package/tree/Tree.js +215 -211
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +3 -2
- package/version/index.js +1 -1
package/tree/Tree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as se } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as ve, useContext as Se, useRef as v, useState as Te, useImperativeHandle as Ae, useEffect as B, createElement as Ie } from "react";
|
|
3
3
|
import { isEmptyObject as Me } from "@unicom-cloud/utils/is";
|
|
4
4
|
import E from "lodash/get";
|
|
5
5
|
import q from "lodash/has";
|
|
@@ -15,7 +15,7 @@ import ie from "./Node.js";
|
|
|
15
15
|
import je from "./NodeList.js";
|
|
16
16
|
import { getTreeDataFromTreeChildren as Fe, getCheckedKeysByInitKeys as ze, getAllCheckedKeysByCheck as Be } from "./util.js";
|
|
17
17
|
import qe from "../config-provider/context.js";
|
|
18
|
-
const
|
|
18
|
+
const oe = {
|
|
19
19
|
key: "key",
|
|
20
20
|
title: "title",
|
|
21
21
|
children: "children",
|
|
@@ -24,13 +24,13 @@ const ae = {
|
|
|
24
24
|
disableCheckbox: "disableCheckbox",
|
|
25
25
|
checkable: "checkable",
|
|
26
26
|
isLeaf: "isLeaf"
|
|
27
|
-
},
|
|
27
|
+
}, ae = "parent", ye = "all", ue = "child", Ue = {
|
|
28
28
|
selectable: !0,
|
|
29
29
|
autoExpandParent: !0,
|
|
30
30
|
checkedStrategy: ye,
|
|
31
31
|
actionOnClick: "select",
|
|
32
32
|
allowDrop: () => !0,
|
|
33
|
-
fieldNames:
|
|
33
|
+
fieldNames: oe,
|
|
34
34
|
animation: !0
|
|
35
35
|
}, Ve = [
|
|
36
36
|
"style",
|
|
@@ -49,18 +49,18 @@ const ae = {
|
|
|
49
49
|
"actionOnClick",
|
|
50
50
|
"animation"
|
|
51
51
|
];
|
|
52
|
-
function Ge(
|
|
53
|
-
const
|
|
54
|
-
var
|
|
55
|
-
const e = H(), n = $(e, (
|
|
56
|
-
|
|
52
|
+
function Ge(s, fe) {
|
|
53
|
+
const g = Se(qe), U = v(null), f = v({}), b = v(), T = v(), M = v(), [o, k] = Te(() => {
|
|
54
|
+
var l;
|
|
55
|
+
const e = H(), n = $(e, (l = g.getPrefixCls) == null ? void 0 : l.call(g, "tree")), { checkedKeys: c, halfCheckedKeys: t } = R(
|
|
56
|
+
s.checkedKeys || s.defaultCheckedKeys || []
|
|
57
57
|
);
|
|
58
58
|
return {
|
|
59
|
-
selectedKeys:
|
|
59
|
+
selectedKeys: s.selectedKeys || s.defaultSelectedKeys || [],
|
|
60
60
|
checkedKeys: c,
|
|
61
61
|
halfCheckedKeys: t,
|
|
62
62
|
expandedKeys: G(
|
|
63
|
-
|
|
63
|
+
s.expandedKeys || s.defaultExpandedKeys
|
|
64
64
|
),
|
|
65
65
|
loadedKeys: [],
|
|
66
66
|
loadingKeys: [],
|
|
@@ -68,11 +68,11 @@ function Ge(r, fe) {
|
|
|
68
68
|
nodeList: n
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
|
-
function
|
|
72
|
-
const { componentConfig: n } =
|
|
73
|
-
return Ve.forEach((
|
|
74
|
-
le(c[
|
|
75
|
-
}),
|
|
71
|
+
function _(e) {
|
|
72
|
+
const { componentConfig: n } = g ?? {}, c = e || s, t = (n == null ? void 0 : n.Tree) || {}, l = {};
|
|
73
|
+
return Ve.forEach((r) => {
|
|
74
|
+
le(c[r]) ? le(t[r]) ? l[r] = Ue[r] : l[r] = t[r] : l[r] = c[r];
|
|
75
|
+
}), l;
|
|
76
76
|
}
|
|
77
77
|
function he(e, n) {
|
|
78
78
|
let c = e;
|
|
@@ -82,7 +82,7 @@ function Ge(r, fe) {
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
function H() {
|
|
85
|
-
return "treeData" in
|
|
85
|
+
return "treeData" in s ? s.treeData : Fe(s.children);
|
|
86
86
|
}
|
|
87
87
|
function Ke(e, n) {
|
|
88
88
|
const c = [
|
|
@@ -99,71 +99,71 @@ function Ge(r, fe) {
|
|
|
99
99
|
return e.treeData !== n.treeData || e.children !== n.children || c.some((t) => L(e[t], n[t]));
|
|
100
100
|
}
|
|
101
101
|
function V(e) {
|
|
102
|
-
const n =
|
|
103
|
-
...
|
|
104
|
-
..."treeData" in
|
|
105
|
-
},
|
|
102
|
+
const n = _(), { selectable: c } = n, t = {
|
|
103
|
+
...oe,
|
|
104
|
+
..."treeData" in s ? n.fieldNames : {}
|
|
105
|
+
}, l = {
|
|
106
106
|
children: E(e, t.children),
|
|
107
107
|
selectable: q(e, t.selectable) ? E(e, t.selectable) : c,
|
|
108
|
-
checkable: q(e, t.checkable) ? E(e, t.checkable) :
|
|
108
|
+
checkable: q(e, t.checkable) ? E(e, t.checkable) : s.checkable,
|
|
109
109
|
title: E(e, t.title),
|
|
110
110
|
disabled: E(e, t.disabled),
|
|
111
111
|
disableCheckbox: E(e, t.disableCheckbox),
|
|
112
112
|
isLeaf: E(e, t.isLeaf),
|
|
113
113
|
key: E(e, t.key)
|
|
114
114
|
};
|
|
115
|
-
return q(e, t.key) || delete
|
|
115
|
+
return q(e, t.key) || delete l.key, l;
|
|
116
116
|
}
|
|
117
117
|
function $(e, n) {
|
|
118
|
-
var
|
|
118
|
+
var y;
|
|
119
119
|
f.current = {};
|
|
120
|
-
const c = n || ((
|
|
121
|
-
let
|
|
122
|
-
const { showLine:
|
|
123
|
-
const w =
|
|
124
|
-
return
|
|
120
|
+
const c = n || ((y = g.getPrefixCls) == null ? void 0 : y.call(g, "tree")), t = [];
|
|
121
|
+
let l = 0;
|
|
122
|
+
const { showLine: r, blockNode: i } = _(), d = (C, u) => {
|
|
123
|
+
const w = C.length;
|
|
124
|
+
return C.map((m, x) => {
|
|
125
125
|
const {
|
|
126
|
-
children:
|
|
126
|
+
children: a,
|
|
127
127
|
selectable: h,
|
|
128
128
|
checkable: D,
|
|
129
|
-
key:
|
|
129
|
+
key: N = `${(u == null ? void 0 : u._key) || ""}-${x}`,
|
|
130
130
|
...z
|
|
131
|
-
} = V(
|
|
131
|
+
} = V(m), O = {
|
|
132
132
|
// data 中含有 dataRef 时,优先级较高
|
|
133
|
-
dataRef:
|
|
134
|
-
draggable:
|
|
133
|
+
dataRef: m,
|
|
134
|
+
draggable: s.draggable,
|
|
135
135
|
selectable: h,
|
|
136
136
|
checkable: D,
|
|
137
|
-
showLine:
|
|
138
|
-
blockNode:
|
|
139
|
-
...
|
|
137
|
+
showLine: r,
|
|
138
|
+
blockNode: i,
|
|
139
|
+
...m,
|
|
140
140
|
...z,
|
|
141
|
-
key:
|
|
142
|
-
children:
|
|
143
|
-
_key:
|
|
144
|
-
_index:
|
|
141
|
+
key: N,
|
|
142
|
+
children: a,
|
|
143
|
+
_key: N,
|
|
144
|
+
_index: l++,
|
|
145
145
|
parentKey: u ? u._key : void 0,
|
|
146
146
|
pathParentKeys: u && u.pathParentKeys || [],
|
|
147
147
|
_level: u._level || 0,
|
|
148
148
|
// 保存node在sowLine模式下是否显示缩进线。如果父节点是其所在层级的最后一个节点,那么所有的子节点(包括孙子节点等)在父节点所在层级的缩进格都不显示缩进线。
|
|
149
149
|
_lineless: u && u._lineless ? [...u._lineless || [], u._isTail] : []
|
|
150
150
|
};
|
|
151
|
-
return w ===
|
|
151
|
+
return w === x + 1 && (O.className = de(
|
|
152
152
|
`${c}-node-is-tail`,
|
|
153
153
|
O.className
|
|
154
|
-
)), t.push(O), f.current[
|
|
155
|
-
_key:
|
|
154
|
+
)), t.push(O), f.current[N] = O, a && a.length && (f.current[N].children = d(a, {
|
|
155
|
+
_key: N,
|
|
156
156
|
_level: O._level + 1,
|
|
157
157
|
_lineless: O._lineless,
|
|
158
|
-
_isTail: w ===
|
|
159
|
-
pathParentKeys: [...(u == null ? void 0 : u.pathParentKeys) || [],
|
|
158
|
+
_isTail: w === x + 1,
|
|
159
|
+
pathParentKeys: [...(u == null ? void 0 : u.pathParentKeys) || [], N]
|
|
160
160
|
})), O;
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
|
-
return
|
|
163
|
+
return d(e || [], {}), t;
|
|
164
164
|
}
|
|
165
165
|
function G(e) {
|
|
166
|
-
if (!
|
|
166
|
+
if (!_().autoExpandParent)
|
|
167
167
|
return e || [];
|
|
168
168
|
if (!e)
|
|
169
169
|
return Object.keys(f.current).filter((c) => {
|
|
@@ -173,13 +173,13 @@ function Ge(r, fe) {
|
|
|
173
173
|
const n = {};
|
|
174
174
|
return e.forEach((c) => {
|
|
175
175
|
const t = f.current[c];
|
|
176
|
-
t && (n[c] = 1, t.pathParentKeys && t.pathParentKeys.forEach((
|
|
177
|
-
n[
|
|
176
|
+
t && (n[c] = 1, t.pathParentKeys && t.pathParentKeys.forEach((l) => {
|
|
177
|
+
n[l] = 1;
|
|
178
178
|
}));
|
|
179
179
|
}), Object.keys(n);
|
|
180
180
|
}
|
|
181
181
|
function R(e) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!s.checkStrictly) {
|
|
183
183
|
const { checkedKeys: n, indeterminateKeys: c } = ze(
|
|
184
184
|
e,
|
|
185
185
|
f.current
|
|
@@ -191,88 +191,92 @@ function Ge(r, fe) {
|
|
|
191
191
|
}
|
|
192
192
|
return {
|
|
193
193
|
checkedKeys: e,
|
|
194
|
-
halfCheckedKeys:
|
|
194
|
+
halfCheckedKeys: s.halfCheckedKeys || []
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
function ke(e, n) {
|
|
198
|
-
var
|
|
199
|
-
const { onSelect: c } =
|
|
198
|
+
var i;
|
|
199
|
+
const { onSelect: c, onNodeSelect: t } = s, l = (i = f.current[e]) == null ? void 0 : i.dataRef, r = {
|
|
200
200
|
e: n,
|
|
201
|
-
data:
|
|
201
|
+
data: l,
|
|
202
202
|
// 潘启宝添加
|
|
203
|
-
node: K([e])[0]
|
|
203
|
+
node: K([e])[0],
|
|
204
|
+
selected: !1,
|
|
205
|
+
selectedNodes: []
|
|
204
206
|
};
|
|
205
|
-
if (
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
const u = { ...
|
|
209
|
-
return u.selectedKeys =
|
|
210
|
-
}), c == null || c(
|
|
207
|
+
if (s.multiple) {
|
|
208
|
+
const d = [...o.selectedKeys], y = d.indexOf(e);
|
|
209
|
+
y > -1 ? (d.splice(y, 1), r.selected = !1) : (r.selected = !0, d.push(e)), r.selectedNodes = K(d), "selectedKeys" in s || k((C) => {
|
|
210
|
+
const u = { ...C };
|
|
211
|
+
return u.selectedKeys = d, u;
|
|
212
|
+
}), c == null || c(d, r);
|
|
211
213
|
} else
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
return
|
|
215
|
-
}), c == null || c([e],
|
|
216
|
-
|
|
214
|
+
r.selected = !0, r.selectedNodes = K([e]), "selectedKeys" in s || k((d) => {
|
|
215
|
+
const y = { ...d };
|
|
216
|
+
return y.selectedKeys = [e], y;
|
|
217
|
+
}), c == null || c([e], r);
|
|
218
|
+
t == null || t(e, l, r);
|
|
217
219
|
}
|
|
218
220
|
function J(e, n, c) {
|
|
219
|
-
var
|
|
220
|
-
const { checkedStrategy: t } =
|
|
221
|
-
let
|
|
221
|
+
var w;
|
|
222
|
+
const { checkedStrategy: t } = _(), { checkStrictly: l, onCheck: r, onNodeCheck: i } = s;
|
|
223
|
+
let d = [...o.checkedKeys || []], y = o.halfCheckedKeys;
|
|
222
224
|
if (l) {
|
|
223
|
-
e ?
|
|
224
|
-
const
|
|
225
|
-
"checkedKeys" in
|
|
225
|
+
e ? d = d.concat(n) : d = d.filter((x) => x !== n);
|
|
226
|
+
const m = {};
|
|
227
|
+
"checkedKeys" in s || (m.checkedKeys = d), "halfCheckedKeys" in s || (m.halfCheckedKeys = y), Me(m) || k((x) => ({ ...x, ...m }));
|
|
226
228
|
} else {
|
|
227
|
-
const { checkedKeys:
|
|
229
|
+
const { checkedKeys: m, indeterminateKeys: x } = Be(
|
|
228
230
|
n,
|
|
229
231
|
e,
|
|
230
|
-
|
|
232
|
+
d,
|
|
231
233
|
f.current,
|
|
232
|
-
|
|
234
|
+
y
|
|
233
235
|
);
|
|
234
|
-
|
|
235
|
-
const h = { ...
|
|
236
|
-
return h.halfCheckedKeys =
|
|
237
|
-
}) :
|
|
238
|
-
const h = { ...
|
|
239
|
-
return h.checkedKeys =
|
|
240
|
-
}), t ===
|
|
241
|
-
const h = f.current[
|
|
242
|
-
if (!h ||
|
|
236
|
+
d = m, y = x, "checkedKeys" in s ? k((a) => {
|
|
237
|
+
const h = { ...a };
|
|
238
|
+
return h.halfCheckedKeys = y, h;
|
|
239
|
+
}) : k((a) => {
|
|
240
|
+
const h = { ...a };
|
|
241
|
+
return h.checkedKeys = d, h.halfCheckedKeys = y, h;
|
|
242
|
+
}), t === ae ? d = d.filter((a) => {
|
|
243
|
+
const h = f.current[a];
|
|
244
|
+
if (!h || d.indexOf(h.parentKey) === -1)
|
|
243
245
|
return !0;
|
|
244
|
-
}) : t === ue && (
|
|
245
|
-
var D,
|
|
246
|
-
const h = f.current[
|
|
247
|
-
if (!h || !((D = h.children) != null && D.length) || (
|
|
246
|
+
}) : t === ue && (d = d.filter((a) => {
|
|
247
|
+
var D, N;
|
|
248
|
+
const h = f.current[a];
|
|
249
|
+
if (!h || !((D = h.children) != null && D.length) || (N = h.children) != null && N.every((z) => d.indexOf(z._key) === -1))
|
|
248
250
|
return !0;
|
|
249
251
|
}));
|
|
250
252
|
}
|
|
251
|
-
|
|
252
|
-
checkedNodes: K(
|
|
253
|
+
const C = (w = f.current[n]) == null ? void 0 : w.dataRef, u = {
|
|
254
|
+
checkedNodes: K(d),
|
|
253
255
|
checked: e,
|
|
254
|
-
halfCheckedKeys:
|
|
255
|
-
halfCheckedNodes: K(
|
|
256
|
-
data:
|
|
256
|
+
halfCheckedKeys: y,
|
|
257
|
+
halfCheckedNodes: K(y),
|
|
258
|
+
data: C,
|
|
257
259
|
// 潘启宝添加
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
e: c,
|
|
261
|
+
node: K([n])[0]
|
|
262
|
+
};
|
|
263
|
+
r == null || r(d, u), i == null || i(n, C, u);
|
|
260
264
|
}
|
|
261
265
|
function me(e) {
|
|
262
|
-
if ($e(
|
|
266
|
+
if ($e(s.loadMore)) {
|
|
263
267
|
const { loadingKeys: n = [], loadedKeys: c } = o;
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
return
|
|
268
|
+
k((t) => {
|
|
269
|
+
const l = { ...t };
|
|
270
|
+
return l.loadingKeys = Array.from(/* @__PURE__ */ new Set([...n, e._key])), l.loadedKeys = c.filter((r) => r !== e._key), l;
|
|
267
271
|
}), I == null || I(K([e._key])[0]).then((t) => {
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
return
|
|
272
|
+
k((l) => {
|
|
273
|
+
const r = { ...l };
|
|
274
|
+
return r.loadingKeys = l.loadingKeys.filter((i) => i !== e._key), r.loadedKeys = Array.from(/* @__PURE__ */ new Set([...l.loadedKeys, e._key])), r;
|
|
271
275
|
}), W(!e.expanded, e._key);
|
|
272
276
|
}).catch((t) => {
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
return
|
|
277
|
+
k((l) => {
|
|
278
|
+
const r = { ...l };
|
|
279
|
+
return r.loadingKeys = l.loadingKeys.filter((i) => i !== e._key), r;
|
|
276
280
|
}), console.error("[tree]load data error: ", t);
|
|
277
281
|
}).finally(() => {
|
|
278
282
|
});
|
|
@@ -280,33 +284,33 @@ function Ge(r, fe) {
|
|
|
280
284
|
}
|
|
281
285
|
function xe(e, n) {
|
|
282
286
|
b.current = K([n._key])[0], T.current = 0;
|
|
283
|
-
const { onDragStart: c } =
|
|
287
|
+
const { onDragStart: c } = s;
|
|
284
288
|
c == null || c(e, K([n._key])[0]);
|
|
285
289
|
}
|
|
286
290
|
function ge(e, n) {
|
|
287
291
|
b.current = null, T.current = 0;
|
|
288
|
-
const { onDragEnd: c } =
|
|
292
|
+
const { onDragEnd: c } = s;
|
|
289
293
|
c == null || c(e, K([n._key])[0]);
|
|
290
294
|
}
|
|
291
|
-
function
|
|
295
|
+
function _e(e, n, c) {
|
|
292
296
|
T.current = c;
|
|
293
|
-
const { onDragOver: t } =
|
|
297
|
+
const { onDragOver: t } = s;
|
|
294
298
|
t == null || t(e, K([n._key])[0]);
|
|
295
299
|
}
|
|
296
|
-
function
|
|
300
|
+
function Ce(e, n) {
|
|
297
301
|
T.current = 0;
|
|
298
|
-
const { onDragLeave: c } =
|
|
302
|
+
const { onDragLeave: c } = s;
|
|
299
303
|
c == null || c(e, K([n._key])[0]);
|
|
300
304
|
}
|
|
301
|
-
function
|
|
305
|
+
function Ne(e, n) {
|
|
302
306
|
let c = f.current[e.parentKey];
|
|
303
307
|
for (; c; ) {
|
|
304
|
-
const { _key: t, parentKey:
|
|
308
|
+
const { _key: t, parentKey: l } = c;
|
|
305
309
|
if (t === n.props._key)
|
|
306
310
|
return !0;
|
|
307
|
-
if (
|
|
311
|
+
if (l === t)
|
|
308
312
|
return;
|
|
309
|
-
c = f.current[
|
|
313
|
+
c = f.current[l];
|
|
310
314
|
}
|
|
311
315
|
}
|
|
312
316
|
function Q(e, n) {
|
|
@@ -317,22 +321,22 @@ function Ge(r, fe) {
|
|
|
317
321
|
const c = e.key, t = n.key;
|
|
318
322
|
if (c !== void 0 || t !== void 0)
|
|
319
323
|
return c === t;
|
|
320
|
-
const
|
|
321
|
-
return
|
|
324
|
+
const l = e.props._key, r = n.props._key;
|
|
325
|
+
return l === void 0 && r === void 0 ? !1 : l === r;
|
|
322
326
|
}
|
|
323
327
|
function X(e, n, c) {
|
|
324
328
|
if (b.current) {
|
|
325
|
-
const { allowDrop: t } =
|
|
326
|
-
if (
|
|
329
|
+
const { allowDrop: t } = _(), { onDrop: l } = s, r = K([n._key])[0];
|
|
330
|
+
if (l && !Ne(n, b.current) && !Q(b.current, r)) {
|
|
327
331
|
if (t && !t({
|
|
328
|
-
dropNode:
|
|
332
|
+
dropNode: r,
|
|
329
333
|
dragNode: b.current,
|
|
330
334
|
dropPosition: c
|
|
331
335
|
}))
|
|
332
336
|
return;
|
|
333
|
-
|
|
337
|
+
l({
|
|
334
338
|
dragNode: b.current,
|
|
335
|
-
dropNode:
|
|
339
|
+
dropNode: r,
|
|
336
340
|
dropPosition: c,
|
|
337
341
|
e
|
|
338
342
|
});
|
|
@@ -340,7 +344,7 @@ function Ge(r, fe) {
|
|
|
340
344
|
}
|
|
341
345
|
}
|
|
342
346
|
function Y(e, n) {
|
|
343
|
-
const { allowDrop: c } =
|
|
347
|
+
const { allowDrop: c } = _();
|
|
344
348
|
let t = !0;
|
|
345
349
|
return typeof c == "function" && (t = c({
|
|
346
350
|
dropNode: K([e._key])[0],
|
|
@@ -349,21 +353,21 @@ function Ge(r, fe) {
|
|
|
349
353
|
})), t;
|
|
350
354
|
}
|
|
351
355
|
function W(e, n) {
|
|
352
|
-
const { currentExpandKeys: c, expandedKeys: t = [] } = o, { animation:
|
|
356
|
+
const { currentExpandKeys: c, expandedKeys: t = [] } = o, { animation: l } = _(), { onExpand: r } = s;
|
|
353
357
|
if (c.indexOf(n) > -1)
|
|
354
358
|
return;
|
|
355
|
-
let
|
|
356
|
-
e ?
|
|
357
|
-
const
|
|
358
|
-
return
|
|
359
|
-
}),
|
|
359
|
+
let i = [];
|
|
360
|
+
e ? i = Array.from(/* @__PURE__ */ new Set([...t, n])) : i = t.filter((d) => d !== n), "expandedKeys" in s || k((d) => {
|
|
361
|
+
const y = { ...d };
|
|
362
|
+
return y.expandedKeys = i, y.currentExpandKeys = l ? [...c, n] : [], y;
|
|
363
|
+
}), r == null || r(i, {
|
|
360
364
|
expanded: e,
|
|
361
365
|
node: K([n])[0],
|
|
362
|
-
expandedNodes: K(
|
|
366
|
+
expandedNodes: K(i)
|
|
363
367
|
});
|
|
364
368
|
}
|
|
365
369
|
function K(e) {
|
|
366
|
-
const { __PqbAdapterMode__: n } =
|
|
370
|
+
const { __PqbAdapterMode__: n } = s;
|
|
367
371
|
return A(
|
|
368
372
|
[].concat(e).map((t) => f.current[t]).filter(Boolean)
|
|
369
373
|
).map((t) => n ? {
|
|
@@ -380,49 +384,49 @@ function Ge(r, fe) {
|
|
|
380
384
|
};
|
|
381
385
|
}
|
|
382
386
|
function A(e, n) {
|
|
383
|
-
const { autoExpandParent: c } =
|
|
384
|
-
selectedKeys:
|
|
385
|
-
expandedKeys:
|
|
386
|
-
checkedKeys:
|
|
387
|
-
loadingKeys:
|
|
388
|
-
loadedKeys:
|
|
387
|
+
const { autoExpandParent: c } = _(), { loadMore: t } = s, {
|
|
388
|
+
selectedKeys: l,
|
|
389
|
+
expandedKeys: r,
|
|
390
|
+
checkedKeys: i,
|
|
391
|
+
loadingKeys: d = [],
|
|
392
|
+
loadedKeys: y = []
|
|
389
393
|
} = o, {
|
|
390
|
-
expandedKeysSet:
|
|
394
|
+
expandedKeysSet: C,
|
|
391
395
|
checkedKeysSet: u,
|
|
392
396
|
selectedKeysSet: w,
|
|
393
|
-
halfCheckedKeysSet:
|
|
394
|
-
} = j(n),
|
|
395
|
-
const h =
|
|
397
|
+
halfCheckedKeysSet: m
|
|
398
|
+
} = j(n), x = (a) => {
|
|
399
|
+
const h = a.children && a.children.length, D = {
|
|
396
400
|
isLeaf: !h,
|
|
397
401
|
autoExpandParent: h ? c : !1,
|
|
398
|
-
expanded:
|
|
402
|
+
expanded: C ? C.has(a._key) : r.indexOf(a._key) > -1
|
|
399
403
|
};
|
|
400
404
|
if (t) {
|
|
401
|
-
const
|
|
402
|
-
D.loaded =
|
|
405
|
+
const N = y.indexOf(a._key) > -1;
|
|
406
|
+
D.loaded = N, D.isLeaf = h ? !1 : a.isLeaf;
|
|
403
407
|
}
|
|
404
408
|
return {
|
|
405
|
-
...
|
|
409
|
+
...a,
|
|
406
410
|
...D,
|
|
407
|
-
selected: w.has(
|
|
408
|
-
indeterminated:
|
|
409
|
-
loading:
|
|
410
|
-
checked: u.has(
|
|
411
|
-
selectedKeys:
|
|
412
|
-
checkedKeys:
|
|
413
|
-
loadingKeys:
|
|
414
|
-
loadedKeys:
|
|
415
|
-
expandedKeys:
|
|
416
|
-
childrenData:
|
|
411
|
+
selected: w.has(a._key),
|
|
412
|
+
indeterminated: m.has(a._key),
|
|
413
|
+
loading: d.indexOf(a._key) > -1,
|
|
414
|
+
checked: u.has(a._key),
|
|
415
|
+
selectedKeys: l,
|
|
416
|
+
checkedKeys: i,
|
|
417
|
+
loadingKeys: d,
|
|
418
|
+
loadedKeys: y,
|
|
419
|
+
expandedKeys: r,
|
|
420
|
+
childrenData: a.children || [],
|
|
417
421
|
children: null
|
|
418
422
|
};
|
|
419
423
|
};
|
|
420
|
-
return He(e) ? e.map((
|
|
424
|
+
return He(e) ? e.map((a) => x(a)) : x(e);
|
|
421
425
|
}
|
|
422
426
|
function Z(e) {
|
|
423
|
-
|
|
427
|
+
k((n) => {
|
|
424
428
|
const c = { ...n }, { currentExpandKeys: t } = n;
|
|
425
|
-
return t.indexOf(e) > -1 && (c.currentExpandKeys = t.filter((
|
|
429
|
+
return t.indexOf(e) > -1 && (c.currentExpandKeys = t.filter((l, r, i) => l !== e)), c;
|
|
426
430
|
});
|
|
427
431
|
}
|
|
428
432
|
function p() {
|
|
@@ -441,62 +445,62 @@ function Ge(r, fe) {
|
|
|
441
445
|
handleNodeDrop: X,
|
|
442
446
|
isSameNode: Q
|
|
443
447
|
})), B(() => {
|
|
444
|
-
const e = U.current, n =
|
|
445
|
-
if (e !==
|
|
448
|
+
const e = U.current, n = _(e), c = _();
|
|
449
|
+
if (e !== s || !L(n, c)) {
|
|
446
450
|
const t = {};
|
|
447
451
|
if (Ke(
|
|
448
452
|
{ prevMergedProps: n, ...e },
|
|
449
|
-
{ ...c, ...
|
|
453
|
+
{ ...c, ...s }
|
|
450
454
|
)) {
|
|
451
|
-
const
|
|
452
|
-
t.treeData =
|
|
455
|
+
const r = H(), i = $(r);
|
|
456
|
+
t.treeData = r, t.nodeList = i;
|
|
453
457
|
}
|
|
454
|
-
if (t.treeData || "checkedKeys" in
|
|
455
|
-
const
|
|
456
|
-
|
|
458
|
+
if (t.treeData || "checkedKeys" in s && !L(e == null ? void 0 : e.checkedKeys, s.checkedKeys)) {
|
|
459
|
+
const r = "checkedKeys" in s ? s.checkedKeys : o.checkedKeys, { halfCheckedKeys: i, checkedKeys: d } = R(
|
|
460
|
+
r || []
|
|
457
461
|
);
|
|
458
|
-
L(
|
|
462
|
+
L(d, o.checkedKeys) || (t.checkedKeys = d), L(i, o.halfCheckedKeys) || (t.halfCheckedKeys = i);
|
|
459
463
|
}
|
|
460
|
-
|
|
461
|
-
const
|
|
462
|
-
return
|
|
463
|
-
}, []).filter((
|
|
464
|
-
var
|
|
465
|
-
if (f.current[
|
|
466
|
-
return f.current[
|
|
464
|
+
s.checkStrictly && "halfCheckedKeys" in s && !L(e == null ? void 0 : e.halfCheckedKeys, s.halfCheckedKeys) && (t.halfCheckedKeys = s.halfCheckedKeys), "expandedKeys" in s && !L(s.expandedKeys, e == null ? void 0 : e.expandedKeys) && (t.expandedKeys = s.expandedKeys, t.currentExpandKeys = c.animation ? [...t.expandedKeys ?? [], ...o.expandedKeys ?? []].reduce((r, i) => {
|
|
465
|
+
const d = r.indexOf(i);
|
|
466
|
+
return d === -1 ? r.push(i) : r.splice(d, 1), r;
|
|
467
|
+
}, []).filter((r, i, d) => {
|
|
468
|
+
var y;
|
|
469
|
+
if (f.current[r])
|
|
470
|
+
return f.current[r].pathParentKeys.some((u) => d.indexOf(u) > -1) ? !1 : (y = f.current[r].children) == null ? void 0 : y.length;
|
|
467
471
|
}) : []);
|
|
468
|
-
const
|
|
469
|
-
t.treeData &&
|
|
470
|
-
const
|
|
471
|
-
return
|
|
472
|
-
})), Object.keys(t).length &&
|
|
472
|
+
const l = t.currentExpandKeys || o.currentExpandKeys;
|
|
473
|
+
t.treeData && l && (t.currentExpandKeys = l.filter((r) => {
|
|
474
|
+
const i = t.treeData.find((d) => d.key === r);
|
|
475
|
+
return i && i.children && i.children.length;
|
|
476
|
+
})), Object.keys(t).length && k((r) => ({ ...r, ...t }));
|
|
473
477
|
}
|
|
474
|
-
return U.current =
|
|
478
|
+
return U.current = s, () => {
|
|
475
479
|
};
|
|
476
|
-
}), B(() => ("selectedKeys" in
|
|
480
|
+
}), B(() => ("selectedKeys" in s && !L(s.selectedKeys, o.selectedKeys) && k((e) => {
|
|
477
481
|
const n = { ...e };
|
|
478
|
-
return n.selectedKeys =
|
|
482
|
+
return n.selectedKeys = s.selectedKeys || [], n;
|
|
479
483
|
}), () => {
|
|
480
|
-
}), [
|
|
481
|
-
var
|
|
482
|
-
const e = H(), n = $(e, (
|
|
483
|
-
|
|
484
|
+
}), [s.selectedKeys, o.selectedKeys]), B(() => {
|
|
485
|
+
var l;
|
|
486
|
+
const e = H(), n = $(e, (l = g.getPrefixCls) == null ? void 0 : l.call(g, "tree")), { checkedKeys: c, halfCheckedKeys: t } = R(
|
|
487
|
+
s.checkedKeys || s.defaultCheckedKeys || []
|
|
484
488
|
);
|
|
485
|
-
return
|
|
486
|
-
let
|
|
487
|
-
return
|
|
488
|
-
...
|
|
489
|
-
selectedKeys:
|
|
489
|
+
return k((r) => {
|
|
490
|
+
let i = { ...r };
|
|
491
|
+
return i = {
|
|
492
|
+
...i,
|
|
493
|
+
selectedKeys: s.selectedKeys || s.defaultSelectedKeys || [],
|
|
490
494
|
checkedKeys: c,
|
|
491
495
|
halfCheckedKeys: t,
|
|
492
496
|
expandedKeys: G(
|
|
493
|
-
|
|
497
|
+
s.expandedKeys || s.defaultExpandedKeys
|
|
494
498
|
),
|
|
495
499
|
loadedKeys: [],
|
|
496
500
|
loadingKeys: [],
|
|
497
501
|
currentExpandKeys: [],
|
|
498
502
|
nodeList: n
|
|
499
|
-
},
|
|
503
|
+
}, i;
|
|
500
504
|
}), () => {
|
|
501
505
|
};
|
|
502
506
|
}, []);
|
|
@@ -510,12 +514,12 @@ function Ge(r, fe) {
|
|
|
510
514
|
icons: Le,
|
|
511
515
|
actionOnClick: we,
|
|
512
516
|
animation: ce
|
|
513
|
-
} =
|
|
517
|
+
} = _(), { loadMore: I, checkable: Oe } = s, re = te ? {
|
|
514
518
|
threshold: 100,
|
|
515
519
|
...te
|
|
516
520
|
} : ne ? { height: ne, threshold: 100 } : {
|
|
517
521
|
threshold: null
|
|
518
|
-
}, { getPrefixCls: F, rtl: Pe } =
|
|
522
|
+
}, { getPrefixCls: F, rtl: Pe } = g, P = F == null ? void 0 : F("tree");
|
|
519
523
|
return /* @__PURE__ */ se(
|
|
520
524
|
We.Provider,
|
|
521
525
|
{
|
|
@@ -532,12 +536,12 @@ function Ge(r, fe) {
|
|
|
532
536
|
onCheck: J,
|
|
533
537
|
onNodeDragStart: xe,
|
|
534
538
|
onNodeDragEnd: ge,
|
|
535
|
-
onNodeDragLeave:
|
|
536
|
-
onNodeDragOver:
|
|
539
|
+
onNodeDragLeave: Ce,
|
|
540
|
+
onNodeDragOver: _e,
|
|
537
541
|
onNodeDrop: X,
|
|
538
542
|
onExpand: W,
|
|
539
|
-
renderExtra:
|
|
540
|
-
renderTitle:
|
|
543
|
+
renderExtra: s.renderExtra,
|
|
544
|
+
renderTitle: s.renderTitle,
|
|
541
545
|
loadMore: I && me,
|
|
542
546
|
allowDrop: Y,
|
|
543
547
|
actionOnClick: we,
|
|
@@ -560,34 +564,34 @@ function Ge(r, fe) {
|
|
|
560
564
|
be
|
|
561
565
|
),
|
|
562
566
|
style: Ee,
|
|
563
|
-
filterNode:
|
|
567
|
+
filterNode: s.filterNode,
|
|
564
568
|
virtualListProps: re,
|
|
565
569
|
expandedKeys: o.expandedKeys,
|
|
566
570
|
currentExpandKeys: o.currentExpandKeys,
|
|
567
571
|
getNodeProps: A,
|
|
568
572
|
getDataSet: j,
|
|
569
573
|
nodeList: o.nodeList,
|
|
570
|
-
onMouseDown:
|
|
574
|
+
onMouseDown: s.onMouseDown,
|
|
571
575
|
ariaProps: {
|
|
572
576
|
role: "tree",
|
|
573
|
-
"aria-multiselectable":
|
|
577
|
+
"aria-multiselectable": s.multiple,
|
|
574
578
|
tabIndex: 0,
|
|
575
|
-
...Re(
|
|
579
|
+
...Re(s)
|
|
576
580
|
}
|
|
577
581
|
}
|
|
578
582
|
)
|
|
579
583
|
}
|
|
580
584
|
);
|
|
581
585
|
}
|
|
582
|
-
const
|
|
586
|
+
const S = ve(
|
|
583
587
|
Ge
|
|
584
588
|
);
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
589
|
+
S.displayName = "Tree";
|
|
590
|
+
S.SHOW_PARENT = ae;
|
|
591
|
+
S.SHOW_ALL = ye;
|
|
592
|
+
S.SHOW_CHILD = ue;
|
|
593
|
+
S.Node = ie;
|
|
590
594
|
export {
|
|
591
595
|
ie as TreeNode,
|
|
592
|
-
|
|
596
|
+
S as default
|
|
593
597
|
};
|