@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
package/Avatar.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { jsxs as T, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import w from "lodash/isNumber";
|
|
3
|
-
import S, { createContext as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import S, { createContext as q, forwardRef as W, useContext as I, useRef as k, useImperativeHandle as D, useEffect as M } from "react";
|
|
4
|
+
import { a as j } from "./chunk/BJQ5UNa-.js";
|
|
5
|
+
import { m as E } from "./chunk/JPPo5nY_.js";
|
|
6
|
+
import { c as O } from "./chunk/B5gK1Idp.js";
|
|
7
7
|
import V from "./Popover.js";
|
|
8
|
-
const R =
|
|
8
|
+
const R = q({}), X = {
|
|
9
9
|
shape: "circle",
|
|
10
10
|
autoFixFontSize: !0,
|
|
11
11
|
triggerType: "button"
|
|
12
12
|
}, b = W(
|
|
13
|
-
(
|
|
13
|
+
(g, N) => {
|
|
14
14
|
const { getPrefixCls: P, componentConfig: n, rtl: h } = I(j), e = P("avatar"), v = I(R), $ = {
|
|
15
15
|
...X,
|
|
16
16
|
...n == null ? void 0 : n.Avatar,
|
|
17
17
|
...v,
|
|
18
|
-
...
|
|
18
|
+
...g
|
|
19
19
|
}, {
|
|
20
20
|
className: z,
|
|
21
|
-
shape:
|
|
21
|
+
shape: l,
|
|
22
22
|
size: s,
|
|
23
23
|
children: c,
|
|
24
24
|
autoFixFontSize: A,
|
|
25
25
|
triggerIcon: r,
|
|
26
|
-
triggerIconStyle:
|
|
26
|
+
triggerIconStyle: p,
|
|
27
27
|
triggerType: x,
|
|
28
28
|
onClick: F,
|
|
29
|
-
...
|
|
30
|
-
} = $,
|
|
29
|
+
...u
|
|
30
|
+
} = $, i = { ...v.style, ...g.style }, o = k(), m = k();
|
|
31
31
|
function d() {
|
|
32
32
|
if (o.current) {
|
|
33
|
-
const L = o.current.clientWidth, G =
|
|
33
|
+
const L = o.current.clientWidth, G = g.size || m.current.offsetWidth, _ = G / (L + 8);
|
|
34
34
|
G && _ < 1 && (o.current.style.transform = `scale(${_}) translateX(-50%)`);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const f = E(
|
|
38
38
|
e,
|
|
39
|
-
`${e}-${
|
|
39
|
+
`${e}-${l}`,
|
|
40
40
|
{
|
|
41
41
|
[`${e}-with-trigger-icon`]: r,
|
|
42
42
|
[`${e}-rtl`]: h
|
|
43
43
|
},
|
|
44
44
|
z
|
|
45
|
-
), t = S.Children.toArray(c), y = t.length === 1 && S.isValidElement(t[0]) && (t[0].type === "img" || t[0].type === "picture"), C =
|
|
46
|
-
return x === "button" && (!
|
|
45
|
+
), t = S.Children.toArray(c), y = t.length === 1 && S.isValidElement(t[0]) && (t[0].type === "img" || t[0].type === "picture"), C = p || {};
|
|
46
|
+
return x === "button" && (!p || p && !p.color) && (i != null && i.backgroundColor) && (C.color = i.backgroundColor), D(N, () => ({
|
|
47
47
|
getRootDOMNode() {
|
|
48
48
|
return m.current;
|
|
49
49
|
}
|
|
50
|
-
})),
|
|
50
|
+
})), M(() => {
|
|
51
51
|
A && d();
|
|
52
52
|
}, [s, c]), /* @__PURE__ */ T(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
ref: m,
|
|
56
56
|
onClick: F,
|
|
57
|
-
...
|
|
57
|
+
...u,
|
|
58
58
|
style: {
|
|
59
59
|
width: s,
|
|
60
60
|
height: s,
|
|
61
61
|
fontSize: w(s) ? s / 2 : "",
|
|
62
|
-
...
|
|
62
|
+
...i
|
|
63
63
|
},
|
|
64
|
-
className:
|
|
64
|
+
className: f,
|
|
65
65
|
children: [
|
|
66
66
|
y ? /* @__PURE__ */ a("span", { className: `${e}-image`, children: c }) : null,
|
|
67
67
|
!y && /* @__PURE__ */ a("span", { ref: o, className: `${e}-text`, children: c }),
|
|
@@ -83,47 +83,47 @@ const B = {
|
|
|
83
83
|
shape: "circle",
|
|
84
84
|
autoFixFontSize: !0
|
|
85
85
|
};
|
|
86
|
-
function J(
|
|
86
|
+
function J(g, N) {
|
|
87
87
|
const { getPrefixCls: P, componentConfig: n, rtl: h } = I(j), e = O(
|
|
88
|
-
|
|
88
|
+
g,
|
|
89
89
|
B,
|
|
90
90
|
n == null ? void 0 : n["Avatar.Group"]
|
|
91
91
|
), {
|
|
92
92
|
className: v,
|
|
93
93
|
style: $,
|
|
94
94
|
children: z,
|
|
95
|
-
size:
|
|
95
|
+
size: l,
|
|
96
96
|
shape: s,
|
|
97
97
|
autoFixFontSize: c,
|
|
98
98
|
zIndexAscend: A,
|
|
99
99
|
maxCount: r,
|
|
100
|
-
maxStyle:
|
|
100
|
+
maxStyle: p,
|
|
101
101
|
maxPopoverTriggerProps: x,
|
|
102
102
|
...F
|
|
103
|
-
} = e,
|
|
104
|
-
|
|
103
|
+
} = e, u = P("avatar-group"), i = E(
|
|
104
|
+
u,
|
|
105
105
|
{
|
|
106
|
-
[`${
|
|
106
|
+
[`${u}-rtl`]: h
|
|
107
107
|
},
|
|
108
108
|
v
|
|
109
109
|
), o = S.Children.toArray(z), m = o.length;
|
|
110
110
|
let d = o;
|
|
111
111
|
if (w(r) && r >= 0 && m > r) {
|
|
112
|
-
const
|
|
112
|
+
const f = o.slice(r);
|
|
113
113
|
d = o.slice(0, r), d.push(
|
|
114
114
|
/* @__PURE__ */ a(
|
|
115
115
|
b,
|
|
116
116
|
{
|
|
117
|
-
style:
|
|
118
|
-
className: `${
|
|
117
|
+
style: p,
|
|
118
|
+
className: `${u}-max-count-avatar`,
|
|
119
119
|
children: /* @__PURE__ */ T(
|
|
120
120
|
V,
|
|
121
121
|
{
|
|
122
122
|
triggerProps: x,
|
|
123
|
-
content: /* @__PURE__ */ a(R.Provider, { value: { size:
|
|
123
|
+
content: /* @__PURE__ */ a(R.Provider, { value: { size: l, shape: s, autoFixFontSize: c }, children: /* @__PURE__ */ a("div", { className: `${u}-popover`, children: f }) }),
|
|
124
124
|
children: [
|
|
125
125
|
"+",
|
|
126
|
-
|
|
126
|
+
f.length
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
)
|
|
@@ -132,16 +132,16 @@ function J(f, N) {
|
|
|
132
132
|
)
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
return /* @__PURE__ */ a("div", { ref: N, style: $, className:
|
|
135
|
+
return /* @__PURE__ */ a("div", { ref: N, style: $, className: i, ...F, children: d.map((f, t) => {
|
|
136
136
|
const y = h ? t === d.length - 1 : t === 0, C = {
|
|
137
137
|
zIndex: A ? t + 1 : m - t,
|
|
138
|
-
marginLeft:
|
|
138
|
+
marginLeft: l ? y ? 0 : -l / 4 : ""
|
|
139
139
|
};
|
|
140
140
|
return /* @__PURE__ */ a(
|
|
141
141
|
R.Provider,
|
|
142
142
|
{
|
|
143
|
-
value: { size:
|
|
144
|
-
children:
|
|
143
|
+
value: { size: l, shape: s, autoFixFontSize: c, style: C },
|
|
144
|
+
children: f
|
|
145
145
|
},
|
|
146
146
|
t
|
|
147
147
|
);
|
package/BackTop.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { on as
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
function
|
|
14
|
-
a || (a =
|
|
2
|
+
import C from "@unicom-cloud/icons/IconUiToTop";
|
|
3
|
+
import { P as k, C as E } from "./chunk/CANgSlh3.js";
|
|
4
|
+
import N, { forwardRef as y, useRef as B, useContext as P, useState as R, useEffect as H } from "react";
|
|
5
|
+
import { a as $ } from "./chunk/BJQ5UNa-.js";
|
|
6
|
+
import { h as I } from "./chunk/D2KPqPhV.js";
|
|
7
|
+
import { c as S } from "./chunk/B5gK1Idp.js";
|
|
8
|
+
import { N as U } from "./chunk/DC1iHEiy.js";
|
|
9
|
+
import { m as j } from "./chunk/JPPo5nY_.js";
|
|
10
|
+
import { on as D, off as K } from "./utils/dom.js";
|
|
11
|
+
import { r as O } from "./chunk/D7NyvE5f.js";
|
|
12
|
+
import V from "./utils/throttleByRaf.js";
|
|
13
|
+
function q(p, a) {
|
|
14
|
+
a || (a = B());
|
|
15
15
|
const g = {
|
|
16
16
|
visibleHeight: 400,
|
|
17
17
|
tween: !0,
|
|
18
|
-
easing:
|
|
18
|
+
easing: k,
|
|
19
19
|
duration: 400,
|
|
20
20
|
target: () => window
|
|
21
|
-
}, { getPrefixCls: T, componentConfig:
|
|
21
|
+
}, { getPrefixCls: T, componentConfig: c, rtl: w } = P($), h = I(), t = S(
|
|
22
22
|
p,
|
|
23
23
|
g,
|
|
24
|
-
|
|
25
|
-
),
|
|
26
|
-
|
|
24
|
+
c == null ? void 0 : c.BackTop
|
|
25
|
+
), l = T("backtop"), [b, v] = R(!1), m = (e) => e === window ? document.documentElement : e;
|
|
26
|
+
H(() => {
|
|
27
27
|
var r;
|
|
28
|
-
const e = (r = t.target) == null ? void 0 : r.call(t), o =
|
|
28
|
+
const e = (r = t.target) == null ? void 0 : r.call(t), o = V(() => {
|
|
29
29
|
const s = t.visibleHeight, n = m(e).scrollTop;
|
|
30
30
|
v(n >= s);
|
|
31
31
|
});
|
|
32
|
-
return
|
|
32
|
+
return D(e, "scroll", o), o(), () => {
|
|
33
33
|
var s;
|
|
34
|
-
(s = o.cancel) == null || s.call(o),
|
|
34
|
+
(s = o.cancel) == null || s.call(o), K(e, "scroll", o);
|
|
35
35
|
};
|
|
36
36
|
}, [t.target, t.visibleHeight]);
|
|
37
37
|
const f = () => {
|
|
38
38
|
var s, n, u;
|
|
39
39
|
const e = (s = t.target) == null ? void 0 : s.call(t), o = m(e), r = o.scrollTop;
|
|
40
|
-
((n = window.getComputedStyle(o)) == null ? void 0 : n.scrollBehavior) === "smooth" || t.tween === !1 ? o.scrollTo(0, 0) : new
|
|
40
|
+
((n = window.getComputedStyle(o)) == null ? void 0 : n.scrollBehavior) === "smooth" || t.tween === !1 ? o.scrollTo(0, 0) : new E({
|
|
41
41
|
from: { scrollTop: r },
|
|
42
42
|
to: { scrollTop: 0 },
|
|
43
43
|
easing: t.easing,
|
|
44
44
|
duration: t.duration,
|
|
45
|
-
onUpdate: (
|
|
46
|
-
o.scrollTop =
|
|
45
|
+
onUpdate: (x) => {
|
|
46
|
+
o.scrollTop = x.scrollTop;
|
|
47
47
|
}
|
|
48
48
|
}).start(), (u = t.onClick) == null || u.call(t);
|
|
49
49
|
};
|
|
50
50
|
return /* @__PURE__ */ i(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
...
|
|
53
|
+
...O(t),
|
|
54
54
|
ref: a,
|
|
55
|
-
className:
|
|
56
|
-
`${
|
|
57
|
-
{ [`${
|
|
55
|
+
className: j(
|
|
56
|
+
`${l}`,
|
|
57
|
+
{ [`${l}-rtl`]: w },
|
|
58
58
|
t.className
|
|
59
59
|
),
|
|
60
60
|
style: t.style,
|
|
61
61
|
onClick: f,
|
|
62
|
-
...
|
|
62
|
+
...h({
|
|
63
63
|
onPressEnter: f
|
|
64
64
|
}),
|
|
65
65
|
children: /* @__PURE__ */ i(
|
|
66
|
-
|
|
66
|
+
U,
|
|
67
67
|
{
|
|
68
|
-
in:
|
|
68
|
+
in: b,
|
|
69
69
|
timeout: 100,
|
|
70
70
|
classNames: "fadeIn",
|
|
71
71
|
unmountOnExit: !0,
|
|
72
|
-
children: t.children || /* @__PURE__ */ i("button", { className: `${
|
|
72
|
+
children: t.children || /* @__PURE__ */ i("button", { className: `${l}-button`, children: /* @__PURE__ */ i(C, {}) })
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
const d =
|
|
79
|
-
|
|
78
|
+
const d = y(
|
|
79
|
+
q
|
|
80
80
|
);
|
|
81
81
|
d.displayName = "BackTop";
|
|
82
|
-
const tt =
|
|
82
|
+
const tt = N.memo(d);
|
|
83
83
|
export {
|
|
84
84
|
tt as default
|
|
85
85
|
};
|
package/Badge.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import w from "lodash/isPlainObject";
|
|
3
|
-
import { useState as A, forwardRef as R, useContext as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
function
|
|
10
|
-
const [g, r] = A(!1), p =
|
|
3
|
+
import { useState as A, forwardRef as R, useContext as z } from "react";
|
|
4
|
+
import { a as G } from "./chunk/BJQ5UNa-.js";
|
|
5
|
+
import { c as I } from "./chunk/B5gK1Idp.js";
|
|
6
|
+
import { N as b } from "./chunk/DC1iHEiy.js";
|
|
7
|
+
import { m as a } from "./chunk/JPPo5nY_.js";
|
|
8
|
+
import { n as _ } from "./chunk/DU6bs_19.js";
|
|
9
|
+
function k({ prefixCls: d, maxCount: c, count: n, className: i, style: f }) {
|
|
10
|
+
const [g, r] = A(!1), p = _(n), l = n !== p;
|
|
11
11
|
return /* @__PURE__ */ s(
|
|
12
12
|
b,
|
|
13
13
|
{
|
|
@@ -20,13 +20,13 @@ function _({ prefixCls: d, maxCount: i, count: n, className: c, style: f }) {
|
|
|
20
20
|
onEntered: () => {
|
|
21
21
|
r(!0);
|
|
22
22
|
},
|
|
23
|
-
children: /* @__PURE__ */ s("span", { className:
|
|
23
|
+
children: /* @__PURE__ */ s("span", { className: i, style: f, children: /* @__PURE__ */ s(
|
|
24
24
|
"span",
|
|
25
25
|
{
|
|
26
26
|
className: a({
|
|
27
27
|
[`${d}-number-text`]: g && l
|
|
28
28
|
}),
|
|
29
|
-
children:
|
|
29
|
+
children: c && n > c ? `${c}+` : n
|
|
30
30
|
},
|
|
31
31
|
n
|
|
32
32
|
) })
|
|
@@ -45,72 +45,72 @@ const O = [
|
|
|
45
45
|
"purple",
|
|
46
46
|
"magenta",
|
|
47
47
|
"gray"
|
|
48
|
-
],
|
|
48
|
+
], q = {
|
|
49
49
|
count: 0,
|
|
50
50
|
maxCount: 99
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
const { getPrefixCls: n, componentConfig:
|
|
52
|
+
function L(d, c) {
|
|
53
|
+
const { getPrefixCls: n, componentConfig: i, rtl: f } = z(G), g = I(
|
|
54
54
|
d,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
q,
|
|
56
|
+
i == null ? void 0 : i.Badge
|
|
57
57
|
), {
|
|
58
58
|
count: r,
|
|
59
59
|
prefixText: p,
|
|
60
60
|
text: l,
|
|
61
|
-
className:
|
|
61
|
+
className: E,
|
|
62
62
|
dotClassName: m,
|
|
63
63
|
dot: x,
|
|
64
|
-
maxCount:
|
|
65
|
-
color:
|
|
66
|
-
dotStyle:
|
|
67
|
-
offset:
|
|
68
|
-
style:
|
|
64
|
+
maxCount: S,
|
|
65
|
+
color: e,
|
|
66
|
+
dotStyle: B,
|
|
67
|
+
offset: D,
|
|
68
|
+
style: P,
|
|
69
69
|
status: u,
|
|
70
|
-
children:
|
|
71
|
-
...
|
|
72
|
-
} = g,
|
|
73
|
-
|
|
70
|
+
children: N,
|
|
71
|
+
...T
|
|
72
|
+
} = g, t = n("badge"), o = { ...B || {} }, [y, h] = D || [];
|
|
73
|
+
y && (o.marginRight = -y), h && (o.marginTop = h);
|
|
74
74
|
const j = () => {
|
|
75
75
|
if (w(r))
|
|
76
76
|
return /* @__PURE__ */ s(
|
|
77
77
|
"span",
|
|
78
78
|
{
|
|
79
|
-
className: a(`${
|
|
79
|
+
className: a(`${t}-custom-dot`, m),
|
|
80
80
|
style: o,
|
|
81
81
|
children: r
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
const $ = !
|
|
85
|
-
return l && !
|
|
84
|
+
const $ = !e || O.indexOf(e) > -1 ? {} : { backgroundColor: e };
|
|
85
|
+
return l && !e && !u ? /* @__PURE__ */ s(
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
88
|
-
className: a(`${
|
|
88
|
+
className: a(`${t}-text`, m),
|
|
89
89
|
style: o,
|
|
90
90
|
children: l
|
|
91
91
|
}
|
|
92
|
-
) : u ||
|
|
93
|
-
!!p && /* @__PURE__ */ s("span", { className: `${
|
|
92
|
+
) : u || e && typeof r == "number" && r <= 0 ? /* @__PURE__ */ C("span", { className: `${t}-status-wrapper`, children: [
|
|
93
|
+
!!p && /* @__PURE__ */ s("span", { className: `${t}-status-prefix-text`, children: p }),
|
|
94
94
|
/* @__PURE__ */ s(
|
|
95
95
|
"span",
|
|
96
96
|
{
|
|
97
97
|
className: a(
|
|
98
|
-
`${
|
|
98
|
+
`${t}-status-dot`,
|
|
99
99
|
{
|
|
100
|
-
[`${
|
|
101
|
-
[`${
|
|
100
|
+
[`${t}-status-${u}`]: u,
|
|
101
|
+
[`${t}-color-${e}`]: e
|
|
102
102
|
},
|
|
103
103
|
m
|
|
104
104
|
),
|
|
105
105
|
style: { ...$, ...o }
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
!!l && /* @__PURE__ */ s("span", { className: `${
|
|
109
|
-
] }) : (x ||
|
|
108
|
+
!!l && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: l })
|
|
109
|
+
] }) : (x || e) && typeof r == "number" && r > 0 ? /* @__PURE__ */ s(
|
|
110
110
|
b,
|
|
111
111
|
{
|
|
112
112
|
classNames: "badge-zoom",
|
|
113
|
-
in: x || !!
|
|
113
|
+
in: x || !!e,
|
|
114
114
|
timeout: 200,
|
|
115
115
|
appear: !0,
|
|
116
116
|
mountOnEnter: !0,
|
|
@@ -119,9 +119,9 @@ function v(d, i) {
|
|
|
119
119
|
"span",
|
|
120
120
|
{
|
|
121
121
|
className: a(
|
|
122
|
-
`${
|
|
122
|
+
`${t}-dot`,
|
|
123
123
|
{
|
|
124
|
-
[`${
|
|
124
|
+
[`${t}-color-${e}`]: e
|
|
125
125
|
},
|
|
126
126
|
m
|
|
127
127
|
),
|
|
@@ -130,12 +130,12 @@ function v(d, i) {
|
|
|
130
130
|
)
|
|
131
131
|
}
|
|
132
132
|
) : /* @__PURE__ */ s(
|
|
133
|
-
|
|
133
|
+
k,
|
|
134
134
|
{
|
|
135
|
-
prefixCls:
|
|
136
|
-
className: a(`${
|
|
135
|
+
prefixCls: t,
|
|
136
|
+
className: a(`${t}-number`, m),
|
|
137
137
|
style: { ...$, ...o },
|
|
138
|
-
maxCount:
|
|
138
|
+
maxCount: S,
|
|
139
139
|
count: r
|
|
140
140
|
}
|
|
141
141
|
);
|
|
@@ -144,26 +144,26 @@ function v(d, i) {
|
|
|
144
144
|
"span",
|
|
145
145
|
{
|
|
146
146
|
className: a(
|
|
147
|
-
|
|
147
|
+
t,
|
|
148
148
|
{
|
|
149
|
-
[`${
|
|
150
|
-
[`${
|
|
151
|
-
[`${
|
|
149
|
+
[`${t}-status`]: u,
|
|
150
|
+
[`${t}-no-children`]: !N,
|
|
151
|
+
[`${t}-rtl`]: f
|
|
152
152
|
},
|
|
153
|
-
|
|
153
|
+
E
|
|
154
154
|
),
|
|
155
|
-
ref:
|
|
156
|
-
style:
|
|
157
|
-
...
|
|
155
|
+
ref: c,
|
|
156
|
+
style: P,
|
|
157
|
+
...T,
|
|
158
158
|
children: [
|
|
159
|
-
|
|
159
|
+
N,
|
|
160
160
|
j()
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const U = R(L);
|
|
166
|
+
U.displayName = "Badge";
|
|
167
167
|
const W = O, X = [
|
|
168
168
|
"default",
|
|
169
169
|
"processing",
|
|
@@ -174,5 +174,5 @@ const W = O, X = [
|
|
|
174
174
|
export {
|
|
175
175
|
W as BADGE_COLORS,
|
|
176
176
|
X as BADGE_STATUS,
|
|
177
|
-
|
|
177
|
+
U as default
|
|
178
178
|
};
|
package/Breadcrumb.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as v, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import M from "@unicom-cloud/icons/IconUiObliqueLine";
|
|
3
3
|
import g, { useState as O, forwardRef as U, useContext as _ } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { M as V } from "./chunk/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import E from "./
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
4
|
+
import { a as q } from "./chunk/BJQ5UNa-.js";
|
|
5
|
+
import { c as F } from "./chunk/B5gK1Idp.js";
|
|
6
|
+
import { M as V } from "./chunk/CVSF8p0O.js";
|
|
7
|
+
import { m as B } from "./chunk/JPPo5nY_.js";
|
|
8
|
+
import { w as K } from "./chunk/CkNSv2U7.js";
|
|
9
|
+
import { c as E } from "./chunk/BdUcgWdu.js";
|
|
10
|
+
import L from "@unicom-cloud/icons/IconUiDown";
|
|
11
|
+
import W from "lodash/isString";
|
|
12
|
+
import z from "./Dropdown.js";
|
|
13
|
+
import { r as A } from "./chunk/D7NyvE5f.js";
|
|
14
14
|
function x(o) {
|
|
15
15
|
const {
|
|
16
16
|
children: l,
|
|
@@ -19,63 +19,63 @@ function x(o) {
|
|
|
19
19
|
prefixCls: c,
|
|
20
20
|
droplist: n,
|
|
21
21
|
dropdownProps: a,
|
|
22
|
-
href:
|
|
23
|
-
onClick:
|
|
22
|
+
href: u,
|
|
23
|
+
onClick: $,
|
|
24
24
|
tagName: i = "div",
|
|
25
25
|
...b
|
|
26
|
-
} = o, [I,
|
|
26
|
+
} = o, [I, w] = O(!1), s = W(u) ? "a" : i, f = /* @__PURE__ */ v(
|
|
27
27
|
s,
|
|
28
28
|
{
|
|
29
|
-
href:
|
|
30
|
-
onClick:
|
|
29
|
+
href: u,
|
|
30
|
+
onClick: $,
|
|
31
31
|
role: "listitem",
|
|
32
32
|
style: p,
|
|
33
|
-
className:
|
|
33
|
+
className: B(
|
|
34
34
|
`${c}-item`,
|
|
35
35
|
{
|
|
36
36
|
[`${c}-item-with-dropdown`]: n
|
|
37
37
|
},
|
|
38
38
|
h
|
|
39
39
|
),
|
|
40
|
-
...
|
|
40
|
+
...A(b),
|
|
41
41
|
children: [
|
|
42
42
|
l,
|
|
43
43
|
n && /* @__PURE__ */ t(
|
|
44
44
|
"span",
|
|
45
45
|
{
|
|
46
46
|
"aria-hidden": !0,
|
|
47
|
-
className:
|
|
47
|
+
className: B(`${c}-item-dropdown-icon`, {
|
|
48
48
|
[`${c}-item-dropdown-icon-active`]: I
|
|
49
49
|
}),
|
|
50
|
-
children: /* @__PURE__ */ t(
|
|
50
|
+
children: /* @__PURE__ */ t(L, {})
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
return n ? /* @__PURE__ */ t(
|
|
57
|
-
|
|
57
|
+
z,
|
|
58
58
|
{
|
|
59
59
|
droplist: n,
|
|
60
60
|
onVisibleChange: (C) => {
|
|
61
61
|
var N;
|
|
62
|
-
|
|
62
|
+
w(C), (N = a == null ? void 0 : a.onVisibleChange) == null || N.call(a, C);
|
|
63
63
|
},
|
|
64
64
|
...E(a, ["onVisibleChange"]),
|
|
65
|
-
children:
|
|
65
|
+
children: f
|
|
66
66
|
}
|
|
67
|
-
) :
|
|
67
|
+
) : f;
|
|
68
68
|
}
|
|
69
69
|
x.displayName = "BreadcrumbItem";
|
|
70
70
|
const G = (o, l, p) => l.indexOf(o) === l.length - 1 ? /* @__PURE__ */ t("span", { children: o.breadcrumbName }) : /* @__PURE__ */ t("a", { href: `#/${p.join("/").replace(/^\//, "")}`, children: o.breadcrumbName }), H = {
|
|
71
|
-
separator: /* @__PURE__ */ t(
|
|
71
|
+
separator: /* @__PURE__ */ t(M, {})
|
|
72
72
|
};
|
|
73
73
|
function J(o, l) {
|
|
74
|
-
const { getPrefixCls: p, componentConfig: h, rtl: c } = _(q), n =
|
|
74
|
+
const { getPrefixCls: p, componentConfig: h, rtl: c } = _(q), n = F(
|
|
75
75
|
o,
|
|
76
76
|
H,
|
|
77
77
|
h == null ? void 0 : h.Breadcrumb
|
|
78
|
-
), { className: a, children:
|
|
78
|
+
), { className: a, children: u, style: $, routes: i, maxCount: b, separator: I, ...w } = n, s = p("breadcrumb"), f = "itemRender" in n ? n.itemRender : G, C = /* @__PURE__ */ t(
|
|
79
79
|
"span",
|
|
80
80
|
{
|
|
81
81
|
"aria-label": "ellipses of breadcrumb items",
|
|
@@ -87,18 +87,18 @@ function J(o, l) {
|
|
|
87
87
|
key: `${e}_separator`
|
|
88
88
|
});
|
|
89
89
|
return d > 0 ? e === 0 ? [r, m, C] : e > d ? [m, r] : null : e === 0 ? [r] : [m, r];
|
|
90
|
-
},
|
|
90
|
+
}, j = () => {
|
|
91
91
|
const r = [], d = i.length - b;
|
|
92
92
|
return i.map((e, m) => {
|
|
93
93
|
r.push((e.path || "").replace(/^\//, ""));
|
|
94
|
-
const k = e.children ? /* @__PURE__ */ t(V, { children: e.children.map((
|
|
94
|
+
const k = e.children ? /* @__PURE__ */ t(V, { children: e.children.map((y) => /* @__PURE__ */ t(V.Item, { children: f(y, i, r) }, y.path || y.breadcrumbName)) }) : null;
|
|
95
95
|
return R(
|
|
96
96
|
/* @__PURE__ */ t(
|
|
97
97
|
x,
|
|
98
98
|
{
|
|
99
99
|
prefixCls: s,
|
|
100
100
|
droplist: k,
|
|
101
|
-
children:
|
|
101
|
+
children: f(e, i, r)
|
|
102
102
|
},
|
|
103
103
|
e.path || e.breadcrumbName
|
|
104
104
|
),
|
|
@@ -106,10 +106,10 @@ function J(o, l) {
|
|
|
106
106
|
m
|
|
107
107
|
);
|
|
108
108
|
});
|
|
109
|
-
},
|
|
109
|
+
}, D = () => {
|
|
110
110
|
const r = [];
|
|
111
|
-
g.Children.forEach(
|
|
112
|
-
|
|
111
|
+
g.Children.forEach(u, (e) => {
|
|
112
|
+
K(e) || r.push(e);
|
|
113
113
|
});
|
|
114
114
|
const d = r.length - b;
|
|
115
115
|
return g.Children.map(r, (e, m) => R(
|
|
@@ -125,16 +125,16 @@ function J(o, l) {
|
|
|
125
125
|
{
|
|
126
126
|
role: "list",
|
|
127
127
|
ref: l,
|
|
128
|
-
style:
|
|
129
|
-
className:
|
|
130
|
-
...E(
|
|
131
|
-
children: i && i.length ?
|
|
128
|
+
style: $,
|
|
129
|
+
className: B(s, { [`${s}-rtl`]: c }, a),
|
|
130
|
+
...E(w, ["itemRender"]),
|
|
131
|
+
children: i && i.length ? j() : D()
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
const Q = U(J), S = Q;
|
|
136
|
+
S.displayName = "Breadcrumb";
|
|
137
|
+
S.Item = x;
|
|
138
138
|
export {
|
|
139
|
-
|
|
139
|
+
S as default
|
|
140
140
|
};
|