@unicom-cloud/ui 0.8.77 → 0.8.79
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 +13 -13
- 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/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
- package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
- package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
- 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/{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/{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 +547 -580
- 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 +32 -32
- package/steps/Step.js +8 -8
- package/steps/index.js +17 -17
- package/style.css +1 -1
- 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 +1 -1
- 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 +24 -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 +261 -298
- 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
package/switch/index.js
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as n, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import q from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import { h as A } from "../chunk/BJ9_azwQ.js";
|
|
4
4
|
import B from "lodash/isArray";
|
|
5
5
|
import { forwardRef as L, useContext as M, useState as O } from "react";
|
|
6
|
-
import { a as Q } from "../chunk/
|
|
6
|
+
import { a as Q } from "../chunk/CQvM33Vg.js";
|
|
7
7
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
8
|
-
import { P as x } from "../chunk/
|
|
9
|
-
import
|
|
10
|
-
import "../chunk/
|
|
8
|
+
import { P as x } from "../chunk/NPajzdOv.js";
|
|
9
|
+
import W from "@unicom-cloud/utils/class-name";
|
|
10
|
+
import "../chunk/ClM74To2.js";
|
|
11
11
|
import { o as D } from "../chunk/BKKEev13.js";
|
|
12
|
-
import "
|
|
13
|
-
import G from "lodash/isPlainObject.js";
|
|
12
|
+
import { isPlainObject as G } from "@unicom-cloud/utils/is";
|
|
14
13
|
const J = {
|
|
15
14
|
type: "circle"
|
|
16
15
|
};
|
|
17
|
-
function K(
|
|
16
|
+
function K(N, $) {
|
|
18
17
|
const {
|
|
19
|
-
getPrefixCls:
|
|
20
|
-
size:
|
|
21
|
-
componentConfig:
|
|
18
|
+
getPrefixCls: S,
|
|
19
|
+
size: y,
|
|
20
|
+
componentConfig: d,
|
|
22
21
|
rtl: w
|
|
23
22
|
} = M(Q), i = U(
|
|
24
|
-
|
|
23
|
+
N,
|
|
25
24
|
J,
|
|
26
|
-
|
|
25
|
+
d == null ? void 0 : d.Switch
|
|
27
26
|
), {
|
|
28
27
|
className: P,
|
|
29
28
|
children: t,
|
|
30
29
|
style: g = {},
|
|
31
30
|
disabled: b,
|
|
32
31
|
size: I,
|
|
33
|
-
loading:
|
|
32
|
+
loading: l,
|
|
34
33
|
onChange: m,
|
|
35
34
|
type: h,
|
|
36
35
|
checkedText: v,
|
|
@@ -38,37 +37,37 @@ function K(S, $) {
|
|
|
38
37
|
checkedIcon: p,
|
|
39
38
|
uncheckedIcon: k,
|
|
40
39
|
...T
|
|
41
|
-
} = i, e =
|
|
40
|
+
} = i, e = S("switch"), f = I || y, [j, _] = O(
|
|
42
41
|
i.value ?? // 潘启宝添加,接收 FormItem 里传来的数据
|
|
43
42
|
i.defaultChecked
|
|
44
43
|
), c = "checked" in i ? i.checked : j, E = (r) => {
|
|
45
44
|
var u;
|
|
46
|
-
|
|
45
|
+
l || ((u = i.onClick) == null || u.call(i, r), "checked" in i || _(!c), m == null || m(!c, r));
|
|
47
46
|
}, F = W(
|
|
48
47
|
e,
|
|
49
48
|
f === "small" ? `${e}-${f}` : void 0,
|
|
50
49
|
{
|
|
51
50
|
[`${e}-type-${h}`]: h,
|
|
52
51
|
[`${e}-checked`]: c,
|
|
53
|
-
[`${e}-loading`]:
|
|
52
|
+
[`${e}-loading`]: l,
|
|
54
53
|
[`${e}-rtl`]: w
|
|
55
54
|
},
|
|
56
55
|
P
|
|
57
56
|
);
|
|
58
|
-
let
|
|
59
|
-
t && B(t) ? (
|
|
57
|
+
let s = v, o = z;
|
|
58
|
+
t && B(t) ? (s = t.find(
|
|
60
59
|
(r) => r.key === "open"
|
|
61
|
-
),
|
|
60
|
+
), o = t.find(
|
|
62
61
|
(r) => r.key === "close"
|
|
63
|
-
)) : t && G(t) && (t.key === "open" ?
|
|
62
|
+
)) : t && G(t) && (t.key === "open" ? s = t : t.key === "close" && (o = t));
|
|
64
63
|
const H = D(T, ["onChange", "checked", "error"]);
|
|
65
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ a(
|
|
66
65
|
"button",
|
|
67
66
|
{
|
|
68
67
|
ref: $,
|
|
69
68
|
role: "switch",
|
|
70
69
|
"aria-checked": !!c,
|
|
71
|
-
tabIndex:
|
|
70
|
+
tabIndex: l ? -1 : void 0,
|
|
72
71
|
...H,
|
|
73
72
|
style: g,
|
|
74
73
|
className: F,
|
|
@@ -76,8 +75,8 @@ function K(S, $) {
|
|
|
76
75
|
onClick: E,
|
|
77
76
|
type: "button",
|
|
78
77
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
!
|
|
78
|
+
/* @__PURE__ */ a("div", { className: `${e}-dot`, children: [
|
|
79
|
+
!l && (p || k) && /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(
|
|
81
80
|
x,
|
|
82
81
|
{
|
|
83
82
|
classNames: "fadeIn",
|
|
@@ -86,12 +85,12 @@ function K(S, $) {
|
|
|
86
85
|
},
|
|
87
86
|
c ? "checked" : "unchecked"
|
|
88
87
|
) }),
|
|
89
|
-
|
|
88
|
+
l && /* @__PURE__ */ n("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ n(q, {}) })
|
|
90
89
|
] }),
|
|
91
|
-
f !== "small" && h !== "line" && (
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
f !== "small" && h !== "line" && (s || o) && /* @__PURE__ */ a(R, { children: [
|
|
91
|
+
/* @__PURE__ */ a("div", { className: `${e}-text-holder`, children: [
|
|
92
|
+
s && c && s,
|
|
93
|
+
o && !c && o
|
|
95
94
|
] }),
|
|
96
95
|
/* @__PURE__ */ n(
|
|
97
96
|
x,
|
|
@@ -99,9 +98,9 @@ function K(S, $) {
|
|
|
99
98
|
in: c,
|
|
100
99
|
classNames: "switchSlideText",
|
|
101
100
|
timeout: 200,
|
|
102
|
-
children: /* @__PURE__ */
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
children: /* @__PURE__ */ a("div", { className: `${e}-text`, children: [
|
|
102
|
+
s && c && s,
|
|
103
|
+
o && !c && o
|
|
105
104
|
] })
|
|
106
105
|
}
|
|
107
106
|
)
|
package/table/Table.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../chunk/
|
|
2
|
+
import "../chunk/BNevupAU.js";
|
|
3
3
|
import "lodash/debounce";
|
|
4
4
|
import "lodash/isArray";
|
|
5
5
|
import "lodash/isNumber";
|
|
6
6
|
import "lodash/isPlainObject";
|
|
7
7
|
import "lodash/throttle";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/CQvM33Vg.js";
|
|
10
10
|
import "../chunk/B2yFlXke.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
|
-
import {
|
|
13
|
+
import { _ as n } from "../chunk/B4mZh-RK.js";
|
|
14
14
|
import "../spin/index.js";
|
|
15
|
-
import "
|
|
15
|
+
import "@unicom-cloud/utils/class-name";
|
|
16
16
|
import "../utils/dom.js";
|
|
17
17
|
import "../chunk/ClqoGc3r.js";
|
|
18
18
|
import "../chunk/CIRG541s.js";
|
|
19
19
|
import "./ColGroup.js";
|
|
20
20
|
import "./util.js";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
n as default
|
|
23
23
|
};
|
package/table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/
|
|
1
|
+
import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/B4mZh-RK.js";
|
|
2
2
|
import { defaultComponent as C } from "./constant.js";
|
|
3
3
|
export {
|
|
4
4
|
s as TableSummary,
|
package/tabs/Tab.js
CHANGED
|
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CQvM33Vg.js";
|
|
6
6
|
import "../chunk/B4YRLi8r.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
|
-
import "../chunk/
|
|
9
|
-
import "
|
|
8
|
+
import "../chunk/CXPOj2uy.js";
|
|
9
|
+
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
|
-
import { a as d, T as l } from "../chunk/
|
|
11
|
+
import { a as d, T as l } from "../chunk/BG7YGUsx.js";
|
|
12
12
|
import { default as u, default as x } from "./TabPane.js";
|
|
13
13
|
export {
|
|
14
14
|
u as TabPane,
|
package/tabs/TabContent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
4
|
-
import "
|
|
5
|
-
import { b as a } from "../chunk/
|
|
3
|
+
import "../chunk/CQvM33Vg.js";
|
|
4
|
+
import "@unicom-cloud/utils/class-name";
|
|
5
|
+
import { b as a } from "../chunk/BG7YGUsx.js";
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
package/tabs/TabPane.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import d, { useRef as p, useContext as b } from "react";
|
|
3
|
-
import { a as x } from "../chunk/
|
|
4
|
-
import
|
|
5
|
-
import { o as
|
|
6
|
-
function
|
|
7
|
-
const e = p(!1), { getPrefixCls:
|
|
8
|
-
return e.current = c ? e.current ||
|
|
3
|
+
import { a as x } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import C from "@unicom-cloud/utils/class-name";
|
|
5
|
+
import { o as N } from "../chunk/BKKEev13.js";
|
|
6
|
+
function P(a, s) {
|
|
7
|
+
const e = p(!1), { getPrefixCls: r } = b(x), { children: o, className: n, style: i, lazyload: c, isActive: l, ...m } = a, f = r("tabs");
|
|
8
|
+
return e.current = c ? e.current || l : !0, e.current && /* @__PURE__ */ u(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
ref:
|
|
12
|
-
...
|
|
13
|
-
className: C(`${
|
|
11
|
+
ref: s,
|
|
12
|
+
...N(m, ["destroyOnHide", "title", "closable"]),
|
|
13
|
+
className: C(`${f}-pane`, n),
|
|
14
14
|
style: i,
|
|
15
|
-
children:
|
|
15
|
+
children: o
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
const t = d.forwardRef(
|
|
19
|
+
const t = d.forwardRef(P);
|
|
20
20
|
t.displayName = "TabPane";
|
|
21
21
|
t.isTabPane = !0;
|
|
22
22
|
export {
|
package/tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as e } from "../chunk/
|
|
2
|
-
import { a as s } from "../chunk/
|
|
1
|
+
import { T as e } from "../chunk/BG7YGUsx.js";
|
|
2
|
+
import { a as s } from "../chunk/BG7YGUsx.js";
|
|
3
3
|
import { default as f, default as T } from "./TabPane.js";
|
|
4
4
|
export {
|
|
5
5
|
f as TabPane,
|
package/tabs/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Enter as n } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
2
2
|
const i = (e, t) => {
|
|
3
3
|
const c = e.getBoundingClientRect(), o = t.getBoundingClientRect(), l = t.offsetWidth / o.width, s = t.offsetHeight / o.height;
|
|
4
4
|
return {
|
package/tag/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import Q from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import b from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as X, useContext as Y, useState as v } from "react";
|
|
6
|
-
import { a as Z, I as S } from "../chunk/
|
|
7
|
-
import { u as ee } from "../chunk/
|
|
6
|
+
import { a as Z, I as S } from "../chunk/CQvM33Vg.js";
|
|
7
|
+
import { u as ee } from "../chunk/BYdIoY50.js";
|
|
8
8
|
import { u as oe } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import ne from "../popconfirm/index.js";
|
|
10
|
-
import
|
|
10
|
+
import ie from "@unicom-cloud/utils/class-name";
|
|
11
11
|
import { o as re } from "../chunk/BKKEev13.js";
|
|
12
|
-
const
|
|
12
|
+
const se = [
|
|
13
13
|
"red",
|
|
14
14
|
"orangered",
|
|
15
15
|
"orange",
|
|
@@ -22,26 +22,26 @@ const te = [
|
|
|
22
22
|
"purple",
|
|
23
23
|
"magenta",
|
|
24
24
|
"gray"
|
|
25
|
-
],
|
|
25
|
+
], te = {
|
|
26
26
|
size: "default"
|
|
27
27
|
};
|
|
28
28
|
function ce(_, j) {
|
|
29
29
|
var E;
|
|
30
30
|
const { getPrefixCls: z, componentConfig: m, rtl: H } = Y(Z), L = ee(), r = oe(
|
|
31
31
|
_,
|
|
32
|
-
|
|
32
|
+
te,
|
|
33
33
|
m == null ? void 0 : m.Tag
|
|
34
34
|
), {
|
|
35
35
|
className: w,
|
|
36
36
|
style: K,
|
|
37
37
|
children: x,
|
|
38
|
-
color:
|
|
38
|
+
color: s,
|
|
39
39
|
closable: e,
|
|
40
40
|
checkable: l,
|
|
41
41
|
defaultChecked: R,
|
|
42
42
|
size: N,
|
|
43
|
-
onClose:
|
|
44
|
-
onCheck:
|
|
43
|
+
onClose: f,
|
|
44
|
+
onCheck: p,
|
|
45
45
|
icon: P,
|
|
46
46
|
closeIcon: h,
|
|
47
47
|
bordered: U,
|
|
@@ -53,7 +53,7 @@ function ce(_, j) {
|
|
|
53
53
|
"checked" in r ? r.checked : R
|
|
54
54
|
), [u, g] = v(), O = "checked" in r ? r.checked : M, B = "visible" in r ? r.visible : F;
|
|
55
55
|
function k(n) {
|
|
56
|
-
const i =
|
|
56
|
+
const i = f == null ? void 0 : f(n);
|
|
57
57
|
i && i.then ? (g(!0), i.then(() => {
|
|
58
58
|
g(!1), I(!1);
|
|
59
59
|
}).catch(() => {
|
|
@@ -62,9 +62,9 @@ function ce(_, j) {
|
|
|
62
62
|
}
|
|
63
63
|
function D() {
|
|
64
64
|
const n = !O;
|
|
65
|
-
"checked" in r || A(n),
|
|
65
|
+
"checked" in r || A(n), p == null || p(n);
|
|
66
66
|
}
|
|
67
|
-
const d =
|
|
67
|
+
const d = s && se.indexOf(s) !== -1 ? s : "", C = l ? O : !0, G = ie(
|
|
68
68
|
o,
|
|
69
69
|
{
|
|
70
70
|
[`${o}-loading`]: u,
|
|
@@ -74,14 +74,14 @@ function ce(_, j) {
|
|
|
74
74
|
[`${o}-checked`]: C,
|
|
75
75
|
[`${o}-size-${N}`]: N,
|
|
76
76
|
[`${o}-bordered`]: U,
|
|
77
|
-
[`${o}-custom-color`]: C &&
|
|
77
|
+
[`${o}-custom-color`]: C && s && !d,
|
|
78
78
|
[`${o}-rtl`]: H
|
|
79
79
|
},
|
|
80
80
|
w
|
|
81
|
-
),
|
|
81
|
+
), t = {
|
|
82
82
|
...K
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
s && !d && C && (t.backgroundColor || (t.backgroundColor = s), t.borderColor || (t.borderColor = s));
|
|
85
85
|
const y = re(q, ["visible"]);
|
|
86
86
|
l && (y.onClick = D);
|
|
87
87
|
let $ = /* @__PURE__ */ c(
|
|
@@ -122,7 +122,7 @@ function ce(_, j) {
|
|
|
122
122
|
},
|
|
123
123
|
children: $
|
|
124
124
|
}
|
|
125
|
-
)), /* @__PURE__ */ T("div", { ref: j, style:
|
|
125
|
+
)), /* @__PURE__ */ T("div", { ref: j, style: t, className: G, ...y, children: [
|
|
126
126
|
P && /* @__PURE__ */ c("span", { className: `${o}-icon`, children: P }),
|
|
127
127
|
/* @__PURE__ */ c("span", { className: `${o}-content`, children: x }),
|
|
128
128
|
!!e && !u && h !== null && $,
|
package/time-picker/Picker.js
CHANGED
|
@@ -3,17 +3,17 @@ import De from "@unicom-cloud/icons/IconUiClockCircle";
|
|
|
3
3
|
import { isDayjs as Se } from "dayjs";
|
|
4
4
|
import l from "lodash/isArray";
|
|
5
5
|
import Te, { useContext as je, useState as I, useRef as we } from "react";
|
|
6
|
-
import { a as Ae } from "../chunk/
|
|
6
|
+
import { a as Ae } from "../chunk/CQvM33Vg.js";
|
|
7
7
|
import { u as Ee } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as Y } from "../chunk/VSe_Wq1g.js";
|
|
9
9
|
import { u as He } from "../chunk/a3hR6zLw.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { g as S, j as
|
|
15
|
-
import { a as
|
|
16
|
-
import
|
|
10
|
+
import Ne from "../picker/Input.js";
|
|
11
|
+
import ze from "../picker/InputRange.js";
|
|
12
|
+
import Oe from "../trigger/index.js";
|
|
13
|
+
import Fe from "@unicom-cloud/utils/class-name";
|
|
14
|
+
import { g as S, j as f, k as Z, h as z, b as Re, i as Ue, f as $e } from "../chunk/tamGhTJp.js";
|
|
15
|
+
import { a as Le } from "../chunk/ClqoGc3r.js";
|
|
16
|
+
import Me from "./context.js";
|
|
17
17
|
import { getFormatTime as qe } from "./util.js";
|
|
18
18
|
function Be(T) {
|
|
19
19
|
return T.format || "HH:mm:ss";
|
|
@@ -35,12 +35,12 @@ const _ = {
|
|
|
35
35
|
j == null ? void 0 : j.TimePicker
|
|
36
36
|
), {
|
|
37
37
|
allowClear: te = !0,
|
|
38
|
-
className:
|
|
38
|
+
className: O,
|
|
39
39
|
disableConfirm: ie,
|
|
40
|
-
style:
|
|
40
|
+
style: F,
|
|
41
41
|
placeholder: w,
|
|
42
42
|
getPopupContainer: re,
|
|
43
|
-
disabled:
|
|
43
|
+
disabled: R,
|
|
44
44
|
position: ne,
|
|
45
45
|
isRangePicker: m,
|
|
46
46
|
picker: se,
|
|
@@ -48,10 +48,10 @@ const _ = {
|
|
|
48
48
|
status: ue,
|
|
49
49
|
triggerElement: U,
|
|
50
50
|
triggerProps: le,
|
|
51
|
-
value:
|
|
51
|
+
value: ce,
|
|
52
52
|
onChange: u,
|
|
53
|
-
icons:
|
|
54
|
-
size:
|
|
53
|
+
icons: $,
|
|
54
|
+
size: fe,
|
|
55
55
|
editable: pe,
|
|
56
56
|
unmountOnExit: me,
|
|
57
57
|
order: de,
|
|
@@ -62,10 +62,10 @@ const _ = {
|
|
|
62
62
|
let e;
|
|
63
63
|
return t.value ? e = S(t.value, s, r, n) : t.defaultValue && (e = S(t.defaultValue, s, r, n)), e;
|
|
64
64
|
}
|
|
65
|
-
const [
|
|
65
|
+
const [L, M] = I(!1), [d, q] = I(Ve()), [i, h] = I(), [v, g] = I(), [x, Pe] = I(0), c = "value" in t ? S(ce, s, r, n) : d, A = "popupVisible" in t ? t.popupVisible : L, y = Y(r), b = Y(n);
|
|
66
66
|
He(() => {
|
|
67
67
|
if (d && (y !== r || n !== b)) {
|
|
68
|
-
const e = l(d) ? d.map((a) =>
|
|
68
|
+
const e = l(d) ? d.map((a) => f(a, y, b)) : f(d, y, b), o = l(e) ? e.map((a) => Z(a, r, n)) : Z(e, r, n);
|
|
69
69
|
q(o);
|
|
70
70
|
}
|
|
71
71
|
}, [r, y, n, b]);
|
|
@@ -74,7 +74,7 @@ const _ = {
|
|
|
74
74
|
var o, a;
|
|
75
75
|
(a = (o = E.current) == null ? void 0 : o.focus) == null || a.call(o, e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function N(e) {
|
|
78
78
|
Pe(e), setTimeout(() => H(e));
|
|
79
79
|
}
|
|
80
80
|
function he(e) {
|
|
@@ -83,28 +83,28 @@ const _ = {
|
|
|
83
83
|
}) : C(!1);
|
|
84
84
|
}
|
|
85
85
|
function C(e, o) {
|
|
86
|
-
|
|
86
|
+
M(e), g(void 0), o == null || o(), e || h(void 0);
|
|
87
87
|
}
|
|
88
88
|
function k(e) {
|
|
89
|
-
const o = m && de && l(e) ?
|
|
89
|
+
const o = m && de && l(e) ? Re(e.map((a) => qe(a))) : e;
|
|
90
90
|
q(o), h(void 0), g(void 0), ve(o), ie || C(!1);
|
|
91
91
|
}
|
|
92
92
|
function ve(e) {
|
|
93
|
-
l(e) && Ue(
|
|
94
|
-
e.map((o) =>
|
|
95
|
-
e.map((o) =>
|
|
96
|
-
)), Se(e) &&
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
l(e) && Ue(c, e) && (u == null || u(
|
|
94
|
+
e.map((o) => f(o, r, n).format(s)),
|
|
95
|
+
e.map((o) => f(o, r, n))
|
|
96
|
+
)), Se(e) && $e(c, e) && (u == null || u(
|
|
97
|
+
f(e, r, n).format(s),
|
|
98
|
+
f(e, r, n)
|
|
99
99
|
));
|
|
100
100
|
}
|
|
101
101
|
function B(e) {
|
|
102
|
-
const o = m ? l(i) && i.length ? i :
|
|
102
|
+
const o = m ? l(i) && i.length ? i : c : i || c;
|
|
103
103
|
return /* @__PURE__ */ P(
|
|
104
104
|
"div",
|
|
105
105
|
{
|
|
106
|
-
className:
|
|
107
|
-
style: e ?
|
|
106
|
+
className: Fe(`${ge}-container`, e ? O : ""),
|
|
107
|
+
style: e ? F : {},
|
|
108
108
|
onClick: () => H(),
|
|
109
109
|
children: Te.cloneElement(se, {
|
|
110
110
|
...t,
|
|
@@ -114,17 +114,17 @@ const _ = {
|
|
|
114
114
|
onConfirmValue: k,
|
|
115
115
|
setValueShow: h,
|
|
116
116
|
valueShow: o,
|
|
117
|
-
value:
|
|
117
|
+
value: c,
|
|
118
118
|
popupVisible: A,
|
|
119
119
|
focusedInputIndex: x,
|
|
120
|
-
changeFocusedInputIndex:
|
|
120
|
+
changeFocusedInputIndex: N
|
|
121
121
|
})
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
function G(e) {
|
|
126
126
|
const o = e.target.value;
|
|
127
|
-
|
|
127
|
+
L || M(!0), g(o), Ce(o);
|
|
128
128
|
}
|
|
129
129
|
function Ce(e) {
|
|
130
130
|
var a, W;
|
|
@@ -133,10 +133,10 @@ const _ = {
|
|
|
133
133
|
const V = [
|
|
134
134
|
...l(i) ? i : d || []
|
|
135
135
|
];
|
|
136
|
-
if (
|
|
136
|
+
if (z(e, s)) {
|
|
137
137
|
V[x] = o;
|
|
138
138
|
const X = V.map(
|
|
139
|
-
(D) =>
|
|
139
|
+
(D) => f(D, r, n)
|
|
140
140
|
);
|
|
141
141
|
(a = t.onSelect) == null || a.call(
|
|
142
142
|
t,
|
|
@@ -144,43 +144,43 @@ const _ = {
|
|
|
144
144
|
X
|
|
145
145
|
), h(V), g(void 0);
|
|
146
146
|
}
|
|
147
|
-
} else if (
|
|
148
|
-
const V =
|
|
147
|
+
} else if (z(e, s)) {
|
|
148
|
+
const V = f(o, r, n);
|
|
149
149
|
(W = t.onSelect) == null || W.call(t, V.format(s), V), h(o), g(void 0);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
function Ie() {
|
|
153
|
-
m ? l(i) && i.length ? v && !
|
|
153
|
+
m ? l(i) && i.length ? v && !z(v, s) ? C(!1) : i[0] === void 0 || i[1] === void 0 ? N(x === 0 ? 1 : 0) : i.length === 2 && k(i) : C(!1) : k(i || c);
|
|
154
154
|
}
|
|
155
155
|
function xe(e) {
|
|
156
156
|
var o;
|
|
157
157
|
e.stopPropagation(), k(void 0), u == null || u(void 0, void 0), (o = t.onClear) == null || o.call(t);
|
|
158
158
|
}
|
|
159
|
-
const ye = m && l(w) ? w : (K = p == null ? void 0 : p.TimePicker) == null ? void 0 : K.placeholders, be = w || ((Q = p == null ? void 0 : p.TimePicker) == null ? void 0 : Q.placeholder), ke =
|
|
160
|
-
style:
|
|
161
|
-
className:
|
|
159
|
+
const ye = m && l(w) ? w : (K = p == null ? void 0 : p.TimePicker) == null ? void 0 : K.placeholders, be = w || ((Q = p == null ? void 0 : p.TimePicker) == null ? void 0 : Q.placeholder), ke = $ && $.inputSuffix || /* @__PURE__ */ P(De, {}), J = {
|
|
160
|
+
style: F,
|
|
161
|
+
className: O,
|
|
162
162
|
popupVisible: A,
|
|
163
163
|
format: s,
|
|
164
|
-
disabled:
|
|
164
|
+
disabled: R,
|
|
165
165
|
error: ae,
|
|
166
166
|
status: ue,
|
|
167
|
-
size:
|
|
167
|
+
size: fe,
|
|
168
168
|
onPressEnter: Ie,
|
|
169
169
|
onClear: xe,
|
|
170
170
|
suffixIcon: ke,
|
|
171
171
|
editable: pe,
|
|
172
172
|
allowClear: te,
|
|
173
173
|
prefix: t.prefix,
|
|
174
|
-
...
|
|
174
|
+
...Le(t)
|
|
175
175
|
};
|
|
176
|
-
return /* @__PURE__ */ P(
|
|
177
|
-
|
|
176
|
+
return /* @__PURE__ */ P(Me.Provider, { value: { utcOffset: r, timezone: n }, children: U === null ? B(!0) : /* @__PURE__ */ P(
|
|
177
|
+
Oe,
|
|
178
178
|
{
|
|
179
179
|
popup: () => B(),
|
|
180
180
|
trigger: "click",
|
|
181
181
|
clickToClose: !1,
|
|
182
182
|
position: ne,
|
|
183
|
-
disabled:
|
|
183
|
+
disabled: R,
|
|
184
184
|
popupAlign: Ge,
|
|
185
185
|
getPopupContainer: re,
|
|
186
186
|
onVisibleChange: he,
|
|
@@ -189,24 +189,24 @@ const _ = {
|
|
|
189
189
|
unmountOnExit: !!me,
|
|
190
190
|
...le,
|
|
191
191
|
children: U || (m ? /* @__PURE__ */ P(
|
|
192
|
-
|
|
192
|
+
ze,
|
|
193
193
|
{
|
|
194
194
|
...J,
|
|
195
195
|
ref: E,
|
|
196
196
|
placeholder: ye,
|
|
197
|
-
value: l(i) && i.length ? i :
|
|
197
|
+
value: l(i) && i.length ? i : c,
|
|
198
198
|
onChange: G,
|
|
199
199
|
inputValue: v,
|
|
200
|
-
changeFocusedInputIndex:
|
|
200
|
+
changeFocusedInputIndex: N,
|
|
201
201
|
focusedInputIndex: x
|
|
202
202
|
}
|
|
203
203
|
) : /* @__PURE__ */ P(
|
|
204
|
-
|
|
204
|
+
Ne,
|
|
205
205
|
{
|
|
206
206
|
...J,
|
|
207
207
|
ref: E,
|
|
208
208
|
placeholder: be,
|
|
209
|
-
value: i ||
|
|
209
|
+
value: i || c,
|
|
210
210
|
inputValue: v,
|
|
211
211
|
onChange: G
|
|
212
212
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import C from "lodash/debounce";
|
|
3
3
|
import { useRef as n, useEffect as d, useCallback as H } from "react";
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
4
|
+
import { u as N } from "../chunk/VSe_Wq1g.js";
|
|
5
|
+
import T from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { scrollTo as b } from "./util.js";
|
|
7
7
|
function V(g) {
|
|
8
8
|
const {
|
|
@@ -10,10 +10,10 @@ function V(g) {
|
|
|
10
10
|
list: l,
|
|
11
11
|
value: s,
|
|
12
12
|
onHandleSelect: u,
|
|
13
|
-
unit:
|
|
13
|
+
unit: m,
|
|
14
14
|
popupVisible: o,
|
|
15
15
|
scrollSticky: $
|
|
16
|
-
} = g, a = n(/* @__PURE__ */ new Map()), r = n(null),
|
|
16
|
+
} = g, a = n(/* @__PURE__ */ new Map()), r = n(null), h = n(), v = n(0), f = N(o), p = n(
|
|
17
17
|
r.current && r.current.scrollTop
|
|
18
18
|
);
|
|
19
19
|
d(() => {
|
|
@@ -25,14 +25,14 @@ function V(g) {
|
|
|
25
25
|
e && (b(r.current, e.offsetTop, 0), p.current = e.offsetTop);
|
|
26
26
|
}
|
|
27
27
|
}, [o, f]), d(() => {
|
|
28
|
-
l.length <= 1 || (v.current = (
|
|
28
|
+
l.length <= 1 || (v.current = (h.current.clientHeight - r.current.clientHeight) / (l.length - 1));
|
|
29
29
|
}, [l.length]);
|
|
30
30
|
const x = H(
|
|
31
31
|
C(() => {
|
|
32
32
|
const t = (r.current.scrollTop - p.current > 0 ? Math.ceil : Math.floor)(
|
|
33
33
|
r.current.scrollTop / v.current
|
|
34
34
|
);
|
|
35
|
-
t !== s && l[t] && !l[t].disabled && u(l[t].value,
|
|
35
|
+
t !== s && l[t] && !l[t].disabled && u(l[t].value, m);
|
|
36
36
|
}, 100),
|
|
37
37
|
[u]
|
|
38
38
|
);
|
|
@@ -42,14 +42,14 @@ function V(g) {
|
|
|
42
42
|
className: T(`${c}-list`),
|
|
43
43
|
ref: r,
|
|
44
44
|
onWheel: $ ? x : void 0,
|
|
45
|
-
children: /* @__PURE__ */ i("ul", { ref:
|
|
45
|
+
children: /* @__PURE__ */ i("ul", { ref: h, children: l.map((e) => /* @__PURE__ */ i(
|
|
46
46
|
"li",
|
|
47
47
|
{
|
|
48
48
|
className: T(`${c}-cell`, {
|
|
49
49
|
[`${c}-cell-disabled`]: e.disabled,
|
|
50
50
|
[`${c}-cell-selected`]: e.selected
|
|
51
51
|
}),
|
|
52
|
-
onClick: () => !e.disabled && u(e.value,
|
|
52
|
+
onClick: () => !e.disabled && u(e.value, m),
|
|
53
53
|
ref: (t) => {
|
|
54
54
|
a.current.set(e.value, t);
|
|
55
55
|
},
|