@unicom-cloud/ui 0.8.65 → 0.8.67
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/Affix.js +79 -79
- package/Alert.js +46 -46
- package/Anchor.js +1 -1
- package/AutoComplete.js +74 -74
- package/Avatar.js +36 -36
- package/BackTop.js +35 -35
- package/Badge.js +55 -55
- package/Breadcrumb.js +42 -42
- package/Button.js +24 -24
- package/Calendar.js +230 -230
- package/Card.js +18 -18
- package/Carousel.js +165 -165
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +26 -26
- package/Comment.js +18 -18
- package/ConfigProvider.js +2 -2
- package/Copy.js +28 -27
- package/DatePicker.js +872 -871
- package/Descriptions.js +34 -34
- package/Divider.js +19 -19
- package/Draggable.js +27 -26
- package/Drawer.js +1 -1
- package/Dropdown.js +110 -110
- package/Empty.js +3 -3
- package/Form.js +984 -945
- package/Grid.js +34 -34
- package/Icon.js +16 -16
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +7 -6
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +24 -24
- package/Link.js +30 -30
- package/List.js +95 -95
- package/Mentions.js +85 -84
- package/Menu.js +2 -2
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +14 -3
- package/Notification.js +9 -7
- package/OverflowEllipsis.js +64 -62
- package/PageHeader.js +73 -73
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +60 -60
- package/Popover.js +31 -31
- package/Portal.js +23 -31
- package/Progress.js +22 -22
- package/Radio.js +2 -2
- package/Rate.js +24 -24
- package/ResizeBox.js +274 -271
- package/Result.js +3 -3
- package/Select.js +4 -4
- package/SelectView.js +257 -237
- package/Skeleton.js +46 -46
- package/Slider.js +286 -283
- package/Space.js +28 -28
- package/SpeechSynthesis.js +62 -55
- package/Spin.js +23 -23
- package/Statistic.js +80 -80
- package/Steps.js +67 -67
- package/Switch.js +47 -47
- package/Table.js +1463 -1395
- package/Tabs.js +5 -5
- package/Tag.js +45 -45
- package/TimePicker.js +154 -154
- package/Timeline.js +2 -2
- package/Tooltip.js +80 -79
- package/Transfer.js +103 -102
- package/Tree.js +3 -2
- package/TreeSelect.js +2 -2
- package/Trigger.js +699 -772
- package/Typography.js +756 -6
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DIx0qmCq.js → -UuKKT0Z.js} +29 -29
- package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
- package/chunk/B5gK1Idp.js +19 -0
- package/chunk/B7FlazNB.js +24 -0
- package/chunk/{DXZEpA3t.js → BBvWDeuZ.js} +67 -67
- package/chunk/BCftTxEy.js +626 -0
- package/chunk/{CsbCHnFk.js → BGny4zSb.js} +60 -60
- package/chunk/BHF15Dog.js +98 -0
- package/chunk/BJQ5UNa-.js +1585 -0
- package/chunk/BP9sYyk9.js +8 -0
- package/chunk/BUdtVdnv.js +38 -0
- package/chunk/BVQlOzTS.js +11 -0
- package/chunk/B__a_gb_.js +519 -0
- package/chunk/BbEYToV1.js +10 -0
- package/chunk/BbdDQAnm.js +15 -0
- package/chunk/BdUcgWdu.js +11 -0
- package/chunk/BfbXSG70.js +26 -0
- package/chunk/BndfNLK4.js +186 -0
- package/chunk/BoMCZV6K.js +1098 -0
- package/chunk/Br0B6y1T.js +18 -0
- package/chunk/BrOW642m.js +130 -0
- package/chunk/BxUs8_Cr.js +9 -0
- package/chunk/{DK4KcodH.js → C42LIMP9.js} +244 -242
- package/chunk/C4YkFMzC.js +778 -0
- package/chunk/{CF6p9R93.js → C9Wcraj7.js} +21 -21
- package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
- package/chunk/CJ_o9tZM.js +5 -0
- package/chunk/{Bqk6yh16.js → CK5m7rLl.js} +36 -36
- package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
- package/chunk/CLiqJm_T.js +10 -0
- package/chunk/{DjtWv6Wn.js → CNmmhbCn.js} +32 -32
- package/chunk/{BUCEs557.js → CP0odX99.js} +51 -51
- package/chunk/CPT-OZH2.js +14 -0
- package/chunk/CVSF8p0O.js +698 -0
- package/chunk/C_agcwLN.js +31 -0
- package/chunk/{DTjcKyDN.js → C_gJWGGh.js} +201 -201
- package/chunk/{CPcm9Cm5.js → CaasmWg_.js} +11 -11
- package/chunk/Ce1j9KTi.js +6 -0
- package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
- package/chunk/CkNSv2U7.js +56 -0
- package/chunk/Cp2f70gB.js +9 -0
- package/chunk/CpegYjdC.js +16 -0
- package/chunk/CucI3KZr.js +20 -0
- package/chunk/CwoFBTYz.js +11 -0
- package/chunk/D2KPqPhV.js +17 -0
- package/chunk/D7NyvE5f.js +17 -0
- package/chunk/D8oTPQ2H.js +384 -0
- package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
- package/chunk/{Dnycc1qJ.js → DFrfrmfK.js} +120 -119
- package/chunk/DGTIZ_0O.js +6 -0
- package/chunk/DJfpiZn_.js +25 -0
- package/chunk/DKr2_PYd.js +34 -0
- package/chunk/DNUz6zgo.js +11 -0
- package/chunk/DRtM649q.js +11 -0
- package/chunk/DS_mUWn6.js +41 -0
- package/chunk/DU6bs_19.js +10 -0
- package/chunk/DWdbwz22.js +10 -0
- package/chunk/DcveZuqd.js +6 -0
- package/chunk/DdVFknul.js +24 -0
- package/chunk/DgRfikwe.js +16 -0
- package/chunk/{DG-epQqF.js → DkyR2EfG.js} +66 -66
- package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
- package/chunk/DnrZEnQ_.js +27 -0
- package/chunk/DsRSHWtX.js +1025 -0
- package/chunk/Dz5BdmXo.js +270 -0
- package/chunk/EANe01DF.js +1030 -0
- package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
- package/chunk/GoNx5R4F.js +873 -0
- package/chunk/HDUQku8d.js +20 -0
- package/chunk/HrAP__Hi.js +25 -0
- package/chunk/JPPo5nY_.js +9 -0
- package/chunk/{CIlGCedk.js → SLWP34OR.js} +90 -85
- package/chunk/VVKtwaGf.js +278 -0
- package/chunk/WPNpLxSI.js +16 -0
- package/chunk/{DLvMA1OW.js → WpO_DsK4.js} +49 -48
- package/chunk/fdU3ang6.js +14 -0
- package/chunk/{DqFhzTWC.js → fkclKOAL.js} +298 -292
- package/chunk/flvYlqx3.js +22 -0
- package/chunk/kTDayEpF.js +288 -0
- package/chunk/{DQDkV47j.js → pZoNQ75H.js} +31 -31
- package/chunk/qFf1w_Jq.js +8 -0
- package/chunk/{CH1UUxsg.js → w-kM1L5W.js} +155 -155
- package/hooks/index.js +53 -49
- package/hooks/useComputedState.js +2 -10
- package/hooks/useCreate.js +2 -7
- package/hooks/useForceUpdate.js +2 -7
- package/hooks/useId.js +2 -10
- package/hooks/useInView.js +2 -30
- package/hooks/useIntersectionObserver.js +2 -23
- package/hooks/useInterval.js +2 -17
- package/hooks/useIsFirstRender.js +2 -9
- package/hooks/useIsomorphicLayoutEffect.js +2 -5
- package/hooks/useKeyboardEvent.js +2 -16
- package/hooks/useMedia.js +2 -15
- package/hooks/useMergeProps.js +2 -18
- package/hooks/useMergeValue.js +2 -19
- package/hooks/useOnlineStatus.js +4 -0
- package/hooks/useOverflowHidden.js +2 -25
- package/hooks/useOverrideRef.js +2 -13
- package/hooks/usePersistCallback.js +2 -13
- package/hooks/usePrefersColorSchemeDark.js +4 -0
- package/hooks/usePrevious.js +2 -9
- package/hooks/useRefs.js +2 -9
- package/hooks/useResizeObserver.js +2 -15
- package/hooks/useStateCallback.js +2 -15
- package/hooks/useStateWithPromise.js +2 -24
- package/hooks/useUpdateEffect.js +2 -9
- package/hooks/useVerificationCode.js +73 -0
- package/hooks/useWatch.js +2 -10
- package/hooks/{use-watermark.js → useWatermark.js} +27 -26
- package/hooks/useWindowSize.js +2 -20
- package/index.js +571 -584
- package/locale/en-US.js +4 -2
- package/locale/interface.js +1 -4
- package/locale/ja-JP.js +3 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +3 -1
- package/locale/zh-HK.js +3 -1
- package/locale/zh-TW.js +3 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -1
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
- package/types/form/Control-old.d.ts +56 -0
- package/types/form/Control.d.ts +6 -54
- package/types/form/FormItem.d.ts +1 -1
- package/types/form/store.d.ts +0 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useComputedState.d.ts +1 -4
- package/types/hooks/useCreate.d.ts +1 -2
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useId.d.ts +1 -2
- package/types/hooks/useInView.d.ts +1 -11
- package/types/hooks/useIntersectionObserver.d.ts +1 -7
- package/types/hooks/useInterval.d.ts +1 -2
- package/types/hooks/useIsFirstRender.d.ts +1 -2
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/hooks/useKeyboardEvent.d.ts +1 -8
- package/types/hooks/useMedia.d.ts +1 -2
- package/types/hooks/useMergeProps.d.ts +1 -5
- package/types/hooks/useMergeValue.d.ts +1 -6
- package/types/hooks/useOnlineStatus.d.ts +1 -0
- package/types/hooks/useOverflowHidden.d.ts +1 -5
- package/types/hooks/useOverrideRef.d.ts +1 -6
- package/types/hooks/usePersistCallback.d.ts +1 -2
- package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/hooks/usePrevious.d.ts +1 -3
- package/types/hooks/useRefs.d.ts +1 -2
- package/types/hooks/useResizeObserver.d.ts +1 -6
- package/types/hooks/useStateCallback.d.ts +1 -5
- package/types/hooks/useStateWithPromise.d.ts +1 -2
- package/types/hooks/useUpdateEffect.d.ts +1 -3
- package/types/hooks/useWatch.d.ts +1 -3
- package/types/hooks/useWindowSize.d.ts +1 -5
- package/types/image/interface.d.ts +1 -0
- package/types/index.d.ts +157 -86
- package/types/input/Input.d.ts +1 -1
- package/types/input/Textarea.d.ts +2 -2
- package/types/locale/en-US.d.ts +2 -0
- package/types/locale/interface.d.ts +1 -2
- package/types/locale/ja-JP.d.ts +2 -0
- package/types/locale/zh-CN.d.ts +2 -0
- package/types/locale/zh-HK.d.ts +2 -0
- package/types/locale/zh-TW.d.ts +2 -0
- package/types/menu/context.d.ts +1 -1
- package/types/message/index.d.ts +14 -14
- package/types/message/interface.d.ts +2 -0
- package/types/modal/config.d.ts +0 -1
- package/types/modal/interface.d.ts +0 -1
- package/types/notice/index.d.ts +2 -27
- package/types/notification/index.d.ts +15 -16
- package/types/notification/interface.d.ts +2 -0
- package/types/notification/withNotification.d.ts +2 -0
- package/types/select/util.d.ts +1 -2
- package/types/select-view/interface.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +1 -1
- package/types/table/constant.d.ts +2 -0
- package/types/table/hook/useThResizable.d.ts +7 -0
- package/types/table/index.d.ts +10 -1
- package/types/table/style/index.d.ts +1 -0
- package/types/table/th-resizable/index.d.ts +2 -0
- package/types/table/thead/Column.d.ts +1 -2
- package/types/tree/Tree.d.ts +12 -67
- package/types/tree-select/Select.d.ts +2 -2
- package/types/trigger/index.d.ts +2 -120
- package/types/trigger/interface.d.ts +2 -1
- package/types/utils/CSSTransition.d.ts +2 -3
- package/types/utils/caseName.d.ts +1 -1
- package/types/utils/className.d.ts +1 -1
- package/types/utils/constant.d.ts +2 -2
- package/types/utils/copy.d.ts +1 -1
- package/types/utils/dayjs.d.ts +1 -21
- package/types/utils/dom.d.ts +1 -6
- package/types/utils/fileToURL.d.ts +1 -1
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/getHighlightText.d.ts +1 -5
- package/types/utils/getHotkeyHandler.d.ts +1 -8
- package/types/utils/getStringLength.d.ts +1 -1
- package/types/utils/include.d.ts +1 -1
- package/types/utils/index.d.ts +3 -4
- package/types/utils/is.d.ts +1 -16
- package/types/utils/keyboardCode.d.ts +3 -0
- package/types/utils/lodash.d.ts +1 -17
- package/types/utils/mergeProps.d.ts +1 -1
- package/types/utils/mergedToString.d.ts +1 -1
- package/types/utils/omit.d.ts +1 -1
- package/types/utils/pad.d.ts +1 -2
- package/types/utils/pick.d.ts +2 -4
- package/types/utils/reactDOM.d.ts +1 -7
- package/types/utils/resizeObserverEffect.d.ts +2 -0
- package/types/utils/saveAs.d.ts +1 -1
- package/types/utils/screenfull.d.ts +2 -0
- package/types/utils/scrollIntoView.d.ts +1 -2
- package/types/utils/style.d.ts +1 -3
- package/types/utils/throttleByRaf.d.ts +1 -5
- package/types/utils/throttleByRaf2.d.ts +1 -0
- package/types/utils/warning.d.ts +1 -2
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +2 -6
- package/utils/className.js +2 -2
- package/utils/constant.js +8 -9
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/dayjs.js +14 -173
- package/utils/dom.js +33 -29
- package/utils/fillNBSP.js +2 -4
- package/utils/getHighlightText.js +2 -38
- package/utils/getHotkeyHandler.js +2 -25
- package/utils/getStringLength.js +2 -7
- package/utils/include.js +2 -7
- package/utils/index.js +237 -240
- package/utils/is.js +116 -156
- package/utils/keyboardCode.js +27 -0
- package/utils/mergeProps.js +2 -9
- package/utils/mergedToString.js +2 -13
- package/utils/omit.js +2 -9
- package/utils/pad.js +12 -12
- package/utils/pick.js +4 -15
- package/utils/reactDOM.js +3 -54
- package/utils/resizeObserverEffect.js +4 -0
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +4 -0
- package/utils/scrollIntoView.js +2 -21
- package/utils/style.js +12 -11
- package/utils/throttleByRaf.js +13 -12
- package/utils/throttleByRaf2.js +5 -0
- package/utils/warning.js +5 -4
- package/NotificationBase.js +0 -53
- package/chunk/1GQdnTJp.js +0 -284
- package/chunk/BAWsPQBM.js +0 -11
- package/chunk/BS09tn7B.js +0 -638
- package/chunk/BqGtwxTi.js +0 -777
- package/chunk/BqufsN8i.js +0 -376
- package/chunk/BtlvlGQN.js +0 -278
- package/chunk/C2lIz2F9.js +0 -60
- package/chunk/CGZ0In1p.js +0 -776
- package/chunk/CWgltRVL.js +0 -698
- package/chunk/D3NFxdmG.js +0 -518
- package/chunk/DApXtulb.js +0 -1102
- package/chunk/DlLL5JQo.js +0 -1501
- package/chunk/Dv_xRzvR.js +0 -269
- package/chunk/Ek8U5CTN.js +0 -1032
- package/chunk/ewRDIDUz.js +0 -995
- package/chunk/l0sNRNKZ.js +0 -1
- package/chunk/tYXLFPVI.js +0 -871
- package/hooks/use-verification-code.js +0 -73
- package/types/notification-base/index.d.ts +0 -15
- package/types/notification-base/style/index.d.ts +0 -2
- package/types/trigger/Portal.d.ts +0 -7
- package/types/utils/keyCode.d.ts +0 -45
- package/types/utils/raf.d.ts +0 -3
- package/types/utils/throttleByRafV2.d.ts +0 -5
- package/utils/keyCode.js +0 -12
- package/utils/raf.js +0 -19
- package/utils/throttleByRafV2.js +0 -16
- /package/style/{variable.less → variables.less} +0 -0
|
@@ -0,0 +1,1025 @@
|
|
|
1
|
+
import { jsx as L, jsxs as ge, Fragment as Ye } from "react/jsx-runtime";
|
|
2
|
+
import xe, { createContext as ze, useContext as de, useRef as Y, useEffect as ae, useMemo as le, forwardRef as De, useState as Se, useCallback as ke, useImperativeHandle as ve, createElement as be } from "react";
|
|
3
|
+
import { G as Be } from "./CSC_V_25.js";
|
|
4
|
+
import q from "lodash/get";
|
|
5
|
+
import me from "lodash/has";
|
|
6
|
+
import qe from "lodash/isArray";
|
|
7
|
+
import G from "lodash/isEqualWith";
|
|
8
|
+
import Z from "lodash/isFunction";
|
|
9
|
+
import Pe from "lodash/isUndefined";
|
|
10
|
+
import { a as Ne, I as Ge } from "./BJQ5UNa-.js";
|
|
11
|
+
import { m as ee } from "./JPPo5nY_.js";
|
|
12
|
+
import { r as Je } from "./D7NyvE5f.js";
|
|
13
|
+
import Qe from "@unicom-cloud/icons/IconUiCaretDown";
|
|
14
|
+
import Xe from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
15
|
+
import Ze from "@unicom-cloud/icons/IconUiFile";
|
|
16
|
+
import en from "@unicom-cloud/icons/IconUiLoading";
|
|
17
|
+
import { C as nn } from "./DkyR2EfG.js";
|
|
18
|
+
import tn from "../utils/throttleByRaf.js";
|
|
19
|
+
import cn from "lodash/isNumber";
|
|
20
|
+
import { N as rn } from "./DC1iHEiy.js";
|
|
21
|
+
import { V as Oe } from "./B__a_gb_.js";
|
|
22
|
+
import { f as sn } from "./DdVFknul.js";
|
|
23
|
+
const Ce = ze({});
|
|
24
|
+
function an(e) {
|
|
25
|
+
return e.key || e._key;
|
|
26
|
+
}
|
|
27
|
+
const ln = (e) => {
|
|
28
|
+
var z;
|
|
29
|
+
const k = de(Ce), { getPrefixCls: i } = de(Ne), D = i("tree-node"), { expandedKeys: h, currentExpandKeys: l } = k.getTreeState(), g = e.expanded, N = Y(e.childrenData);
|
|
30
|
+
N.current = e.childrenData, ae(() => () => {
|
|
31
|
+
var K;
|
|
32
|
+
(K = k.onExpandEnd) == null || K.call(k, e._key);
|
|
33
|
+
}, []);
|
|
34
|
+
const d = le(() => {
|
|
35
|
+
const K = [], P = (I) => {
|
|
36
|
+
I.forEach((S) => {
|
|
37
|
+
const _ = k.getFieldInfo(S);
|
|
38
|
+
K.push(_), _.children && _.children.length && P(_.children);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return P(N.current || []), K;
|
|
42
|
+
}, [g]), x = le(() => {
|
|
43
|
+
const K = [];
|
|
44
|
+
if (d.length) {
|
|
45
|
+
const P = new Set(h || []);
|
|
46
|
+
d.forEach((I) => {
|
|
47
|
+
var p;
|
|
48
|
+
let S;
|
|
49
|
+
const _ = {
|
|
50
|
+
...k.key2nodeProps[I.key]
|
|
51
|
+
};
|
|
52
|
+
if (g)
|
|
53
|
+
S = _.parentKey === e._key || ((p = _.pathParentKeys) == null ? void 0 : p.every((W) => P.has(W)));
|
|
54
|
+
else if (_.pathParentKeys) {
|
|
55
|
+
const W = _.pathParentKeys.indexOf(e._key);
|
|
56
|
+
S = _.pathParentKeys.slice(W + 1).every((E) => P.has(E));
|
|
57
|
+
}
|
|
58
|
+
S && K.push({
|
|
59
|
+
..._,
|
|
60
|
+
key: I.key
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return k.getNodeProps(K);
|
|
65
|
+
}, [d, e._key, g, h]);
|
|
66
|
+
let C = (z = k.virtualListProps) == null ? void 0 : z.height;
|
|
67
|
+
return C = cn(C) ? C : 0, ae(() => {
|
|
68
|
+
l.indexOf(e._key) > -1 && x.length === 0 && k.onExpandEnd(e._key);
|
|
69
|
+
}, [x, l]), /* @__PURE__ */ L(
|
|
70
|
+
rn,
|
|
71
|
+
{
|
|
72
|
+
in: l.indexOf(e._key) > -1 && x.length > 0,
|
|
73
|
+
unmountOnExit: !0,
|
|
74
|
+
classNames: "tree-slide-expand",
|
|
75
|
+
timeout: {
|
|
76
|
+
enter: 200,
|
|
77
|
+
exit: 0
|
|
78
|
+
},
|
|
79
|
+
onEnter: (K) => {
|
|
80
|
+
if (!K)
|
|
81
|
+
return;
|
|
82
|
+
const P = K.scrollHeight;
|
|
83
|
+
K.style.height = g ? 0 : `${Math.min(C || P, K.scrollHeight)}px`;
|
|
84
|
+
},
|
|
85
|
+
onEntering: (K) => {
|
|
86
|
+
if (!K)
|
|
87
|
+
return;
|
|
88
|
+
const P = K.scrollHeight;
|
|
89
|
+
K.style.height = g ? `${Math.min(C || P, P)}px` : 0;
|
|
90
|
+
},
|
|
91
|
+
onEntered: (K) => {
|
|
92
|
+
K && (K.style.height = e.expanded ? "" : 0, k.onExpandEnd(e._key));
|
|
93
|
+
},
|
|
94
|
+
onExit: (K) => {
|
|
95
|
+
K && (K.style.display = "none");
|
|
96
|
+
},
|
|
97
|
+
children: /* @__PURE__ */ L(
|
|
98
|
+
Oe,
|
|
99
|
+
{
|
|
100
|
+
itemKey: an,
|
|
101
|
+
className: `${D}-list`,
|
|
102
|
+
isStaticItemHeight: !1,
|
|
103
|
+
...k.virtualListProps,
|
|
104
|
+
data: x,
|
|
105
|
+
"aria-hidden": !0,
|
|
106
|
+
style: { overflow: "hidden" },
|
|
107
|
+
children: (K) => {
|
|
108
|
+
const { key: P, ...I } = K ?? {};
|
|
109
|
+
return /* @__PURE__ */ L(oe, { ...I }, P);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
function dn(e, k) {
|
|
117
|
+
const i = de(Ce), { getPrefixCls: D } = de(Ne), h = Y(), [l, g] = Se({
|
|
118
|
+
isAllowDrop: !0,
|
|
119
|
+
isDragOver: !1,
|
|
120
|
+
dragPosition: 0,
|
|
121
|
+
isDragging: !1
|
|
122
|
+
}), {
|
|
123
|
+
_key: N = "",
|
|
124
|
+
title: d,
|
|
125
|
+
icon: x,
|
|
126
|
+
checkable: C,
|
|
127
|
+
selected: z,
|
|
128
|
+
disabled: K,
|
|
129
|
+
disableCheckbox: P,
|
|
130
|
+
isLeaf: I,
|
|
131
|
+
draggable: S,
|
|
132
|
+
expanded: _,
|
|
133
|
+
showLine: p,
|
|
134
|
+
loading: W,
|
|
135
|
+
selectable: E = !0
|
|
136
|
+
} = e, f = D("tree-node"), H = ee(
|
|
137
|
+
f,
|
|
138
|
+
{
|
|
139
|
+
[`${f}-selected`]: z,
|
|
140
|
+
[`${f}-is-leaf`]: I,
|
|
141
|
+
[`${f}-expanded`]: _,
|
|
142
|
+
[`${f}-disabled-selectable`]: !E,
|
|
143
|
+
[`${f}-disabled`]: K,
|
|
144
|
+
[`${f}-draggable`]: S
|
|
145
|
+
},
|
|
146
|
+
e.className
|
|
147
|
+
), M = (() => {
|
|
148
|
+
const o = Z(i.icons) ? i.icons(e) : i.icons, u = Z(e.icons) ? e.icons(e) : e.icons;
|
|
149
|
+
return { ...o, ...u };
|
|
150
|
+
})(), T = ke(
|
|
151
|
+
(o) => {
|
|
152
|
+
var u;
|
|
153
|
+
o !== _ && ((u = i.onExpand) == null || u.call(i, o, N));
|
|
154
|
+
},
|
|
155
|
+
[_, i.onExpand]
|
|
156
|
+
), F = ke(async () => {
|
|
157
|
+
var m;
|
|
158
|
+
const { isLeaf: o, expanded: u } = e;
|
|
159
|
+
o || (!((m = e.childrenData) != null && m.length) && Z(i.loadMore) && !u ? await i.loadMore(e) : T(!u));
|
|
160
|
+
}, [e, T, i.loadMore]), ue = () => {
|
|
161
|
+
if (W)
|
|
162
|
+
return "loadingIcon" in M ? M.loadingIcon : /* @__PURE__ */ L(en, {});
|
|
163
|
+
let o = null, u = !1;
|
|
164
|
+
if (I)
|
|
165
|
+
p && (o = "switcherIcon" in M ? M.switcherIcon : /* @__PURE__ */ L(Ze, {}), u = !0);
|
|
166
|
+
else {
|
|
167
|
+
const m = p ? /* @__PURE__ */ L("span", { className: `${f}-${_ ? "minus" : "plus"}-icon` }) : /* @__PURE__ */ L(Qe, {});
|
|
168
|
+
o = "switcherIcon" in M ? M.switcherIcon : m, u = !p;
|
|
169
|
+
}
|
|
170
|
+
if (o)
|
|
171
|
+
return o = /* @__PURE__ */ L(
|
|
172
|
+
"span",
|
|
173
|
+
{
|
|
174
|
+
className: `${f}-switcher-icon`,
|
|
175
|
+
"aria-label": _ ? "fold button" : "expand button",
|
|
176
|
+
role: "button",
|
|
177
|
+
tabIndex: 0,
|
|
178
|
+
onClick: F,
|
|
179
|
+
children: o
|
|
180
|
+
}
|
|
181
|
+
), u ? /* @__PURE__ */ L(Ge, { prefix: f, children: o }) : o;
|
|
182
|
+
}, J = ke(
|
|
183
|
+
tn((o) => {
|
|
184
|
+
var se;
|
|
185
|
+
const u = h.current;
|
|
186
|
+
if (!u)
|
|
187
|
+
return;
|
|
188
|
+
const m = u.getBoundingClientRect(), B = window.pageYOffset + m.top, R = o.pageY, te = m.height / 4, ce = R - B, re = ce < te ? -1 : ce < m.height - te ? 0 : 1, ye = i.allowDrop(e, re);
|
|
189
|
+
g({
|
|
190
|
+
...l,
|
|
191
|
+
isAllowDrop: ye,
|
|
192
|
+
isDragOver: !0,
|
|
193
|
+
dragPosition: re
|
|
194
|
+
}), (se = i.onNodeDragOver) == null || se.call(i, o, e, re);
|
|
195
|
+
}),
|
|
196
|
+
[i.onNodeDragOver]
|
|
197
|
+
);
|
|
198
|
+
function ne(o, u) {
|
|
199
|
+
var R;
|
|
200
|
+
const { disableCheckbox: m, disabled: B } = e;
|
|
201
|
+
m || B || (R = i.onCheck) == null || R.call(i, o, N, u);
|
|
202
|
+
}
|
|
203
|
+
return /* @__PURE__ */ ge(Ye, { children: [
|
|
204
|
+
/* @__PURE__ */ ge(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
207
|
+
style: e.style,
|
|
208
|
+
className: H,
|
|
209
|
+
ref: k,
|
|
210
|
+
role: "treeitem",
|
|
211
|
+
"aria-disabled": K,
|
|
212
|
+
"aria-expanded": _,
|
|
213
|
+
"aria-level": e._level,
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ L("span", { className: `${f}-indent`, "aria-hidden": !0, children: [...Array(e._level)].map((o, u) => /* @__PURE__ */ L(
|
|
216
|
+
"span",
|
|
217
|
+
{
|
|
218
|
+
className: ee(`${f}-indent-block`, {
|
|
219
|
+
[`${f}-indent-block-lineless`]: e._lineless && e._lineless[u]
|
|
220
|
+
})
|
|
221
|
+
},
|
|
222
|
+
u
|
|
223
|
+
)) }),
|
|
224
|
+
/* @__PURE__ */ L(
|
|
225
|
+
"span",
|
|
226
|
+
{
|
|
227
|
+
className: ee(`${f}-switcher`, {
|
|
228
|
+
[`${f}-switcher-expanded`]: _
|
|
229
|
+
}),
|
|
230
|
+
children: ue()
|
|
231
|
+
}
|
|
232
|
+
),
|
|
233
|
+
C ? /* @__PURE__ */ L(
|
|
234
|
+
nn,
|
|
235
|
+
{
|
|
236
|
+
disabled: P || K,
|
|
237
|
+
value: N,
|
|
238
|
+
indeterminate: e.indeterminated,
|
|
239
|
+
checked: e.checked,
|
|
240
|
+
onChange: ne
|
|
241
|
+
}
|
|
242
|
+
) : null,
|
|
243
|
+
/* @__PURE__ */ ge(
|
|
244
|
+
"span",
|
|
245
|
+
{
|
|
246
|
+
"aria-grabbed": l.isDragging,
|
|
247
|
+
ref: h,
|
|
248
|
+
className: ee(`${f}-title`, {
|
|
249
|
+
[`${f}-title-draggable`]: S,
|
|
250
|
+
[`${f}-title-gap-top`]: l.isDragOver && l.isAllowDrop && l.dragPosition < 0,
|
|
251
|
+
[`${f}-title-gap-bottom`]: l.isDragOver && l.isAllowDrop && l.dragPosition > 0,
|
|
252
|
+
[`${f}-title-highlight`]: !l.isDragging && l.isDragOver && l.isAllowDrop && l.dragPosition === 0,
|
|
253
|
+
[`${f}-title-dragging`]: l.isDragging,
|
|
254
|
+
[`${f}-title-block`]: e.blockNode
|
|
255
|
+
}),
|
|
256
|
+
onClick: (o) => {
|
|
257
|
+
const {
|
|
258
|
+
onSelect: u,
|
|
259
|
+
onSelect_: m,
|
|
260
|
+
// 潘启宝添加
|
|
261
|
+
actionOnClick: B
|
|
262
|
+
} = i;
|
|
263
|
+
if (!e.disabled) {
|
|
264
|
+
const R = [].concat(B);
|
|
265
|
+
E && R.indexOf("select") > -1 && (u == null || u(N, o)), m == null || m(e), R.indexOf("expand") > -1 && F(), C && R.indexOf("check") > -1 && ne(!e.checked, o);
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
draggable: S,
|
|
269
|
+
onDrop: (o) => {
|
|
270
|
+
var u;
|
|
271
|
+
o.stopPropagation(), o.preventDefault(), (u = i.onNodeDrop) == null || u.call(i, o, e, l.dragPosition), J.cancel(), g({
|
|
272
|
+
...l,
|
|
273
|
+
isDragOver: !1,
|
|
274
|
+
dragPosition: 0
|
|
275
|
+
});
|
|
276
|
+
},
|
|
277
|
+
onDragStart: (o) => {
|
|
278
|
+
var u;
|
|
279
|
+
if (S) {
|
|
280
|
+
o.stopPropagation(), g({ ...l, isDragging: !0 });
|
|
281
|
+
try {
|
|
282
|
+
o.dataTransfer.setData("text/plain", "");
|
|
283
|
+
} catch (m) {
|
|
284
|
+
console.error(m);
|
|
285
|
+
}
|
|
286
|
+
(u = i.onNodeDragStart) == null || u.call(i, o, e);
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
onDragEnd: (o) => {
|
|
290
|
+
var u;
|
|
291
|
+
S && (o.stopPropagation(), J.cancel(), g({ ...l, isDragOver: !1, isDragging: !1 }), (u = i.onNodeDragEnd) == null || u.call(i, o, e));
|
|
292
|
+
},
|
|
293
|
+
onDragOver: (o) => {
|
|
294
|
+
o.preventDefault(), o.stopPropagation(), o.persist(), J(o);
|
|
295
|
+
},
|
|
296
|
+
onDragLeave: (o) => {
|
|
297
|
+
var u;
|
|
298
|
+
S && (o.stopPropagation(), J.cancel(), g({ ...l, isDragOver: !1 }), (u = i.onNodeDragLeave) == null || u.call(i, o, e));
|
|
299
|
+
},
|
|
300
|
+
children: [
|
|
301
|
+
x && /* @__PURE__ */ L("span", { className: `${f}-icon ${f}-custom-icon`, children: x }),
|
|
302
|
+
/* @__PURE__ */ L("span", { className: `${f}-title-text`, children: Z(i.renderTitle) ? i.renderTitle(e) : d }),
|
|
303
|
+
S && /* @__PURE__ */ L("span", { className: `${f}-icon ${f}-drag-icon`, children: "dragIcon" in M ? M.dragIcon : /* @__PURE__ */ L(Xe, {}) })
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
Z(i.renderExtra) && i.renderExtra(e)
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
),
|
|
311
|
+
i.animation && /* @__PURE__ */ L(ln, { ...e })
|
|
312
|
+
] });
|
|
313
|
+
}
|
|
314
|
+
const $e = De(dn);
|
|
315
|
+
$e.displayName = "TreeNode";
|
|
316
|
+
const oe = xe.memo($e);
|
|
317
|
+
function on(e) {
|
|
318
|
+
return e.key || e._key;
|
|
319
|
+
}
|
|
320
|
+
function hn(e, k) {
|
|
321
|
+
const {
|
|
322
|
+
className: i,
|
|
323
|
+
style: D,
|
|
324
|
+
filterNode: h,
|
|
325
|
+
virtualListProps: l,
|
|
326
|
+
expandedKeys: g,
|
|
327
|
+
currentExpandKeys: N,
|
|
328
|
+
nodeList: d,
|
|
329
|
+
getNodeProps: x,
|
|
330
|
+
getDataSet: C
|
|
331
|
+
} = e, z = (l == null ? void 0 : l.threshold) !== null, K = Y(), P = Y(), I = Y(), S = le(() => new Set(g), [g]), _ = le(() => {
|
|
332
|
+
const E = /* @__PURE__ */ new Set(), f = new Set(N);
|
|
333
|
+
return d.forEach((H) => {
|
|
334
|
+
(H.pathParentKeys || []).every(
|
|
335
|
+
(T) => !f.has(T) && S.has(T)
|
|
336
|
+
) && E.add(H._key);
|
|
337
|
+
}), E;
|
|
338
|
+
}, [S, N, d]), p = () => d.filter((E) => !!((!h || (h == null ? void 0 : h(E))) && _.has(E.key))), W = le(() => p(), [d, h, _]);
|
|
339
|
+
return ve(k, () => ({
|
|
340
|
+
// index: 第几个dom元素, 如果传入的是字符串,会作为 node 的 key去查找。
|
|
341
|
+
// nodeProps: _index 是 key 时,对应的node
|
|
342
|
+
scrollIntoView: (E, f) => {
|
|
343
|
+
let H = E;
|
|
344
|
+
if (typeof E == "string") {
|
|
345
|
+
let T = E;
|
|
346
|
+
!_.has(E) && (f != null && f.pathParentKeys) && (T = [...f.pathParentKeys].reverse().find((F) => _.has(F)) || H), H = W.findIndex(({ _key: F }) => F === T);
|
|
347
|
+
}
|
|
348
|
+
if (!z && P.current) {
|
|
349
|
+
const T = P.current, F = T ? T.children[H] : null;
|
|
350
|
+
F && sn(F, {
|
|
351
|
+
boundary: T.parentElement
|
|
352
|
+
});
|
|
353
|
+
} else K.current && K.current.scrollTo({ index: H });
|
|
354
|
+
}
|
|
355
|
+
})), z ? /* @__PURE__ */ L(
|
|
356
|
+
Oe,
|
|
357
|
+
{
|
|
358
|
+
className: i,
|
|
359
|
+
style: D,
|
|
360
|
+
ref: K,
|
|
361
|
+
data: W,
|
|
362
|
+
isStaticItemHeight: !1,
|
|
363
|
+
itemKey: on,
|
|
364
|
+
onMouseDown: e.onMouseDown,
|
|
365
|
+
...e.ariaProps,
|
|
366
|
+
...l,
|
|
367
|
+
children: (E, f, { itemIndex: H }) => {
|
|
368
|
+
H === 0 && (I.current = C());
|
|
369
|
+
const M = x(E, I.current);
|
|
370
|
+
return /* @__PURE__ */ be(oe, { ...E, key: E.key, ...M });
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
) : /* @__PURE__ */ L(
|
|
374
|
+
"div",
|
|
375
|
+
{
|
|
376
|
+
role: "tree",
|
|
377
|
+
tabIndex: 0,
|
|
378
|
+
className: i,
|
|
379
|
+
style: D,
|
|
380
|
+
ref: P,
|
|
381
|
+
...e.ariaProps,
|
|
382
|
+
onMouseDown: e.onMouseDown,
|
|
383
|
+
children: W.map((E) => {
|
|
384
|
+
const f = x(E);
|
|
385
|
+
return /* @__PURE__ */ be(oe, { ...f, key: E.key });
|
|
386
|
+
})
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
const fn = De(hn), un = (e) => {
|
|
391
|
+
const k = (i) => xe.Children.map(i, (D) => {
|
|
392
|
+
if (!xe.isValidElement(D))
|
|
393
|
+
return;
|
|
394
|
+
const h = D.key;
|
|
395
|
+
return {
|
|
396
|
+
...D.props,
|
|
397
|
+
key: h,
|
|
398
|
+
children: k(D.props.children)
|
|
399
|
+
};
|
|
400
|
+
});
|
|
401
|
+
return k(e);
|
|
402
|
+
};
|
|
403
|
+
function Ie(e, k) {
|
|
404
|
+
const i = /* @__PURE__ */ new Set(), D = (h) => {
|
|
405
|
+
h.map((l) => {
|
|
406
|
+
const g = l.key, N = k[g];
|
|
407
|
+
!N || N.disabled || N.disableCheckbox || N.checkable === !1 || (i.add(g), D(N.children || []));
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
return e && D(e.children || []), i;
|
|
411
|
+
}
|
|
412
|
+
const Te = (e, k, i, D) => {
|
|
413
|
+
[...k[e].pathParentKeys].reverse().some((l) => {
|
|
414
|
+
const g = k[l];
|
|
415
|
+
if (g && !g.disabled && !g.disableCheckbox && g.checkable !== !1) {
|
|
416
|
+
let N = 0, d = 0;
|
|
417
|
+
g.children.some(({ key: x }) => {
|
|
418
|
+
const C = k[x];
|
|
419
|
+
if (!C || C.disabled || C.disableCheckbox || C.checkable === !1)
|
|
420
|
+
return !1;
|
|
421
|
+
if (N++, i.has(x))
|
|
422
|
+
d++;
|
|
423
|
+
else if (D.has(x))
|
|
424
|
+
return d += 0.5, !0;
|
|
425
|
+
}), !d || d === N ? D.delete(l) : D.add(l), d && d === N ? i.add(l) : i.delete(l);
|
|
426
|
+
} else
|
|
427
|
+
return !0;
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
function yn(e, k) {
|
|
431
|
+
const i = new Set(e || []), D = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
|
|
432
|
+
return e.forEach((l) => {
|
|
433
|
+
h.has(l) || Ie(k[l], k).forEach((N) => {
|
|
434
|
+
h.add(N);
|
|
435
|
+
}), k[l] && !k[l].pathParentKeys.some(
|
|
436
|
+
(g) => i.has(g)
|
|
437
|
+
) && Te(l, k, i, D);
|
|
438
|
+
}), {
|
|
439
|
+
checkedKeys: [.../* @__PURE__ */ new Set([...i, ...h])],
|
|
440
|
+
indeterminateKeys: [...D]
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
function Kn(e, k, i, D, h) {
|
|
444
|
+
if (!D[e])
|
|
445
|
+
return {
|
|
446
|
+
checkedKeys: i,
|
|
447
|
+
indeterminateKeys: h
|
|
448
|
+
};
|
|
449
|
+
const l = new Set(i), g = new Set(h), N = Ie(D[e], D), d = l;
|
|
450
|
+
return k ? (d.add(e), g.delete(e), N.forEach((x) => {
|
|
451
|
+
d.add(x);
|
|
452
|
+
})) : (g.delete(e), d.delete(e), N.forEach((x) => {
|
|
453
|
+
d.delete(x);
|
|
454
|
+
})), Te(e, D, l, g), {
|
|
455
|
+
checkedKeys: [...d],
|
|
456
|
+
indeterminateKeys: [...g]
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
const He = {
|
|
460
|
+
key: "key",
|
|
461
|
+
title: "title",
|
|
462
|
+
children: "children",
|
|
463
|
+
selectable: "selectable",
|
|
464
|
+
disabled: "disabled",
|
|
465
|
+
disableCheckbox: "disableCheckbox",
|
|
466
|
+
checkable: "checkable",
|
|
467
|
+
isLeaf: "isLeaf"
|
|
468
|
+
}, Me = "parent", Ae = "all", Re = "child", gn = {
|
|
469
|
+
selectable: !0,
|
|
470
|
+
autoExpandParent: !0,
|
|
471
|
+
checkedStrategy: Ae,
|
|
472
|
+
actionOnClick: "select",
|
|
473
|
+
allowDrop: () => !0,
|
|
474
|
+
fieldNames: He,
|
|
475
|
+
animation: !0
|
|
476
|
+
}, kn = [
|
|
477
|
+
"style",
|
|
478
|
+
"className",
|
|
479
|
+
"height",
|
|
480
|
+
"size",
|
|
481
|
+
"blockNode",
|
|
482
|
+
"autoExpandParent",
|
|
483
|
+
"checkedStrategy",
|
|
484
|
+
"fieldNames",
|
|
485
|
+
"icons",
|
|
486
|
+
"virtualListProps",
|
|
487
|
+
"showLine",
|
|
488
|
+
"selectable",
|
|
489
|
+
"allowDrop",
|
|
490
|
+
"actionOnClick",
|
|
491
|
+
"animation"
|
|
492
|
+
];
|
|
493
|
+
function mn(e, k) {
|
|
494
|
+
const i = de(Ne), D = Y(null), h = Y({}), l = Y(), g = Y(), N = Y(), [d, x] = Se(() => {
|
|
495
|
+
const n = K(), r = S(n, i.getPrefixCls("tree")), { checkedKeys: c, halfCheckedKeys: t } = p(
|
|
496
|
+
e.checkedKeys || e.defaultCheckedKeys || []
|
|
497
|
+
);
|
|
498
|
+
return {
|
|
499
|
+
selectedKeys: e.selectedKeys || e.defaultSelectedKeys || [],
|
|
500
|
+
checkedKeys: c,
|
|
501
|
+
halfCheckedKeys: t,
|
|
502
|
+
expandedKeys: _(
|
|
503
|
+
e.expandedKeys || e.defaultExpandedKeys
|
|
504
|
+
),
|
|
505
|
+
loadedKeys: [],
|
|
506
|
+
loadingKeys: [],
|
|
507
|
+
currentExpandKeys: [],
|
|
508
|
+
nodeList: r
|
|
509
|
+
};
|
|
510
|
+
});
|
|
511
|
+
function C(n) {
|
|
512
|
+
const { componentConfig: r } = i ?? {}, c = n || e, t = (r == null ? void 0 : r.Tree) || {}, a = {};
|
|
513
|
+
return kn.forEach((s) => {
|
|
514
|
+
Pe(c[s]) ? Pe(t[s]) ? a[s] = gn[s] : a[s] = t[s] : a[s] = c[s];
|
|
515
|
+
}), a;
|
|
516
|
+
}
|
|
517
|
+
function z(n, r) {
|
|
518
|
+
let c = n;
|
|
519
|
+
r && (c = r._key), N.current && N.current.scrollIntoView(
|
|
520
|
+
c,
|
|
521
|
+
r || h.current[c]
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
function K() {
|
|
525
|
+
return "treeData" in e ? e.treeData : un(e.children);
|
|
526
|
+
}
|
|
527
|
+
function P(n, r) {
|
|
528
|
+
const c = [
|
|
529
|
+
"fieldNames",
|
|
530
|
+
"selectable",
|
|
531
|
+
"draggable",
|
|
532
|
+
"checkStrictly",
|
|
533
|
+
"showLine",
|
|
534
|
+
"blockNode",
|
|
535
|
+
"checkable",
|
|
536
|
+
"treeData",
|
|
537
|
+
"children"
|
|
538
|
+
];
|
|
539
|
+
return n.treeData !== r.treeData || n.children !== r.children || c.some((t) => G(n[t], r[t]));
|
|
540
|
+
}
|
|
541
|
+
function I(n) {
|
|
542
|
+
const r = C(), { selectable: c } = r, t = {
|
|
543
|
+
...He,
|
|
544
|
+
..."treeData" in e ? r.fieldNames : {}
|
|
545
|
+
}, a = {
|
|
546
|
+
children: q(n, t.children),
|
|
547
|
+
selectable: me(n, t.selectable) ? q(n, t.selectable) : c,
|
|
548
|
+
checkable: me(n, t.checkable) ? q(n, t.checkable) : e.checkable,
|
|
549
|
+
title: q(n, t.title),
|
|
550
|
+
disabled: q(n, t.disabled),
|
|
551
|
+
disableCheckbox: q(n, t.disableCheckbox),
|
|
552
|
+
isLeaf: q(n, t.isLeaf),
|
|
553
|
+
key: q(n, t.key)
|
|
554
|
+
};
|
|
555
|
+
return me(n, t.key) || delete a.key, a;
|
|
556
|
+
}
|
|
557
|
+
function S(n, r) {
|
|
558
|
+
h.current = {};
|
|
559
|
+
const c = r || i.getPrefixCls("tree"), t = [];
|
|
560
|
+
let a = 0;
|
|
561
|
+
const { showLine: s, blockNode: b } = C(), y = (v, w) => {
|
|
562
|
+
const V = v.length;
|
|
563
|
+
return v.map((A, O) => {
|
|
564
|
+
const {
|
|
565
|
+
children: U,
|
|
566
|
+
selectable: $,
|
|
567
|
+
checkable: Q,
|
|
568
|
+
key: j = `${(w == null ? void 0 : w._key) || ""}-${O}`,
|
|
569
|
+
...Ke
|
|
570
|
+
} = I(A), X = {
|
|
571
|
+
// data 中含有dataRef时,优先级较高
|
|
572
|
+
dataRef: A,
|
|
573
|
+
draggable: e.draggable,
|
|
574
|
+
selectable: $,
|
|
575
|
+
checkable: Q,
|
|
576
|
+
showLine: s,
|
|
577
|
+
blockNode: b,
|
|
578
|
+
...A,
|
|
579
|
+
...Ke,
|
|
580
|
+
key: j,
|
|
581
|
+
children: U,
|
|
582
|
+
_key: j,
|
|
583
|
+
_index: a++,
|
|
584
|
+
parentKey: w ? w._key : void 0,
|
|
585
|
+
pathParentKeys: w && w.pathParentKeys || [],
|
|
586
|
+
_level: w._level || 0,
|
|
587
|
+
// 保存node在sowLine模式下是否显示缩进线。如果父节点是其所在层级的最后一个节点,那么所有的子节点(包括孙子节点等)在父节点所在层级的缩进格都不显示缩进线。
|
|
588
|
+
_lineless: w && w._lineless ? [...w._lineless || [], w._isTail] : []
|
|
589
|
+
};
|
|
590
|
+
return V === O + 1 && (X.className = ee(
|
|
591
|
+
`${c}-node-is-tail`,
|
|
592
|
+
X.className
|
|
593
|
+
)), t.push(X), h.current[j] = X, U && U.length && (h.current[j].children = y(U, {
|
|
594
|
+
_key: j,
|
|
595
|
+
_level: X._level + 1,
|
|
596
|
+
_lineless: X._lineless,
|
|
597
|
+
_isTail: V === O + 1,
|
|
598
|
+
pathParentKeys: [...(w == null ? void 0 : w.pathParentKeys) || [], j]
|
|
599
|
+
})), X;
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
return y(n || [], {}), t;
|
|
603
|
+
}
|
|
604
|
+
function _(n) {
|
|
605
|
+
if (!C().autoExpandParent)
|
|
606
|
+
return n || [];
|
|
607
|
+
if (!n)
|
|
608
|
+
return Object.keys(h.current).filter((c) => {
|
|
609
|
+
const t = h.current[c];
|
|
610
|
+
return t.children && t.children.length;
|
|
611
|
+
});
|
|
612
|
+
const r = {};
|
|
613
|
+
return n.forEach((c) => {
|
|
614
|
+
const t = h.current[c];
|
|
615
|
+
t && (r[c] = 1, t.pathParentKeys && t.pathParentKeys.forEach((a) => {
|
|
616
|
+
r[a] = 1;
|
|
617
|
+
}));
|
|
618
|
+
}), Object.keys(r);
|
|
619
|
+
}
|
|
620
|
+
function p(n) {
|
|
621
|
+
if (!e.checkStrictly) {
|
|
622
|
+
const { checkedKeys: r, indeterminateKeys: c } = yn(
|
|
623
|
+
n,
|
|
624
|
+
h.current
|
|
625
|
+
);
|
|
626
|
+
return {
|
|
627
|
+
checkedKeys: r,
|
|
628
|
+
halfCheckedKeys: c
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
checkedKeys: n,
|
|
633
|
+
halfCheckedKeys: e.halfCheckedKeys || []
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
function W(n, r) {
|
|
637
|
+
const { onSelect: c } = e, t = { e: r, node: m([n])[0] };
|
|
638
|
+
if (e.multiple) {
|
|
639
|
+
const a = [...d.selectedKeys], s = a.indexOf(n);
|
|
640
|
+
s > -1 ? (a.splice(s, 1), t.selected = !1) : (t.selected = !0, a.push(n)), t.selectedNodes = m(a), "selectedKeys" in e || x((b) => {
|
|
641
|
+
const y = { ...b };
|
|
642
|
+
return y.selectedKeys = a, y;
|
|
643
|
+
}), c == null || c(a, t);
|
|
644
|
+
} else
|
|
645
|
+
t.selected = !0, t.selectedNodes = m([n]), "selectedKeys" in e || x((a) => {
|
|
646
|
+
const s = { ...a };
|
|
647
|
+
return s.selectedKeys = [n], s;
|
|
648
|
+
}), c == null || c([n], t);
|
|
649
|
+
}
|
|
650
|
+
function E(n, r, c) {
|
|
651
|
+
const { checkedStrategy: t } = C(), { onCheck: a, checkStrictly: s } = e, b = { e: c, node: m([r])[0] };
|
|
652
|
+
let y = [...d.checkedKeys || []], v = d.halfCheckedKeys;
|
|
653
|
+
if (s) {
|
|
654
|
+
n ? y = y.concat(r) : y = y.filter((V) => V !== r);
|
|
655
|
+
const w = {};
|
|
656
|
+
"checkedKeys" in e || (w.checkedKeys = y), "halfCheckedKeys" in e || (w.halfCheckedKeys = v), Be(w) || x((V) => ({ ...V, ...w }));
|
|
657
|
+
} else {
|
|
658
|
+
const { checkedKeys: w, indeterminateKeys: V } = Kn(
|
|
659
|
+
r,
|
|
660
|
+
n,
|
|
661
|
+
y,
|
|
662
|
+
h.current,
|
|
663
|
+
v
|
|
664
|
+
);
|
|
665
|
+
y = w, v = V, "checkedKeys" in e ? x((A) => {
|
|
666
|
+
const O = { ...A };
|
|
667
|
+
return O.halfCheckedKeys = v, O;
|
|
668
|
+
}) : x((A) => {
|
|
669
|
+
const O = { ...A };
|
|
670
|
+
return O.checkedKeys = y, O.halfCheckedKeys = v, O;
|
|
671
|
+
}), t === Me ? y = y.filter((A) => {
|
|
672
|
+
const O = h.current[A];
|
|
673
|
+
if (!O || y.indexOf(O.parentKey) === -1)
|
|
674
|
+
return !0;
|
|
675
|
+
}) : t === Re && (y = y.filter((A) => {
|
|
676
|
+
var U, $;
|
|
677
|
+
const O = h.current[A];
|
|
678
|
+
if (!O || !((U = O.children) != null && U.length) || ($ = O.children) != null && $.every((Q) => y.indexOf(Q._key) === -1))
|
|
679
|
+
return !0;
|
|
680
|
+
}));
|
|
681
|
+
}
|
|
682
|
+
a == null || a(y, {
|
|
683
|
+
checkedNodes: m(y),
|
|
684
|
+
checked: n,
|
|
685
|
+
halfCheckedKeys: v,
|
|
686
|
+
halfCheckedNodes: m(v),
|
|
687
|
+
...b
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
function f(n) {
|
|
691
|
+
if (Z(e.loadMore)) {
|
|
692
|
+
const { loadingKeys: r = [], loadedKeys: c } = d;
|
|
693
|
+
x((t) => {
|
|
694
|
+
const a = { ...t };
|
|
695
|
+
return a.loadingKeys = Array.from(/* @__PURE__ */ new Set([...r, n._key])), a.loadedKeys = c.filter((s) => s !== n._key), a;
|
|
696
|
+
}), fe == null || fe(m([n._key])[0]).then((t) => {
|
|
697
|
+
x((a) => {
|
|
698
|
+
const s = { ...a };
|
|
699
|
+
return s.loadingKeys = a.loadingKeys.filter((b) => b !== n._key), s.loadedKeys = Array.from(/* @__PURE__ */ new Set([...a.loadedKeys, n._key])), s;
|
|
700
|
+
}), u(!n.expanded, n._key);
|
|
701
|
+
}).catch((t) => {
|
|
702
|
+
x((a) => {
|
|
703
|
+
const s = { ...a };
|
|
704
|
+
return s.loadingKeys = a.loadingKeys.filter((b) => b !== n._key), s;
|
|
705
|
+
}), console.error("[tree]load data error: ", t);
|
|
706
|
+
}).finally(() => {
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function H(n, r) {
|
|
711
|
+
l.current = m([r._key])[0], g.current = 0;
|
|
712
|
+
const { onDragStart: c } = e;
|
|
713
|
+
c == null || c(n, m([r._key])[0]);
|
|
714
|
+
}
|
|
715
|
+
function M(n, r) {
|
|
716
|
+
l.current = null, g.current = 0;
|
|
717
|
+
const { onDragEnd: c } = e;
|
|
718
|
+
c == null || c(n, m([r._key])[0]);
|
|
719
|
+
}
|
|
720
|
+
function T(n, r, c) {
|
|
721
|
+
g.current = c;
|
|
722
|
+
const { onDragOver: t } = e;
|
|
723
|
+
t == null || t(n, m([r._key])[0]);
|
|
724
|
+
}
|
|
725
|
+
function F(n, r) {
|
|
726
|
+
g.current = 0;
|
|
727
|
+
const { onDragLeave: c } = e;
|
|
728
|
+
c == null || c(n, m([r._key])[0]);
|
|
729
|
+
}
|
|
730
|
+
function ue(n, r) {
|
|
731
|
+
let c = h.current[n.parentKey];
|
|
732
|
+
for (; c; ) {
|
|
733
|
+
const { _key: t, parentKey: a } = c;
|
|
734
|
+
if (t === r.props._key)
|
|
735
|
+
return !0;
|
|
736
|
+
if (a === t)
|
|
737
|
+
return;
|
|
738
|
+
c = h.current[a];
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
function J(n, r) {
|
|
742
|
+
if (n === void 0 || r === void 0)
|
|
743
|
+
return !1;
|
|
744
|
+
if (n === r)
|
|
745
|
+
return !0;
|
|
746
|
+
const c = n.key, t = r.key;
|
|
747
|
+
if (c !== void 0 || t !== void 0)
|
|
748
|
+
return c === t;
|
|
749
|
+
const a = n.props._key, s = r.props._key;
|
|
750
|
+
return a === void 0 && s === void 0 ? !1 : a === s;
|
|
751
|
+
}
|
|
752
|
+
function ne(n, r, c) {
|
|
753
|
+
if (l.current) {
|
|
754
|
+
const { allowDrop: t } = C(), { onDrop: a } = e, s = m([r._key])[0];
|
|
755
|
+
if (a && !ue(r, l.current) && !J(l.current, s)) {
|
|
756
|
+
if (t && !t({
|
|
757
|
+
dropNode: s,
|
|
758
|
+
dragNode: l.current,
|
|
759
|
+
dropPosition: c
|
|
760
|
+
}))
|
|
761
|
+
return;
|
|
762
|
+
a({
|
|
763
|
+
dragNode: l.current,
|
|
764
|
+
dropNode: s,
|
|
765
|
+
dropPosition: c,
|
|
766
|
+
e: n
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
function o(n, r) {
|
|
772
|
+
const { allowDrop: c } = C();
|
|
773
|
+
let t = !0;
|
|
774
|
+
return typeof c == "function" && (t = c({
|
|
775
|
+
dropNode: m([n._key])[0],
|
|
776
|
+
dragNode: l.current,
|
|
777
|
+
dropPosition: r
|
|
778
|
+
})), t;
|
|
779
|
+
}
|
|
780
|
+
function u(n, r) {
|
|
781
|
+
const { currentExpandKeys: c, expandedKeys: t = [] } = d, { animation: a } = C(), { onExpand: s } = e;
|
|
782
|
+
if (c.indexOf(r) > -1)
|
|
783
|
+
return;
|
|
784
|
+
let b = [];
|
|
785
|
+
n ? b = Array.from(/* @__PURE__ */ new Set([...t, r])) : b = t.filter((y) => y !== r), "expandedKeys" in e || x((y) => {
|
|
786
|
+
const v = { ...y };
|
|
787
|
+
return v.expandedKeys = b, v.currentExpandKeys = a ? [...c, r] : [], v;
|
|
788
|
+
}), s == null || s(b, {
|
|
789
|
+
expanded: n,
|
|
790
|
+
node: m([r])[0],
|
|
791
|
+
expandedNodes: m(b)
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
function m(n) {
|
|
795
|
+
const { __PqbAdapterMode__: r } = e, c = [];
|
|
796
|
+
return [].concat(n).forEach((a) => {
|
|
797
|
+
const s = h.current[a];
|
|
798
|
+
s && c.push(s);
|
|
799
|
+
}), R(c).map((a) => r ? {
|
|
800
|
+
props: a,
|
|
801
|
+
key: n
|
|
802
|
+
} : /* @__PURE__ */ be(oe, { ...a, key: a.key }));
|
|
803
|
+
}
|
|
804
|
+
function B(n) {
|
|
805
|
+
return {
|
|
806
|
+
expandedKeysSet: (n == null ? void 0 : n.expandedKeysSet) || new Set((d == null ? void 0 : d.expandedKeys) || []),
|
|
807
|
+
checkedKeysSet: (n == null ? void 0 : n.checkedKeysSet) || new Set((d == null ? void 0 : d.checkedKeys) || []),
|
|
808
|
+
selectedKeysSet: (n == null ? void 0 : n.selectedKeysSet) || new Set((d == null ? void 0 : d.selectedKeys) || []),
|
|
809
|
+
halfCheckedKeysSet: (n == null ? void 0 : n.halfCheckedKeysSet) || new Set((d == null ? void 0 : d.halfCheckedKeys) || [])
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
function R(n, r) {
|
|
813
|
+
const { autoExpandParent: c } = C(), { loadMore: t } = e, {
|
|
814
|
+
selectedKeys: a,
|
|
815
|
+
expandedKeys: s,
|
|
816
|
+
checkedKeys: b,
|
|
817
|
+
loadingKeys: y = [],
|
|
818
|
+
loadedKeys: v = []
|
|
819
|
+
} = d, {
|
|
820
|
+
expandedKeysSet: w,
|
|
821
|
+
checkedKeysSet: V,
|
|
822
|
+
selectedKeysSet: A,
|
|
823
|
+
halfCheckedKeysSet: O
|
|
824
|
+
} = B(r), U = ($) => {
|
|
825
|
+
const Q = $.children && $.children.length, j = {
|
|
826
|
+
isLeaf: !Q,
|
|
827
|
+
autoExpandParent: Q ? c : !1,
|
|
828
|
+
expanded: w ? w.has($._key) : s.indexOf($._key) > -1
|
|
829
|
+
};
|
|
830
|
+
if (t) {
|
|
831
|
+
const Ke = v.indexOf($._key) > -1;
|
|
832
|
+
j.loaded = Ke, j.isLeaf = Q ? !1 : $.isLeaf;
|
|
833
|
+
}
|
|
834
|
+
return {
|
|
835
|
+
...$,
|
|
836
|
+
...j,
|
|
837
|
+
selected: A.has($._key),
|
|
838
|
+
indeterminated: O.has($._key),
|
|
839
|
+
loading: y.indexOf($._key) > -1,
|
|
840
|
+
checked: V.has($._key),
|
|
841
|
+
selectedKeys: a,
|
|
842
|
+
checkedKeys: b,
|
|
843
|
+
loadingKeys: y,
|
|
844
|
+
loadedKeys: v,
|
|
845
|
+
expandedKeys: s,
|
|
846
|
+
childrenData: $.children || [],
|
|
847
|
+
children: null
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
return qe(n) ? n.map(($) => U($)) : U(n);
|
|
851
|
+
}
|
|
852
|
+
function te(n) {
|
|
853
|
+
x((r) => {
|
|
854
|
+
const c = { ...r }, { currentExpandKeys: t } = r;
|
|
855
|
+
return t.indexOf(n) > -1 && (c.currentExpandKeys = t.filter((a) => a !== n)), c;
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
function ce() {
|
|
859
|
+
return d;
|
|
860
|
+
}
|
|
861
|
+
ve(k, () => ({
|
|
862
|
+
scrollIntoView: z,
|
|
863
|
+
handleCheck: E,
|
|
864
|
+
getTreeState: ce,
|
|
865
|
+
handleExpandEnd: te,
|
|
866
|
+
getNodeProps: R,
|
|
867
|
+
getDataSet: B,
|
|
868
|
+
getCacheNode: m,
|
|
869
|
+
handleExpand: u,
|
|
870
|
+
handleAllowDrop: o,
|
|
871
|
+
handleNodeDrop: ne,
|
|
872
|
+
isSameNode: J
|
|
873
|
+
})), ae(() => {
|
|
874
|
+
const n = D.current, r = C(n), c = C();
|
|
875
|
+
if (n !== e || !G(r, c)) {
|
|
876
|
+
const t = {};
|
|
877
|
+
if (P(
|
|
878
|
+
{ prevMergedProps: r, ...n },
|
|
879
|
+
{ ...c, ...e }
|
|
880
|
+
)) {
|
|
881
|
+
const s = K(), b = S(s);
|
|
882
|
+
t.treeData = s, t.nodeList = b;
|
|
883
|
+
}
|
|
884
|
+
if (t.treeData || "checkedKeys" in e && !G(n == null ? void 0 : n.checkedKeys, e.checkedKeys)) {
|
|
885
|
+
const s = "checkedKeys" in e ? e.checkedKeys : d.checkedKeys, { halfCheckedKeys: b, checkedKeys: y } = p(
|
|
886
|
+
s || []
|
|
887
|
+
);
|
|
888
|
+
G(y, d.checkedKeys) || (t.checkedKeys = y), G(b, d.halfCheckedKeys) || (t.halfCheckedKeys = b);
|
|
889
|
+
}
|
|
890
|
+
e.checkStrictly && "halfCheckedKeys" in e && !G(n == null ? void 0 : n.halfCheckedKeys, e.halfCheckedKeys) && (t.halfCheckedKeys = e.halfCheckedKeys), "expandedKeys" in e && !G(e.expandedKeys, n == null ? void 0 : n.expandedKeys) && (t.expandedKeys = e.expandedKeys, t.currentExpandKeys = c.animation ? [...t.expandedKeys ?? [], ...d.expandedKeys ?? []].reduce((s, b) => {
|
|
891
|
+
const y = s.indexOf(b);
|
|
892
|
+
return y === -1 ? s.push(b) : s.splice(y, 1), s;
|
|
893
|
+
}, []).filter((s, b, y) => {
|
|
894
|
+
var v;
|
|
895
|
+
if (h.current[s])
|
|
896
|
+
return h.current[s].pathParentKeys.some((V) => y.indexOf(V) > -1) ? !1 : (v = h.current[s].children) == null ? void 0 : v.length;
|
|
897
|
+
}) : []);
|
|
898
|
+
const a = t.currentExpandKeys || d.currentExpandKeys;
|
|
899
|
+
t.treeData && a && (t.currentExpandKeys = a.filter((s) => {
|
|
900
|
+
const b = t.treeData.find((y) => y.key === s);
|
|
901
|
+
return b && b.children && b.children.length;
|
|
902
|
+
})), Object.keys(t).length && x((s) => ({ ...s, ...t }));
|
|
903
|
+
}
|
|
904
|
+
return D.current = e, () => {
|
|
905
|
+
};
|
|
906
|
+
}), ae(() => ("selectedKeys" in e && !G(e.selectedKeys, d.selectedKeys) && x((n) => {
|
|
907
|
+
const r = { ...n };
|
|
908
|
+
return r.selectedKeys = e.selectedKeys || [], r;
|
|
909
|
+
}), () => {
|
|
910
|
+
}), [e.selectedKeys, d.selectedKeys]), ae(() => {
|
|
911
|
+
const n = K(), r = S(n, i.getPrefixCls("tree")), { checkedKeys: c, halfCheckedKeys: t } = p(
|
|
912
|
+
e.checkedKeys || e.defaultCheckedKeys || []
|
|
913
|
+
);
|
|
914
|
+
return x((a) => {
|
|
915
|
+
let s = { ...a };
|
|
916
|
+
return s = {
|
|
917
|
+
...s,
|
|
918
|
+
selectedKeys: e.selectedKeys || e.defaultSelectedKeys || [],
|
|
919
|
+
checkedKeys: c,
|
|
920
|
+
halfCheckedKeys: t,
|
|
921
|
+
expandedKeys: _(
|
|
922
|
+
e.expandedKeys || e.defaultExpandedKeys
|
|
923
|
+
),
|
|
924
|
+
loadedKeys: [],
|
|
925
|
+
loadingKeys: [],
|
|
926
|
+
currentExpandKeys: [],
|
|
927
|
+
nodeList: r
|
|
928
|
+
}, s;
|
|
929
|
+
}), () => {
|
|
930
|
+
};
|
|
931
|
+
}, []);
|
|
932
|
+
const {
|
|
933
|
+
className: re,
|
|
934
|
+
showLine: ye,
|
|
935
|
+
size: se,
|
|
936
|
+
virtualListProps: _e,
|
|
937
|
+
height: we,
|
|
938
|
+
style: pe,
|
|
939
|
+
icons: Ve,
|
|
940
|
+
actionOnClick: We,
|
|
941
|
+
animation: Ee
|
|
942
|
+
} = C(), { loadMore: fe, checkable: Fe } = e, Le = _e ? {
|
|
943
|
+
threshold: 100,
|
|
944
|
+
..._e
|
|
945
|
+
} : we ? { height: we, threshold: 100 } : {
|
|
946
|
+
threshold: null
|
|
947
|
+
}, { getPrefixCls: Ue, rtl: je } = i, ie = Ue("tree");
|
|
948
|
+
return /* @__PURE__ */ L(
|
|
949
|
+
Ce.Provider,
|
|
950
|
+
{
|
|
951
|
+
value: {
|
|
952
|
+
icons: Ve,
|
|
953
|
+
animation: Ee,
|
|
954
|
+
key2nodeProps: h.current,
|
|
955
|
+
getFieldInfo: I,
|
|
956
|
+
getTreeState: ce,
|
|
957
|
+
getNodeProps: R,
|
|
958
|
+
onExpandEnd: Ee ? te : () => {
|
|
959
|
+
},
|
|
960
|
+
onSelect: W,
|
|
961
|
+
onCheck: E,
|
|
962
|
+
onNodeDragStart: H,
|
|
963
|
+
onNodeDragEnd: M,
|
|
964
|
+
onNodeDragLeave: F,
|
|
965
|
+
onNodeDragOver: T,
|
|
966
|
+
onNodeDrop: ne,
|
|
967
|
+
onExpand: u,
|
|
968
|
+
renderExtra: e.renderExtra,
|
|
969
|
+
renderTitle: e.renderTitle,
|
|
970
|
+
loadMore: fe && f,
|
|
971
|
+
allowDrop: o,
|
|
972
|
+
actionOnClick: We,
|
|
973
|
+
virtualListProps: Le
|
|
974
|
+
},
|
|
975
|
+
children: /* @__PURE__ */ L(
|
|
976
|
+
fn,
|
|
977
|
+
{
|
|
978
|
+
ref: (n) => {
|
|
979
|
+
N.current = n;
|
|
980
|
+
},
|
|
981
|
+
className: ee(
|
|
982
|
+
ie,
|
|
983
|
+
{
|
|
984
|
+
[`${ie}-checkable`]: Fe,
|
|
985
|
+
[`${ie}-show-line`]: ye,
|
|
986
|
+
[`${ie}-size-${se}`]: se,
|
|
987
|
+
[`${ie}-rtl`]: je
|
|
988
|
+
},
|
|
989
|
+
re
|
|
990
|
+
),
|
|
991
|
+
style: pe,
|
|
992
|
+
filterNode: e.filterNode,
|
|
993
|
+
virtualListProps: Le,
|
|
994
|
+
expandedKeys: d.expandedKeys,
|
|
995
|
+
currentExpandKeys: d.currentExpandKeys,
|
|
996
|
+
getNodeProps: R,
|
|
997
|
+
getDataSet: B,
|
|
998
|
+
nodeList: d.nodeList,
|
|
999
|
+
onMouseDown: e.onMouseDown,
|
|
1000
|
+
ariaProps: {
|
|
1001
|
+
role: "tree",
|
|
1002
|
+
"aria-multiselectable": e.multiple,
|
|
1003
|
+
tabIndex: 0,
|
|
1004
|
+
...Je(e)
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
)
|
|
1008
|
+
}
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
const he = De(
|
|
1012
|
+
mn
|
|
1013
|
+
);
|
|
1014
|
+
he.displayName = "Tree";
|
|
1015
|
+
he.SHOW_PARENT = Me;
|
|
1016
|
+
he.SHOW_ALL = Ae;
|
|
1017
|
+
he.SHOW_CHILD = Re;
|
|
1018
|
+
he.Node = oe;
|
|
1019
|
+
export {
|
|
1020
|
+
oe as N,
|
|
1021
|
+
he as T,
|
|
1022
|
+
un as a,
|
|
1023
|
+
Kn as b,
|
|
1024
|
+
yn as g
|
|
1025
|
+
};
|