@unicom-cloud/ui 0.8.78 → 0.8.80
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 +3 -3
- package/Alert.js +3 -3
- package/AutoComplete.js +5 -5
- package/BackTop.js +5 -5
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +5 -5
- package/Empty.js +2 -2
- package/Icon.js +9 -5
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +3 -3
- package/Layout.js +2 -2
- package/Link.js +3 -3
- package/List.js +4 -4
- package/Mentions.js +5 -5
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +9 -8
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +3 -3
- package/Pagination.js +1 -1
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/Select.js +1 -1
- package/SelectView.js +5 -6
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +18 -20
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +7 -8
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +3 -3
- package/Tooltip.js +3 -3
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +9 -10
- package/Typography.js +1 -1
- package/affix/index.js +17 -17
- package/alert/index.js +13 -13
- package/anchor/Anchor.js +40 -40
- package/anchor/Link.js +14 -14
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +5 -5
- package/avatar/Avatar.js +17 -17
- package/avatar/Group.js +13 -13
- package/back-top/index.js +18 -18
- package/badge/Count.js +13 -13
- package/badge/index.js +21 -21
- package/breadcrumb/Item.js +25 -25
- package/breadcrumb/index.js +12 -12
- package/button/Group.js +6 -6
- package/button/index.js +30 -30
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +13 -13
- package/card/Meta.js +13 -13
- package/card/index.js +29 -29
- package/carousel/Arrow.js +6 -6
- package/carousel/Indicator.js +27 -27
- package/carousel/index.js +24 -24
- package/cascader/Cascader.js +8 -8
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/GroupBlock.js +3 -3
- package/checkbox/index.js +2 -2
- package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
- package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
- package/chunk/BYdIoY50.js +17 -0
- package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
- package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
- package/chunk/BsUZRQDT.js +23 -0
- package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
- package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
- package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
- package/chunk/CXPOj2uy.js +19 -0
- package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
- package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
- package/chunk/{Cwm8LL5p.js → D73Vr7fa.js} +7197 -7202
- package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
- package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
- package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
- package/chunk/DxYoPlum.js +50 -0
- package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
- package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
- package/chunk/{BhBEMwvI.js → uKZyjtff.js} +20 -21
- package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
- package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +22 -22
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +4 -4
- package/color-picker/index.js +3 -3
- package/comment/index.js +18 -18
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +2 -2
- package/copy/index.js +23 -23
- package/date-picker/Picker.js +41 -41
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +28 -28
- package/divider/index.js +15 -15
- package/draggable/Item.js +11 -11
- package/draggable/index.js +15 -15
- package/drawer/Drawer.js +31 -31
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +22 -22
- package/empty/index.js +2 -2
- package/form/Control.js +46 -46
- package/form/Form.js +12 -12
- package/form/FormItem.js +12 -12
- package/form/FormLabel.js +11 -11
- package/form/context.js +7 -6
- package/form/promisify.js +9 -10
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +38 -38
- package/grid/Row.js +15 -15
- package/grid/grid-item.js +17 -17
- package/grid/grid.js +28 -28
- package/hooks/index.js +6 -6
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/useVerificationCode.js +30 -30
- package/icon/index.js +20 -16
- package/icon-hover/index.js +2 -2
- package/image/Image.js +22 -22
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +11 -11
- package/image/ImagePreviewArrow.js +16 -16
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +7 -7
- package/image/TriggerForToolbar.js +7 -7
- package/image/index.js +1 -1
- package/index.js +539 -572
- package/input/Group.js +10 -10
- package/input/Input.js +213 -214
- package/input/InputElement.js +10 -11
- package/input/Password.js +4 -4
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -8
- package/input/useComposition.js +6 -6
- package/input-number/index.js +3 -3
- package/input-tag/InputTag.js +110 -111
- package/layout/Content.js +4 -4
- package/layout/Footer.js +6 -6
- package/layout/Header.js +8 -8
- package/layout/Sider.js +29 -29
- package/layout/index.js +16 -16
- package/link/index.js +27 -27
- package/list/Item.js +5 -5
- package/list/Meta.js +11 -11
- package/list/index.js +4 -4
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +5 -5
- package/menu/Item.js +11 -11
- package/menu/ItemGroup.js +8 -8
- package/menu/Menu.js +5 -5
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +7 -7
- package/modal/index.js +1 -1
- package/notice/index.js +9 -8
- package/notification/index.js +3 -3
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +27 -27
- package/package.json +1 -1
- package/page-header/index.js +3 -3
- package/pagination/PageItem.js +7 -7
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +3 -3
- package/pagination/Pagination.js +4 -4
- package/pagination/index.js +1 -1
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +77 -77
- package/popconfirm/index.js +11 -11
- package/popover/index.js +21 -21
- package/progress/CircleProgress.js +14 -14
- package/progress/LineProgess.js +14 -14
- package/progress/StepProgress.js +9 -9
- package/progress/index.js +26 -26
- package/radio/Group.js +4 -4
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +16 -16
- package/resize-box/ResizeTrigger.js +27 -28
- package/resize-box/Split.js +21 -21
- package/resize-box/SplitGroup.js +40 -40
- package/resize-box/index.js +23 -23
- package/result/index.js +29 -29
- package/select/Option.js +2 -2
- package/select/Select.js +11 -12
- package/select/index.js +2 -2
- package/select/util.js +5 -5
- package/select-view/Core.js +104 -106
- package/select-view/index.js +22 -23
- package/skeleton/Image.js +14 -14
- package/skeleton/Text.js +16 -16
- package/skeleton/index.js +11 -11
- package/slider/Button.js +4 -4
- package/slider/Dot.js +9 -9
- package/slider/Input.js +20 -20
- package/slider/Tick.js +14 -14
- package/slider/index.js +103 -103
- package/slider/util.js +3 -3
- package/space/index.js +14 -14
- package/speech-synthesis/index.js +26 -28
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +16 -16
- package/statistic/Countdown.js +17 -17
- package/statistic/index.js +40 -40
- package/steps/Step.js +8 -8
- package/steps/index.js +17 -17
- package/switch/index.js +32 -33
- package/table/Table.js +5 -5
- package/table/index.js +1 -1
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +11 -11
- package/tabs/index.js +2 -2
- package/tabs/util.js +1 -1
- package/tag/index.js +16 -16
- package/time-picker/Picker.js +50 -50
- package/time-picker/TimeColumn.js +8 -8
- package/time-picker/TimePicker.js +32 -32
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +15 -15
- package/timeline/Timeline.js +24 -24
- package/tooltip/index.js +23 -23
- package/transfer/Item.js +4 -4
- package/transfer/List.js +4 -4
- package/transfer/index.js +4 -4
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/List.js +2 -2
- package/tree-select/Select.js +8 -9
- package/tree-select/index.js +2 -2
- package/trigger/getPopupStyle.js +18 -19
- package/trigger/index.js +32 -33
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/icon/index.d.ts +3 -1
- package/types/index.d.ts +1 -1
- package/types/menu/context.d.ts +1 -1
- package/typography/Base.js +33 -35
- package/typography/EditContent.js +16 -16
- package/typography/Ellipsis.js +25 -26
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +8 -8
- package/upload/Upload.js +64 -65
- package/upload/Uploader.js +12 -12
- package/upload/request.js +13 -12
- package/upload/request_.js +5 -6
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/caseName.js +4 -3
- package/utils/className.js +4 -3
- package/utils/constant.js +3 -3
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +5 -4
- package/utils/fileToURL.js +4 -3
- package/utils/index.js +262 -299
- package/utils/is.js +78 -115
- package/utils/keyboardCode.js +4 -26
- package/utils/math.js +10 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +4 -3
- package/utils/screenfull.js +4 -3
- package/utils/scrollIntoView.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/tree.js +7 -83
- package/utils/tween.js +1 -1
- package/utils/validate.js +1 -1
- package/verification-code/VerificationCode.js +25 -25
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +8 -8
- package/chunk/ATwvJ8j2.js +0 -6
- package/chunk/BFmckYou.js +0 -25
- package/chunk/Bl7BnD1R.js +0 -119
- package/chunk/Bmvhjhzq.js +0 -24
- package/chunk/BrOW642m.js +0 -130
- package/chunk/C0pRaDCf.js +0 -96
- package/chunk/CBzE-PUr.js +0 -23
- package/chunk/CUFsOxJ2.js +0 -10
- package/chunk/Ce1j9KTi.js +0 -6
- package/chunk/D0Dlbc2g.js +0 -41
- package/chunk/DRTWRsgI.js +0 -34
- package/chunk/DeV0v__J.js +0 -20
- package/chunk/DohlrJ4S.js +0 -50
- package/chunk/XTEsYGuF.js +0 -17
- package/chunk/yl4BU7Sd.js +0 -1068
|
@@ -2,11 +2,11 @@ import { jsx as u, jsxs as ee } from "react/jsx-runtime";
|
|
|
2
2
|
import fe from "lodash/isFunction";
|
|
3
3
|
import ke from "lodash/isPlainObject";
|
|
4
4
|
import te, { useContext as ie, useRef as V, useState as we, useEffect as L, useMemo as ae, useCallback as at, useImperativeHandle as ct } from "react";
|
|
5
|
-
import { a as Oe, I as me } from "./
|
|
5
|
+
import { a as Oe, I as me } from "./CQvM33Vg.js";
|
|
6
6
|
import { u as st } from "./B4YRLi8r.js";
|
|
7
7
|
import { u as lt } from "./BFTV6myl.js";
|
|
8
|
-
import { u as dt } from "./
|
|
9
|
-
import
|
|
8
|
+
import { u as dt } from "./CXPOj2uy.js";
|
|
9
|
+
import X from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { o as ye } from "./BKKEev13.js";
|
|
11
11
|
import ft from "../tabs/TabPane.js";
|
|
12
12
|
import ut from "@unicom-cloud/icons/IconUiPlus";
|
|
@@ -19,14 +19,14 @@ import { setTransformStyle as pt } from "../utils/style.js";
|
|
|
19
19
|
import Ye from "@unicom-cloud/icons/IconUiDown";
|
|
20
20
|
import je from "lodash/isNull";
|
|
21
21
|
import bt from "../dropdown/index.js";
|
|
22
|
-
import { M as Ae } from "./
|
|
22
|
+
import { M as Ae } from "./C5X4hOkx.js";
|
|
23
23
|
import gt from "lodash/isEqualWith";
|
|
24
24
|
import vt from "../utils/throttleByRaf.js";
|
|
25
25
|
import Me from "@unicom-cloud/icons/IconUiLeft";
|
|
26
26
|
import Ee from "@unicom-cloud/icons/IconUiRight";
|
|
27
27
|
import $t from "@unicom-cloud/icons/IconUiUp";
|
|
28
28
|
import yt from "@unicom-cloud/icons/IconUiClose";
|
|
29
|
-
import {
|
|
29
|
+
import { Enter as Tt } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
30
30
|
function wt(e) {
|
|
31
31
|
const {
|
|
32
32
|
animation: s,
|
|
@@ -103,9 +103,9 @@ function xt(e) {
|
|
|
103
103
|
return;
|
|
104
104
|
d.preventDefault();
|
|
105
105
|
const { deltaX: i, deltaY: $ } = d;
|
|
106
|
-
let
|
|
107
|
-
const
|
|
108
|
-
|
|
106
|
+
let N = 0;
|
|
107
|
+
const I = Math.abs(i), S = Math.abs($);
|
|
108
|
+
I === S ? N = g.current === "x" ? i : $ : I > S ? (N = i, g.current = "x") : (N = $, g.current = "y"), v(N, N);
|
|
109
109
|
}
|
|
110
110
|
const w = V({
|
|
111
111
|
clientX: 0,
|
|
@@ -115,8 +115,8 @@ function xt(e) {
|
|
|
115
115
|
const i = l(d);
|
|
116
116
|
if (!i)
|
|
117
117
|
return;
|
|
118
|
-
const { clientX: $, clientY:
|
|
119
|
-
v(-
|
|
118
|
+
const { clientX: $, clientY: N } = w.current, I = i.clientX - $, S = i.clientY - N;
|
|
119
|
+
v(-I, -S);
|
|
120
120
|
}, x = () => {
|
|
121
121
|
We(document.documentElement, "touchmove", c), We(document.documentElement, "touchend", x);
|
|
122
122
|
}, h = (d) => {
|
|
@@ -287,7 +287,7 @@ const Ot = (e, s, a) => {
|
|
|
287
287
|
z.preventDefault();
|
|
288
288
|
let O;
|
|
289
289
|
v === "left" ? O = f === "left" ? t - l : t + l : O = f === "left" ? t + l : t - l, i(O);
|
|
290
|
-
},
|
|
290
|
+
}, N = (z, f) => {
|
|
291
291
|
z.preventDefault();
|
|
292
292
|
let O;
|
|
293
293
|
if (f === "up")
|
|
@@ -295,12 +295,12 @@ const Ot = (e, s, a) => {
|
|
|
295
295
|
else if (O = t + w, O >= c)
|
|
296
296
|
return;
|
|
297
297
|
i(O);
|
|
298
|
-
},
|
|
298
|
+
}, I = ae(() => v === "left" ? t <= 0 : s === "vertical" ? t >= h : t >= p, [v, s, t, p, t]), S = ae(() => v === "left" ? s === "vertical" ? t >= h : t >= p : t <= 0, [v, s, h, p, t]);
|
|
299
299
|
if (je(m))
|
|
300
300
|
return null;
|
|
301
|
-
const A = s === "horizontal" ? St[b] : Pt[b], _ = b === "prev" ?
|
|
301
|
+
const A = s === "horizontal" ? St[b] : Pt[b], _ = b === "prev" ? I : S, F = X(`${o}-${A}-icon`, {
|
|
302
302
|
[`${o}-nav-icon-disabled`]: _
|
|
303
|
-
}), Y = s === "vertical" ?
|
|
303
|
+
}), Y = s === "vertical" ? N : $;
|
|
304
304
|
return /* @__PURE__ */ u(
|
|
305
305
|
me,
|
|
306
306
|
{
|
|
@@ -311,7 +311,7 @@ const Ot = (e, s, a) => {
|
|
|
311
311
|
children: m || d[A]
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
|
-
},
|
|
314
|
+
}, Nt = ({
|
|
315
315
|
prefixCls: e,
|
|
316
316
|
onDeleteTab: s,
|
|
317
317
|
tabKey: a,
|
|
@@ -377,7 +377,7 @@ const Ot = (e, s, a) => {
|
|
|
377
377
|
editable: v
|
|
378
378
|
}
|
|
379
379
|
);
|
|
380
|
-
},
|
|
380
|
+
}, It = te.forwardRef(Nt), Se = "vertical", ue = "right", he = "left", Le = {
|
|
381
381
|
delete: !0,
|
|
382
382
|
add: !0
|
|
383
383
|
}, zt = ({
|
|
@@ -396,7 +396,7 @@ const Ot = (e, s, a) => {
|
|
|
396
396
|
const o = Ce(a, n);
|
|
397
397
|
return e === Se ? -o.top : s === ue ? o.right : -o.left;
|
|
398
398
|
}, xe = te.forwardRef((e, s) => {
|
|
399
|
-
const a = ie(Pe), { rtl: n } = ie(Oe), o = { ...e, ...a }, [b, t, v] = oe(), [g, m, w] = oe(), [l, c, x] = oe(), [h, p, d] = oe(), [i, $,
|
|
399
|
+
const a = ie(Pe), { rtl: n } = ie(Oe), o = { ...e, ...a }, [b, t, v] = oe(), [g, m, w] = oe(), [l, c, x] = oe(), [h, p, d] = oe(), [i, $, N] = oe(), I = V({}), [S, A] = we(0), [_, F] = we(!0), {
|
|
400
400
|
paneChildren: Y,
|
|
401
401
|
editable: z,
|
|
402
402
|
prefixCls: f,
|
|
@@ -410,16 +410,16 @@ const Ot = (e, s, a) => {
|
|
|
410
410
|
style: Fe,
|
|
411
411
|
tabPosition: Ge,
|
|
412
412
|
className: Ke,
|
|
413
|
-
extra:
|
|
413
|
+
extra: Ne,
|
|
414
414
|
animation: qe,
|
|
415
415
|
icons: P,
|
|
416
416
|
deleteButton: Je,
|
|
417
417
|
addButton: Qe,
|
|
418
418
|
renderTabTitle: Ze,
|
|
419
|
-
scrollAfterEdit:
|
|
419
|
+
scrollAfterEdit: Ie,
|
|
420
420
|
scrollPosition: M = "auto",
|
|
421
421
|
inkBarSize: et
|
|
422
|
-
} = o, ze = ke(
|
|
422
|
+
} = o, ze = ke(Ie) ? { ...Le, ...Ie } : Le, [tt, nt] = n ? [ue, he] : [he, ue], G = H === "capsule" ? nt : tt, j = ae(() => {
|
|
423
423
|
const r = c.height - p.height - $.height, y = c.width - p.width - $.width;
|
|
424
424
|
return o.direction === "vertical" ? r < m.height : y < m.width;
|
|
425
425
|
}, [
|
|
@@ -444,7 +444,7 @@ const Ot = (e, s, a) => {
|
|
|
444
444
|
width: T.offsetWidth,
|
|
445
445
|
domRect: T.getBoundingClientRect()
|
|
446
446
|
});
|
|
447
|
-
}, 200), K = ce(v), q = ce(w), J = ce(d), Q = ce(
|
|
447
|
+
}, 200), K = ce(v), q = ce(w), J = ce(d), Q = ce(N), pe = at(
|
|
448
448
|
(r) => {
|
|
449
449
|
const y = C === Se ? m.height - t.height : m.width - t.width;
|
|
450
450
|
let T = r;
|
|
@@ -464,7 +464,7 @@ const Ot = (e, s, a) => {
|
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
466
|
const r = () => {
|
|
467
|
-
const T =
|
|
467
|
+
const T = I.current[ne];
|
|
468
468
|
if (!T || !j)
|
|
469
469
|
return 0;
|
|
470
470
|
const k = Ce(T, b.current), E = Ht({
|
|
@@ -602,10 +602,10 @@ const Ot = (e, s, a) => {
|
|
|
602
602
|
style: ot,
|
|
603
603
|
children: [
|
|
604
604
|
Y.map((r, y) => /* @__PURE__ */ u(
|
|
605
|
-
|
|
605
|
+
It,
|
|
606
606
|
{
|
|
607
607
|
ref: (T) => {
|
|
608
|
-
|
|
608
|
+
I.current[r.key] = T;
|
|
609
609
|
},
|
|
610
610
|
tabKey: r.key,
|
|
611
611
|
...r.props,
|
|
@@ -634,7 +634,7 @@ const Ot = (e, s, a) => {
|
|
|
634
634
|
prefixCls: f,
|
|
635
635
|
animation: qe,
|
|
636
636
|
direction: C,
|
|
637
|
-
getTitleRef: (r) =>
|
|
637
|
+
getTitleRef: (r) => I.current[r],
|
|
638
638
|
activeTab: ne,
|
|
639
639
|
getHeaderRef: () => g,
|
|
640
640
|
inkBarSize: et
|
|
@@ -670,13 +670,13 @@ const Ot = (e, s, a) => {
|
|
|
670
670
|
headerSize: m,
|
|
671
671
|
icon: P == null ? void 0 : P.dropdown,
|
|
672
672
|
headerWrapperSize: t,
|
|
673
|
-
getTitleRef: (r) =>
|
|
673
|
+
getTitleRef: (r) => I.current[r],
|
|
674
674
|
direction: C
|
|
675
675
|
}
|
|
676
676
|
),
|
|
677
|
-
(se && j ||
|
|
677
|
+
(se && j || Ne) && /* @__PURE__ */ ee("div", { className: `${f}-header-extra`, ref: h, children: [
|
|
678
678
|
j && Re(se),
|
|
679
|
-
|
|
679
|
+
Ne
|
|
680
680
|
] })
|
|
681
681
|
]
|
|
682
682
|
}
|
|
@@ -725,8 +725,8 @@ function Mt(e, s) {
|
|
|
725
725
|
style: d,
|
|
726
726
|
type: i,
|
|
727
727
|
justify: $,
|
|
728
|
-
destroyOnHide:
|
|
729
|
-
lazyload:
|
|
728
|
+
destroyOnHide: N,
|
|
729
|
+
lazyload: I,
|
|
730
730
|
headerSticky: S,
|
|
731
731
|
// 潘启宝添加
|
|
732
732
|
onChange: A,
|
|
@@ -755,8 +755,8 @@ function Mt(e, s) {
|
|
|
755
755
|
activeTab: m,
|
|
756
756
|
paneChildren: v,
|
|
757
757
|
prefixCls: l,
|
|
758
|
-
destroyOnHide:
|
|
759
|
-
lazyload:
|
|
758
|
+
destroyOnHide: N,
|
|
759
|
+
lazyload: I
|
|
760
760
|
}
|
|
761
761
|
);
|
|
762
762
|
return /* @__PURE__ */ u(
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useCallback as u } from "react";
|
|
2
|
+
import { Enter as E, ArrowDown as g, ArrowLeft as m, ArrowRight as D, ArrowUp as L } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
3
|
+
function R(r) {
|
|
4
|
+
return u(
|
|
5
|
+
(n) => ({
|
|
6
|
+
onKeyDown(e) {
|
|
7
|
+
var o, i, w, f, y, A;
|
|
8
|
+
const t = e.key;
|
|
9
|
+
t === E.key && ((o = n.onPressEnter) == null || o.call(n, e)), t === g.key && ((i = n.onArrowDown) == null || i.call(n, e)), t === m.key && ((w = n.onArrowLeft) == null || w.call(n, e)), t === D.key && ((f = n.onArrowRight) == null || f.call(n, e)), t === L.key && ((y = n.onArrowUp) == null || y.call(n, e)), (A = r == null ? void 0 : r.onKeyDown) == null || A.call(r, e);
|
|
10
|
+
}
|
|
11
|
+
}),
|
|
12
|
+
[]
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
R as u
|
|
17
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Component as n } from "react";
|
|
2
2
|
import a, { findDOMNode as f } from "react-dom";
|
|
3
|
-
import { g as u } from "./
|
|
3
|
+
import { g as u } from "./ClM74To2.js";
|
|
4
4
|
import s from "../utils/warning.js";
|
|
5
|
-
import "
|
|
6
|
-
import i from "lodash/isFunction.js";
|
|
5
|
+
import { isFunction as i } from "@unicom-cloud/utils/is";
|
|
7
6
|
const p = a;
|
|
8
7
|
let c;
|
|
9
8
|
try {
|
|
@@ -35,13 +34,13 @@ const N = (o, t) => {
|
|
|
35
34
|
"Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
|
|
36
35
|
{ element: o, instance: t }
|
|
37
36
|
), f) ? f(t) : null;
|
|
38
|
-
},
|
|
37
|
+
}, m = (o, t) => {
|
|
39
38
|
o && o.ref && (i(o.ref) && (o == null || o.ref(t)), "current" in o.ref && (o.ref.current = t));
|
|
40
|
-
},
|
|
39
|
+
}, y = (o) => {
|
|
41
40
|
c = o;
|
|
42
41
|
};
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
m as c,
|
|
45
44
|
N as f,
|
|
46
|
-
|
|
45
|
+
y as s
|
|
47
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as I, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import O from "react";
|
|
3
|
-
import
|
|
3
|
+
import T from "@unicom-cloud/utils/class-name";
|
|
4
4
|
import { newArray as L } from "../utils/constant.js";
|
|
5
5
|
import { a as B, m as E, d as _ } from "./tamGhTJp.js";
|
|
6
6
|
import { padStart as q } from "../utils/pad.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { p as i } from "./Coz3rCng.js";
|
|
2
|
+
import "./ClM74To2.js";
|
|
3
|
+
import { isFunction as a } from "@unicom-cloud/utils/is";
|
|
4
|
+
function f(t, r) {
|
|
5
|
+
if (t) {
|
|
6
|
+
i(t, {
|
|
7
|
+
block: "start",
|
|
8
|
+
behavior: "auto",
|
|
9
|
+
scrollMode: "if-needed",
|
|
10
|
+
...r
|
|
11
|
+
});
|
|
12
|
+
const o = t.offsetHeight, { height: e } = t.getBoundingClientRect();
|
|
13
|
+
if (r && r.boundary && o !== e) {
|
|
14
|
+
const c = a(r.boundary) ? r.boundary(t) : r.boundary;
|
|
15
|
+
c.scrollTop = Math.round(
|
|
16
|
+
c.scrollTop * (o / e)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
f as s
|
|
23
|
+
};
|