@unicom-cloud/ui 0.8.81 → 0.8.82
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 +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +2 -2
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +5 -4
- package/Copy.js +1 -1
- package/DatePicker.js +7 -7
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +5 -5
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +60 -57
- package/alert/index.js +53 -53
- package/anchor/Anchor.js +72 -72
- package/anchor/Link.js +27 -27
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +31 -31
- package/avatar/Group.js +25 -25
- package/back-top/index.js +30 -30
- package/badge/index.js +37 -37
- package/breadcrumb/index.js +26 -26
- package/button/Group.js +7 -7
- package/button/index.js +29 -29
- package/calendar/index.js +2 -2
- package/card/Grid.js +12 -12
- package/card/Meta.js +17 -17
- package/card/index.js +44 -44
- package/carousel/Arrow.js +19 -19
- package/carousel/Indicator.js +25 -25
- package/carousel/index.js +77 -77
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
- package/chunk/CmMehQON.js +1464 -0
- package/chunk/Cplu5dtQ.js +730 -0
- package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
- package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
- package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
- package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
- package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
- package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +36 -36
- package/color-picker/InputAlpha.js +11 -11
- package/color-picker/InputHex.js +24 -24
- package/color-picker/InputRgb.js +23 -23
- package/color-picker/Palette.js +18 -18
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +31 -31
- package/config-provider/ConfigProvider.js +5 -4
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +4 -3
- package/copy/index.js +28 -28
- package/date-picker/Picker.js +276 -276
- package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
- package/date-picker/index.js +26 -27
- package/descriptions/index.js +33 -33
- package/divider/index.js +12 -12
- package/draggable/index.js +23 -23
- package/drawer/Drawer.js +81 -81
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +56 -56
- package/empty/index.js +1 -1
- package/form/Form.js +76 -76
- package/form/FormItem.js +64 -64
- package/grid/Col.js +53 -53
- package/grid/Row.js +34 -34
- package/grid/grid-item.js +29 -29
- package/grid/grid.js +50 -50
- package/icon/index.js +20 -19
- package/icon-hover/index.js +1 -1
- package/image/Image.js +86 -86
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +22 -22
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +410 -408
- package/input/Group.js +8 -8
- package/input/Input.js +322 -322
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +40 -40
- package/layout/Content.js +7 -7
- package/layout/Footer.js +9 -9
- package/layout/Header.js +7 -7
- package/layout/Sider.js +55 -55
- package/layout/index.js +32 -32
- package/link/index.js +35 -35
- package/list/Item.js +29 -29
- package/list/Meta.js +12 -12
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +5 -5
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +12 -12
- package/overflow-ellipsis/index.js +24 -24
- package/package.json +1 -1
- package/page-header/index.js +38 -38
- package/pagination/PageItem.js +16 -16
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +69 -69
- package/picker/InputRange.js +111 -111
- package/popconfirm/index.js +61 -61
- package/popover/index.js +35 -35
- package/progress/index.js +22 -22
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +49 -49
- package/resize-box/ResizeTrigger.js +34 -34
- package/resize-box/Split.js +56 -56
- package/resize-box/SplitGroup.js +55 -55
- package/resize-box/index.js +51 -51
- package/result/index.js +41 -41
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +125 -125
- package/skeleton/index.js +20 -20
- package/slider/Button.js +57 -57
- package/slider/index.js +116 -116
- package/space/index.js +46 -44
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +10 -10
- package/spin/index.js +44 -44
- package/statistic/Countdown.js +34 -34
- package/statistic/index.js +67 -67
- package/steps/index.js +55 -55
- package/style.css +1 -1
- package/switch/index.js +54 -54
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +12 -12
- package/tabs/index.js +2 -2
- package/tag/index.js +45 -45
- package/time-picker/Picker.js +76 -76
- package/time-picker/TimePicker.js +136 -136
- package/time-picker/index.js +8 -8
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +47 -47
- package/timeline/Timeline.js +41 -41
- package/tooltip/index.js +29 -29
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +60 -60
- package/types/config-provider/ConfigProvider.d.ts +2 -2
- package/types/config-provider/context.d.ts +1 -1
- package/types/date-picker/index.d.ts +8 -9
- package/types/date-picker/interface.d.ts +9 -9
- package/types/index.d.ts +1 -1
- package/types/picker/Input.d.ts +2 -2
- package/types/space/index.d.ts +2 -1
- package/types/utils/names.d.ts +1 -1
- package/typography/Base.js +53 -53
- package/typography/Ellipsis.js +9 -8
- package/typography/Operations.js +28 -28
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +47 -47
- package/upload/Upload.js +184 -184
- package/utils/contextHolder.js +3 -3
- package/utils/index.js +13 -13
- package/utils/names.js +1 -1
- package/utils/setPrimaryColor.js +18 -13
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +49 -49
- package/version/index.js +1 -1
- package/watermark/Watermark.js +24 -24
- package/chunk/CQvM33Vg.js +0 -724
- package/chunk/yhU2zeeu.js +0 -1461
- /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/switch/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as r, 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/Cplu5dtQ.js";
|
|
7
7
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
8
|
-
import { P as
|
|
8
|
+
import { P as N } from "../chunk/NPajzdOv.js";
|
|
9
9
|
import W from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "../chunk/ClM74To2.js";
|
|
11
11
|
import { o as D } from "../chunk/BKKEev13.js";
|
|
@@ -13,94 +13,94 @@ import { isPlainObject as G } from "@unicom-cloud/utils/is";
|
|
|
13
13
|
const J = {
|
|
14
14
|
type: "circle"
|
|
15
15
|
};
|
|
16
|
-
function K(
|
|
16
|
+
function K(C, S) {
|
|
17
17
|
const {
|
|
18
|
-
getPrefixCls:
|
|
18
|
+
getPrefixCls: l,
|
|
19
19
|
size: y,
|
|
20
|
-
componentConfig:
|
|
20
|
+
componentConfig: m,
|
|
21
21
|
rtl: w
|
|
22
22
|
} = M(Q), i = U(
|
|
23
|
-
|
|
23
|
+
C,
|
|
24
24
|
J,
|
|
25
|
-
|
|
25
|
+
m == null ? void 0 : m.Switch
|
|
26
26
|
), {
|
|
27
|
-
className:
|
|
27
|
+
className: b,
|
|
28
28
|
children: t,
|
|
29
|
-
style:
|
|
30
|
-
disabled:
|
|
31
|
-
size:
|
|
32
|
-
loading:
|
|
33
|
-
onChange:
|
|
34
|
-
type:
|
|
29
|
+
style: I = {},
|
|
30
|
+
disabled: P,
|
|
31
|
+
size: g,
|
|
32
|
+
loading: a,
|
|
33
|
+
onChange: h,
|
|
34
|
+
type: f,
|
|
35
35
|
checkedText: v,
|
|
36
36
|
uncheckedText: z,
|
|
37
|
-
checkedIcon:
|
|
38
|
-
uncheckedIcon:
|
|
37
|
+
checkedIcon: k,
|
|
38
|
+
uncheckedIcon: u,
|
|
39
39
|
...T
|
|
40
|
-
} = i, e =
|
|
40
|
+
} = i, e = l == null ? void 0 : l("switch"), p = g || y, [j, _] = O(
|
|
41
41
|
i.value ?? // 潘启宝添加,接收 FormItem 里传来的数据
|
|
42
42
|
i.defaultChecked
|
|
43
|
-
), c = "checked" in i ? i.checked : j, E = (
|
|
44
|
-
var
|
|
45
|
-
|
|
43
|
+
), c = "checked" in i ? i.checked : j, E = (n) => {
|
|
44
|
+
var x;
|
|
45
|
+
a || ((x = i.onClick) == null || x.call(i, n), "checked" in i || _(!c), h == null || h(!c, n));
|
|
46
46
|
}, F = W(
|
|
47
47
|
e,
|
|
48
|
-
|
|
48
|
+
p === "small" ? `${e}-${p}` : void 0,
|
|
49
49
|
{
|
|
50
|
-
[`${e}-type-${
|
|
50
|
+
[`${e}-type-${f}`]: f,
|
|
51
51
|
[`${e}-checked`]: c,
|
|
52
|
-
[`${e}-loading`]:
|
|
52
|
+
[`${e}-loading`]: a,
|
|
53
53
|
[`${e}-rtl`]: w
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
b
|
|
56
56
|
);
|
|
57
|
-
let
|
|
58
|
-
t && B(t) ? (
|
|
59
|
-
(
|
|
60
|
-
),
|
|
61
|
-
(
|
|
62
|
-
)) : t && G(t) && (t.key === "open" ?
|
|
57
|
+
let o = v, s = z;
|
|
58
|
+
t && B(t) ? (o = t.find(
|
|
59
|
+
(n) => n.key === "open"
|
|
60
|
+
), s = t.find(
|
|
61
|
+
(n) => n.key === "close"
|
|
62
|
+
)) : t && G(t) && (t.key === "open" ? o = t : t.key === "close" && (s = t));
|
|
63
63
|
const H = D(T, ["onChange", "checked", "error"]);
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ d(
|
|
65
65
|
"button",
|
|
66
66
|
{
|
|
67
|
-
ref:
|
|
67
|
+
ref: S,
|
|
68
68
|
role: "switch",
|
|
69
69
|
"aria-checked": !!c,
|
|
70
|
-
tabIndex:
|
|
70
|
+
tabIndex: a ? -1 : void 0,
|
|
71
71
|
...H,
|
|
72
|
-
style:
|
|
72
|
+
style: I,
|
|
73
73
|
className: F,
|
|
74
|
-
disabled:
|
|
74
|
+
disabled: P,
|
|
75
75
|
onClick: E,
|
|
76
76
|
type: "button",
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
!
|
|
80
|
-
|
|
78
|
+
/* @__PURE__ */ d("div", { className: `${e}-dot`, children: [
|
|
79
|
+
!a && (k || u) && /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(
|
|
80
|
+
N,
|
|
81
81
|
{
|
|
82
82
|
classNames: "fadeIn",
|
|
83
83
|
timeout: 200,
|
|
84
|
-
children: /* @__PURE__ */
|
|
84
|
+
children: /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: c ? k : u })
|
|
85
85
|
},
|
|
86
86
|
c ? "checked" : "unchecked"
|
|
87
87
|
) }),
|
|
88
|
-
|
|
88
|
+
a && /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ r(q, {}) })
|
|
89
89
|
] }),
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
p !== "small" && f !== "line" && (o || s) && /* @__PURE__ */ d(R, { children: [
|
|
91
|
+
/* @__PURE__ */ d("div", { className: `${e}-text-holder`, children: [
|
|
92
|
+
o && c && o,
|
|
93
|
+
s && !c && s
|
|
94
94
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
95
|
+
/* @__PURE__ */ r(
|
|
96
|
+
N,
|
|
97
97
|
{
|
|
98
98
|
in: c,
|
|
99
99
|
classNames: "switchSlideText",
|
|
100
100
|
timeout: 200,
|
|
101
|
-
children: /* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
children: /* @__PURE__ */ d("div", { className: `${e}-text`, children: [
|
|
102
|
+
o && c && o,
|
|
103
|
+
s && !c && s
|
|
104
104
|
] })
|
|
105
105
|
}
|
|
106
106
|
)
|
|
@@ -109,9 +109,9 @@ function K(N, $) {
|
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
const V = L(K),
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
const V = L(K), $ = V;
|
|
113
|
+
$.__PQB_SWITCH = !0;
|
|
114
|
+
$.displayName = "Switch";
|
|
115
115
|
export {
|
|
116
|
-
|
|
116
|
+
$ as default
|
|
117
117
|
};
|
package/table/Table.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../chunk/
|
|
2
|
+
import "../chunk/uKZyjtff.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/Cplu5dtQ.js";
|
|
10
10
|
import "../chunk/B2yFlXke.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
|
-
import { _ as n } from "../chunk/
|
|
13
|
+
import { _ as n } from "../chunk/w221i0nK.js";
|
|
14
14
|
import "../spin/index.js";
|
|
15
15
|
import "@unicom-cloud/utils/class-name";
|
|
16
16
|
import "../utils/dom.js";
|
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/w221i0nK.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/Cplu5dtQ.js";
|
|
6
6
|
import "../chunk/B4YRLi8r.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../chunk/CXPOj2uy.js";
|
|
9
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/dKvAiKxr.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/
|
|
3
|
+
import "../chunk/Cplu5dtQ.js";
|
|
4
4
|
import "@unicom-cloud/utils/class-name";
|
|
5
|
-
import { b as a } from "../chunk/
|
|
5
|
+
import { b as a } from "../chunk/dKvAiKxr.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
|
|
4
|
-
import
|
|
5
|
-
import { o as
|
|
6
|
-
function
|
|
7
|
-
const e = p(!1), { getPrefixCls:
|
|
8
|
-
return e.current =
|
|
3
|
+
import { a as N } from "../chunk/Cplu5dtQ.js";
|
|
4
|
+
import R from "@unicom-cloud/utils/class-name";
|
|
5
|
+
import { o as x } from "../chunk/BKKEev13.js";
|
|
6
|
+
function y(s, o) {
|
|
7
|
+
const e = p(!1), { getPrefixCls: a } = b(N), { children: r, className: n, style: c, lazyload: i, isActive: m, ...l } = s, f = a == null ? void 0 : a("tabs");
|
|
8
|
+
return e.current = i ? e.current || m : !0, e.current && /* @__PURE__ */ u(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
ref:
|
|
12
|
-
...
|
|
13
|
-
className:
|
|
14
|
-
style:
|
|
15
|
-
children:
|
|
11
|
+
ref: o,
|
|
12
|
+
...x(l, ["destroyOnHide", "title", "closable"]),
|
|
13
|
+
className: R(`${f}-pane`, n),
|
|
14
|
+
style: c,
|
|
15
|
+
children: r
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
const t = d.forwardRef(
|
|
19
|
+
const t = d.forwardRef(y);
|
|
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/dKvAiKxr.js";
|
|
2
|
+
import { a as s } from "../chunk/dKvAiKxr.js";
|
|
3
3
|
import { default as f, default as T } from "./TabPane.js";
|
|
4
4
|
export {
|
|
5
5
|
f as TabPane,
|
package/tag/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
1
|
+
import { jsx as c, jsxs as _, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import Q from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as X, useContext as Y, useState as
|
|
6
|
-
import { a as Z, I as S } from "../chunk/
|
|
4
|
+
import v from "lodash/isPlainObject";
|
|
5
|
+
import { forwardRef as X, useContext as Y, useState as N } from "react";
|
|
6
|
+
import { a as Z, I as S } from "../chunk/Cplu5dtQ.js";
|
|
7
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";
|
|
@@ -25,90 +25,90 @@ const se = [
|
|
|
25
25
|
], te = {
|
|
26
26
|
size: "default"
|
|
27
27
|
};
|
|
28
|
-
function ce(
|
|
29
|
-
var
|
|
30
|
-
const { getPrefixCls:
|
|
31
|
-
|
|
28
|
+
function ce(j, z) {
|
|
29
|
+
var T;
|
|
30
|
+
const { getPrefixCls: m, componentConfig: l, rtl: H } = Y(Z), L = ee(), r = oe(
|
|
31
|
+
j,
|
|
32
32
|
te,
|
|
33
|
-
|
|
33
|
+
l == null ? void 0 : l.Tag
|
|
34
34
|
), {
|
|
35
35
|
className: w,
|
|
36
36
|
style: K,
|
|
37
37
|
children: x,
|
|
38
38
|
color: s,
|
|
39
39
|
closable: e,
|
|
40
|
-
checkable:
|
|
40
|
+
checkable: p,
|
|
41
41
|
defaultChecked: R,
|
|
42
|
-
size:
|
|
42
|
+
size: I,
|
|
43
43
|
onClose: f,
|
|
44
|
-
onCheck:
|
|
45
|
-
icon:
|
|
46
|
-
closeIcon:
|
|
44
|
+
onCheck: h,
|
|
45
|
+
icon: O,
|
|
46
|
+
closeIcon: u,
|
|
47
47
|
bordered: U,
|
|
48
48
|
__closeIconProps: V,
|
|
49
49
|
...q
|
|
50
|
-
} = r, o =
|
|
50
|
+
} = r, o = m == null ? void 0 : m("tag"), [F, P] = N(
|
|
51
51
|
"visible" in r ? r.visible : !0
|
|
52
|
-
), [M, A] =
|
|
52
|
+
), [M, A] = N(
|
|
53
53
|
"checked" in r ? r.checked : R
|
|
54
|
-
), [
|
|
55
|
-
function
|
|
54
|
+
), [g, k] = N(), y = "checked" in r ? r.checked : M, B = "visible" in r ? r.visible : F;
|
|
55
|
+
function C(n) {
|
|
56
56
|
const i = f == null ? void 0 : f(n);
|
|
57
|
-
i && i.then ? (
|
|
58
|
-
|
|
57
|
+
i && i.then ? (k(!0), i.then(() => {
|
|
58
|
+
k(!1), P(!1);
|
|
59
59
|
}).catch(() => {
|
|
60
|
-
|
|
61
|
-
})) :
|
|
60
|
+
k(!1);
|
|
61
|
+
})) : P(!1);
|
|
62
62
|
}
|
|
63
63
|
function D() {
|
|
64
|
-
const n = !
|
|
65
|
-
"checked" in r || A(n),
|
|
64
|
+
const n = !y;
|
|
65
|
+
"checked" in r || A(n), h == null || h(n);
|
|
66
66
|
}
|
|
67
|
-
const d = s && se.indexOf(s) !== -1 ? s : "",
|
|
67
|
+
const d = s && se.indexOf(s) !== -1 ? s : "", $ = p ? y : !0, G = ie(
|
|
68
68
|
o,
|
|
69
69
|
{
|
|
70
|
-
[`${o}-loading`]:
|
|
70
|
+
[`${o}-loading`]: g,
|
|
71
71
|
[`${o}-hide`]: !B,
|
|
72
72
|
[`${o}-${d}`]: d,
|
|
73
|
-
[`${o}-checkable`]:
|
|
74
|
-
[`${o}-checked`]:
|
|
75
|
-
[`${o}-size-${
|
|
73
|
+
[`${o}-checkable`]: p,
|
|
74
|
+
[`${o}-checked`]: $,
|
|
75
|
+
[`${o}-size-${I}`]: I,
|
|
76
76
|
[`${o}-bordered`]: U,
|
|
77
|
-
[`${o}-custom-color`]:
|
|
77
|
+
[`${o}-custom-color`]: $ && s && !d,
|
|
78
78
|
[`${o}-rtl`]: H
|
|
79
79
|
},
|
|
80
80
|
w
|
|
81
81
|
), t = {
|
|
82
82
|
...K
|
|
83
83
|
};
|
|
84
|
-
s && !d &&
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
let
|
|
84
|
+
s && !d && $ && (t.backgroundColor || (t.backgroundColor = s), t.borderColor || (t.borderColor = s));
|
|
85
|
+
const E = re(q, ["visible"]);
|
|
86
|
+
p && (E.onClick = D);
|
|
87
|
+
let b = /* @__PURE__ */ c(
|
|
88
88
|
S,
|
|
89
89
|
{
|
|
90
90
|
prefix: o,
|
|
91
91
|
className: `${o}-close-btn`,
|
|
92
92
|
onClick: (n) => {
|
|
93
|
-
|
|
93
|
+
v(e == null ? void 0 : e.popconfirm) || C(n);
|
|
94
94
|
},
|
|
95
95
|
role: "button",
|
|
96
96
|
tabIndex: 0,
|
|
97
97
|
...L({
|
|
98
98
|
onPressEnter(n) {
|
|
99
|
-
|
|
99
|
+
v(e == null ? void 0 : e.popconfirm) || C(n);
|
|
100
100
|
}
|
|
101
101
|
}),
|
|
102
102
|
"aria-label": "Close",
|
|
103
103
|
...V,
|
|
104
|
-
children:
|
|
104
|
+
children: u !== void 0 ? u : /* @__PURE__ */ c(Q, {})
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
return
|
|
107
|
+
return v(e == null ? void 0 : e.popconfirm) && (b = /* @__PURE__ */ c(
|
|
108
108
|
ne,
|
|
109
109
|
{
|
|
110
110
|
...e == null ? void 0 : e.popconfirm,
|
|
111
|
-
title: ((
|
|
111
|
+
title: ((T = e == null ? void 0 : e.popconfirm) == null ? void 0 : T.title) || /* @__PURE__ */ _(J, { children: [
|
|
112
112
|
"确定要关闭 ",
|
|
113
113
|
x
|
|
114
114
|
] }),
|
|
@@ -118,15 +118,15 @@ function ce(_, j) {
|
|
|
118
118
|
},
|
|
119
119
|
onOk: (n) => {
|
|
120
120
|
var i, a;
|
|
121
|
-
|
|
121
|
+
C(n), (a = (i = e == null ? void 0 : e.popconfirm) == null ? void 0 : i.onOk) == null || a.call(i, n);
|
|
122
122
|
},
|
|
123
|
-
children:
|
|
123
|
+
children: b
|
|
124
124
|
}
|
|
125
|
-
)), /* @__PURE__ */
|
|
126
|
-
|
|
125
|
+
)), /* @__PURE__ */ _("div", { ref: z, style: t, className: G, ...E, children: [
|
|
126
|
+
O && /* @__PURE__ */ c("span", { className: `${o}-icon`, children: O }),
|
|
127
127
|
/* @__PURE__ */ c("span", { className: `${o}-content`, children: x }),
|
|
128
|
-
!!e && !
|
|
129
|
-
|
|
128
|
+
!!e && !g && u !== null && b,
|
|
129
|
+
g && /* @__PURE__ */ c("span", { className: `${o}-loading-icon`, children: /* @__PURE__ */ c(W, {}) })
|
|
130
130
|
] });
|
|
131
131
|
}
|
|
132
132
|
const ae = X(ce);
|