@unicom-cloud/ui 0.8.98 → 0.8.100
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/Anchor.js +3 -1
- package/Badge.js +54 -7
- package/Copy.js +49 -2
- package/Flex.js +12 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +60 -2
- package/Marquee.js +62 -0
- package/QrCode.js +14 -9
- package/Segmented.js +11 -0
- package/Space.js +14 -6
- package/Splitter.js +6 -0
- package/Tag.js +3 -2
- package/Tour.js +14 -9
- package/alert/index.js +38 -39
- package/anchor/index.js +5 -3
- package/badge/index.js +174 -80
- package/collapse/Collapse.js +54 -48
- package/components/common/space/index.js +90 -106
- package/copy/index.js +83 -35
- package/flex/index.js +59 -0
- package/flex/interface.js +34 -0
- package/flex/utils.js +13 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/index.js +490 -477
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +256 -2
- package/marquee/index.js +283 -0
- package/menu/Item.js +17 -16
- package/package.json +1 -1
- package/qr-code/index.js +54 -36
- package/rate/index.js +8 -8
- package/segmented/index.js +225 -0
- package/space/index.js +28 -29
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +139 -0
- package/splitter/hooks/useEvent.js +12 -0
- package/splitter/hooks/useItems.js +26 -0
- package/splitter/hooks/useResizable.js +26 -0
- package/splitter/hooks/useResize.js +68 -0
- package/splitter/hooks/useSizes.js +60 -0
- package/splitter/index.js +7 -0
- package/splitter/interface.js +1 -0
- package/style.css +1 -1
- package/table/Table.js +1 -1
- package/table/hook/useThResizable.js +72 -26
- package/table/tbody/Td.js +80 -77
- package/table/th-resizable/index.js +92 -35
- package/tag/index.js +42 -41
- package/tooltip/index.js +89 -82
- package/tour/index.js +110 -89
- package/types/common/hooks/useMergeProps.d.ts +1 -1
- package/types/common/space/index.d.ts +7 -5
- package/types/common/space/interface.d.ts +29 -16
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +2 -2
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/anchor/interface.d.ts +0 -2
- package/types/pc/auto-complete/interface.d.ts +0 -6
- package/types/pc/avatar/interface.d.ts +0 -4
- package/types/pc/badge/index.d.ts +4 -4
- package/types/pc/badge/interface.d.ts +26 -0
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +6 -18
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +4 -2
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/interface.d.ts +16 -14
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/drawer/interface.d.ts +0 -7
- package/types/pc/dropdown/interface.d.ts +0 -1
- package/types/pc/flex/index.d.ts +9 -0
- package/types/pc/flex/interface.d.ts +61 -0
- package/types/pc/flex/utils.d.ts +9 -0
- package/types/pc/form/interface.d.ts +9 -22
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -3
- package/types/pc/grid/interface.d.ts +1 -6
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +16 -6
- package/types/pc/input/Textarea.d.ts +2 -6
- package/types/pc/input/interface.d.ts +5 -13
- package/types/pc/input-number/interface.d.ts +0 -4
- package/types/pc/input-tag/interface.d.ts +0 -13
- package/types/pc/layout/interface.d.ts +0 -1
- package/types/pc/link/interface.d.ts +0 -1
- package/types/pc/liquid-fill/index.d.ts +114 -1
- package/types/pc/list/interface.d.ts +0 -4
- package/types/pc/marquee/index.d.ts +61 -0
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/message/interface.d.ts +0 -2
- package/types/pc/modal/interface.d.ts +0 -5
- package/types/pc/notification/interface.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +0 -2
- package/types/pc/popconfirm/interface.d.ts +8 -10
- package/types/pc/popover/interface.d.ts +0 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/qr-code/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +2 -2
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/segmented/index.d.ts +8 -0
- package/types/pc/segmented/interface.d.ts +88 -0
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +4 -1
- package/types/pc/space/interface.d.ts +6 -10
- package/types/pc/spin/interface.d.ts +4 -1
- package/types/pc/splitter/Panel.d.ts +8 -0
- package/types/pc/splitter/SplitBar.d.ts +21 -0
- package/types/pc/splitter/Splitter.d.ts +4 -0
- package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
- package/types/pc/splitter/hooks/useItems.d.ts +10 -0
- package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
- package/types/pc/splitter/hooks/useResize.d.ts +4 -0
- package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
- package/types/pc/splitter/index.d.ts +8 -0
- package/types/pc/splitter/interface.d.ts +213 -0
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/tour/index.d.ts +6 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/interface.d.ts +2 -8
- package/types/pc/tree-select/interface.d.ts +0 -8
- package/types/pc/trigger/interface.d.ts +0 -5
- package/types/pc/typography/EditContent.d.ts +2 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +24 -0
- package/types/pc/utils/toArray.d.ts +7 -0
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/watermark/interface.d.ts +0 -2
- package/typography/Base.js +73 -73
- package/typography/EditContent.js +43 -33
- package/typography/Ellipsis.js +117 -184
- package/typography/Operations.js +97 -49
- package/typography/useCssEllipsis.js +7 -6
- package/utils/index.js +117 -115
- package/utils/names.js +16 -0
- package/utils/toArray.js +12 -0
- package/version/index.js +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -7
- package/_virtual/index2.js +0 -4
- package/liquid-fill/LiquidFill.js +0 -226
- package/liquid-fill/LiquidFill2.js +0 -3
- package/space-/index.js +0 -93
- package/types/common/utils/color.d.ts +0 -1
- package/types/common/utils/computeScrollIntoView.d.ts +0 -1
- package/types/common/utils/index.d.ts +0 -45
- package/types/common/utils/math.d.ts +0 -1
- package/types/common/utils/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/tree.d.ts +0 -1
- package/types/common/utils/tween.d.ts +0 -1
- package/types/common/utils/uuid.d.ts +0 -1
- package/types/common/utils/validate.d.ts +0 -1
- package/types/pc/liquid-fill/LiquidFill.d.ts +0 -115
- package/types/pc/liquid-fill/LiquidFill2.d.ts +0 -1
- package/types/pc/space-/index.d.ts +0 -6
- package/types/pc/space-/interface.d.ts +0 -38
- /package/{space- → components/common/space}/toArray.js +0 -0
- /package/{space- → segmented}/interface.js +0 -0
- /package/types/{pc/space- → common/space}/toArray.d.ts +0 -0
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
package/tag/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as r, jsxs as y, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as y, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import B from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
+
import D from "@unicom-cloud/icons/IconUiLoading";
|
|
4
|
+
import g from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as J, useContext as Q, useState as b } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
7
|
import W from "../components/common/hooks/useKeyboardEvent.js";
|
|
@@ -27,89 +27,89 @@ const ce = [
|
|
|
27
27
|
], se = {
|
|
28
28
|
size: "default"
|
|
29
29
|
};
|
|
30
|
-
function re(
|
|
31
|
-
const { getPrefixCls:
|
|
32
|
-
|
|
30
|
+
function re(O, P) {
|
|
31
|
+
const { getPrefixCls: I, componentConfig: T, rtl: _ } = Q(ne), E = W(), n = X(
|
|
32
|
+
O,
|
|
33
33
|
se,
|
|
34
|
-
|
|
34
|
+
T?.Tag
|
|
35
35
|
), {
|
|
36
|
-
className:
|
|
37
|
-
style:
|
|
36
|
+
className: L,
|
|
37
|
+
style: S,
|
|
38
38
|
children: k,
|
|
39
39
|
color: s,
|
|
40
40
|
closable: c,
|
|
41
41
|
checkable: t,
|
|
42
|
-
defaultChecked:
|
|
42
|
+
defaultChecked: j,
|
|
43
43
|
size: u,
|
|
44
|
-
onClose:
|
|
45
|
-
onCheck:
|
|
44
|
+
onClose: z,
|
|
45
|
+
onCheck: H,
|
|
46
46
|
icon: $,
|
|
47
47
|
closeIcon: l,
|
|
48
|
-
bordered:
|
|
49
|
-
__closeIconProps:
|
|
50
|
-
...
|
|
51
|
-
} = n, e =
|
|
48
|
+
bordered: R,
|
|
49
|
+
__closeIconProps: w,
|
|
50
|
+
...K
|
|
51
|
+
} = n, e = I?.("tag"), [U, v] = b(
|
|
52
52
|
"visible" in n ? n.visible : !0
|
|
53
|
-
), [V,
|
|
54
|
-
"checked" in n ? n.checked :
|
|
55
|
-
), [a, m] = b(), x = "checked" in n ? n.checked : V,
|
|
53
|
+
), [V, A] = b(
|
|
54
|
+
"checked" in n ? n.checked : j
|
|
55
|
+
), [a, m] = b(), x = "checked" in n ? n.checked : V, F = "visible" in n ? n.visible : U;
|
|
56
56
|
function d(o) {
|
|
57
|
-
const
|
|
58
|
-
|
|
57
|
+
const C = z?.(o);
|
|
58
|
+
C && C.then ? (m(!0), C.then(() => {
|
|
59
59
|
m(!1), v(!1);
|
|
60
60
|
}).catch(() => {
|
|
61
61
|
m(!1);
|
|
62
62
|
})) : v(!1);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function G() {
|
|
65
65
|
const o = !x;
|
|
66
|
-
"checked" in n ||
|
|
66
|
+
"checked" in n || A(o), H?.(o);
|
|
67
67
|
}
|
|
68
|
-
const i = s && ce.indexOf(s) !== -1 ? s : "", p = t ? x : !0,
|
|
68
|
+
const i = s && ce.indexOf(s) !== -1 ? s : "", p = t ? x : !0, M = ee(
|
|
69
69
|
e,
|
|
70
70
|
{
|
|
71
71
|
[`${e}-loading`]: a,
|
|
72
|
-
[`${e}-hide`]: !
|
|
72
|
+
[`${e}-hide`]: !F,
|
|
73
73
|
[`${e}-${i}`]: i,
|
|
74
74
|
[`${e}-checkable`]: t,
|
|
75
75
|
[`${e}-checked`]: p,
|
|
76
76
|
[`${e}-size-${u}`]: u,
|
|
77
|
-
[`${e}-bordered`]:
|
|
77
|
+
[`${e}-bordered`]: R,
|
|
78
78
|
[`${e}-custom-color`]: p && s && !i,
|
|
79
|
-
[`${e}-rtl`]:
|
|
79
|
+
[`${e}-rtl`]: _
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
L
|
|
82
82
|
), f = {
|
|
83
|
-
...
|
|
83
|
+
...S
|
|
84
84
|
};
|
|
85
85
|
s && !i && p && (f.backgroundColor ||= s, f.borderColor ||= s);
|
|
86
|
-
const N = oe(
|
|
87
|
-
t && (N.onClick =
|
|
86
|
+
const N = oe(K, ["visible"]);
|
|
87
|
+
t && (N.onClick = G);
|
|
88
88
|
let h = /* @__PURE__ */ r(
|
|
89
89
|
Y,
|
|
90
90
|
{
|
|
91
91
|
prefix: e,
|
|
92
92
|
className: `${e}-close-btn`,
|
|
93
93
|
onClick: (o) => {
|
|
94
|
-
|
|
94
|
+
g(c?.popconfirm) || d(o);
|
|
95
95
|
},
|
|
96
96
|
role: "button",
|
|
97
97
|
tabIndex: 0,
|
|
98
|
-
...
|
|
98
|
+
...E({
|
|
99
99
|
onPressEnter(o) {
|
|
100
|
-
|
|
100
|
+
g(c?.popconfirm) || d(o);
|
|
101
101
|
}
|
|
102
102
|
}),
|
|
103
103
|
"aria-label": "Close",
|
|
104
|
-
...
|
|
105
|
-
children: l !== void 0 ? l : /* @__PURE__ */ r(
|
|
104
|
+
...w,
|
|
105
|
+
children: l !== void 0 ? l : /* @__PURE__ */ r(B, {})
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
return
|
|
108
|
+
return g(c?.popconfirm) && (h = /* @__PURE__ */ r(
|
|
109
109
|
Z,
|
|
110
110
|
{
|
|
111
111
|
...c?.popconfirm,
|
|
112
|
-
title: c?.popconfirm?.title || /* @__PURE__ */ y(
|
|
112
|
+
title: c?.popconfirm?.title || /* @__PURE__ */ y(q, { children: [
|
|
113
113
|
"确定要关闭 ",
|
|
114
114
|
k
|
|
115
115
|
] }),
|
|
@@ -121,15 +121,16 @@ function re(P, I) {
|
|
|
121
121
|
},
|
|
122
122
|
children: h
|
|
123
123
|
}
|
|
124
|
-
)), /* @__PURE__ */ y("div", { ref:
|
|
124
|
+
)), /* @__PURE__ */ y("div", { ref: P, style: f, className: M, ...N, children: [
|
|
125
125
|
$ && /* @__PURE__ */ r("span", { className: `${e}-icon`, children: $ }),
|
|
126
126
|
/* @__PURE__ */ r("span", { className: `${e}-content`, children: k }),
|
|
127
127
|
!!c && !a && l !== null && h,
|
|
128
|
-
a && /* @__PURE__ */ r("span", { className: `${e}-loading-icon`, children: /* @__PURE__ */ r(
|
|
128
|
+
a && /* @__PURE__ */ r("span", { className: `${e}-loading-icon`, children: /* @__PURE__ */ r(D, {}) })
|
|
129
129
|
] });
|
|
130
130
|
}
|
|
131
131
|
const ie = J(re);
|
|
132
132
|
ie.displayName = "Tag";
|
|
133
133
|
export {
|
|
134
|
+
ce as TAG_COLORS,
|
|
134
135
|
ie as default
|
|
135
136
|
};
|
package/tooltip/index.js
CHANGED
|
@@ -1,69 +1,71 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
3
|
-
import { TinyColor as
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
3
|
+
import { TinyColor as F } from "../dist/tinycolor/src/index.js";
|
|
4
|
+
import I from "lodash/isFunction";
|
|
5
|
+
import { forwardRef as S, useContext as j, useRef as z, useImperativeHandle as B, useMemo as W } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { isEmptyReactNode as
|
|
11
|
-
import { pickDataAttributes as
|
|
12
|
-
import
|
|
13
|
-
const
|
|
7
|
+
import q from "../components/common/hooks/useMergeProps.js";
|
|
8
|
+
import G, { EventsByTriggerNeed as J } from "../trigger/index.js";
|
|
9
|
+
import g from "@unicom-cloud/utils/class-name";
|
|
10
|
+
import { isEmptyReactNode as K } from "../components/common/utils/is.js";
|
|
11
|
+
import { pickDataAttributes as Q, pick as U } from "../components/common/utils/pick.js";
|
|
12
|
+
import X from "../config-provider/context.js";
|
|
13
|
+
const Y = {
|
|
14
14
|
position: "top",
|
|
15
15
|
trigger: "hover",
|
|
16
16
|
escToClose: !1,
|
|
17
17
|
unmountOnExit: !0,
|
|
18
18
|
blurToHide: !0,
|
|
19
19
|
popupHoverStay: !0
|
|
20
|
-
},
|
|
20
|
+
}, Z = {
|
|
21
21
|
enter: 300,
|
|
22
22
|
exit: 100
|
|
23
|
-
},
|
|
23
|
+
}, _ = {
|
|
24
24
|
left: 12,
|
|
25
25
|
right: 12,
|
|
26
26
|
top: 12,
|
|
27
27
|
bottom: 12
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
const { getPrefixCls:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
function oo(d, P) {
|
|
30
|
+
const { getPrefixCls: C, componentConfig: b } = j(X), n = q(
|
|
31
|
+
d,
|
|
32
|
+
Y,
|
|
33
|
+
b?.Tooltip
|
|
34
34
|
), {
|
|
35
|
-
style:
|
|
35
|
+
style: h,
|
|
36
36
|
className: l,
|
|
37
|
-
children:
|
|
38
|
-
trigger:
|
|
39
|
-
escToClose:
|
|
40
|
-
defaultPopupVisible:
|
|
37
|
+
children: x,
|
|
38
|
+
trigger: N,
|
|
39
|
+
escToClose: y,
|
|
40
|
+
defaultPopupVisible: T,
|
|
41
41
|
position: a,
|
|
42
|
-
unmountOnExit:
|
|
43
|
-
popupVisible:
|
|
44
|
-
prefixCls:
|
|
45
|
-
blurToHide:
|
|
46
|
-
popupHoverStay:
|
|
47
|
-
disabled:
|
|
42
|
+
unmountOnExit: w,
|
|
43
|
+
popupVisible: V,
|
|
44
|
+
prefixCls: v,
|
|
45
|
+
blurToHide: $,
|
|
46
|
+
popupHoverStay: D,
|
|
47
|
+
disabled: E,
|
|
48
48
|
onVisibleChange: A,
|
|
49
49
|
triggerProps: u,
|
|
50
|
-
childrenPrefix:
|
|
51
|
-
getPopupContainer:
|
|
52
|
-
content:
|
|
53
|
-
mini:
|
|
54
|
-
color:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
childrenPrefix: H,
|
|
51
|
+
getPopupContainer: O,
|
|
52
|
+
content: s,
|
|
53
|
+
mini: R,
|
|
54
|
+
color: r,
|
|
55
|
+
pre: c,
|
|
56
|
+
// 潘启宝添加
|
|
57
|
+
...m
|
|
58
|
+
} = n, t = z(), k = (i = 0, L) => {
|
|
59
|
+
t.current?.updatePopupPosition?.(i, L);
|
|
58
60
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
B(
|
|
62
|
+
P,
|
|
61
63
|
() => ({
|
|
62
64
|
// ...refTrigger.current,
|
|
63
|
-
updatePopupPosition:
|
|
65
|
+
updatePopupPosition: k,
|
|
64
66
|
getRootDOMNode: () => t.current?.getRootDOMNode?.(),
|
|
65
|
-
setPopupVisible(
|
|
66
|
-
t.current?.setPopupVisible?.(
|
|
67
|
+
setPopupVisible(i) {
|
|
68
|
+
t.current?.setPopupVisible?.(i);
|
|
67
69
|
},
|
|
68
70
|
hide() {
|
|
69
71
|
t.current?.setPopupVisible?.(!1);
|
|
@@ -71,66 +73,71 @@ function _(g, d) {
|
|
|
71
73
|
}),
|
|
72
74
|
[]
|
|
73
75
|
);
|
|
74
|
-
const
|
|
75
|
-
...
|
|
76
|
-
...
|
|
76
|
+
const e = v || C?.("tooltip"), o = {
|
|
77
|
+
...U(m, J),
|
|
78
|
+
...Q(m),
|
|
77
79
|
...u,
|
|
78
|
-
className:
|
|
79
|
-
},
|
|
80
|
-
"popupVisible" in n ? o.popupVisible =
|
|
81
|
-
backgroundColor:
|
|
80
|
+
className: g(l, u?.className)
|
|
81
|
+
}, f = I(s) ? s() : s;
|
|
82
|
+
"popupVisible" in n ? o.popupVisible = V : K(f, !0) && (o.popupVisible = !1), (o.showArrow !== !1 || o.arrowProps) && (o.arrowProps = o.arrowProps || {}, r && (o.arrowProps.style = {
|
|
83
|
+
backgroundColor: r,
|
|
82
84
|
...o.arrowProps.style
|
|
83
85
|
}));
|
|
84
|
-
const
|
|
86
|
+
const M = W(() => r ? new F(r).isLight() ?? !1 : !1, [r]);
|
|
85
87
|
return /* @__PURE__ */ p(
|
|
86
|
-
|
|
88
|
+
G,
|
|
87
89
|
{
|
|
88
90
|
style: {
|
|
89
91
|
maxWidth: 350,
|
|
90
|
-
...
|
|
92
|
+
...h
|
|
91
93
|
},
|
|
92
94
|
className: l,
|
|
93
95
|
ref: t,
|
|
94
96
|
classNames: "zoomInFadeOut",
|
|
95
|
-
duration:
|
|
96
|
-
popup: () =>
|
|
97
|
-
"div"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
duration: Z,
|
|
98
|
+
popup: () => {
|
|
99
|
+
const i = c ? "pre" : "div";
|
|
100
|
+
return /* @__PURE__ */ p(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
style: { backgroundColor: r },
|
|
104
|
+
className: g(
|
|
105
|
+
`${e}-content`,
|
|
106
|
+
`${e}-content-${a}`,
|
|
107
|
+
{
|
|
108
|
+
[`${e}-mini`]: R,
|
|
109
|
+
[`${e}-pre`]: c,
|
|
110
|
+
// 潘启宝添加
|
|
111
|
+
[`${e}-light-color`]: M
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
role: "tooltip",
|
|
115
|
+
children: /* @__PURE__ */ p(i, { className: `${e}-content-inner`, children: f })
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
},
|
|
112
119
|
position: a,
|
|
113
|
-
disabled:
|
|
114
|
-
trigger:
|
|
115
|
-
escToClose:
|
|
120
|
+
disabled: E,
|
|
121
|
+
trigger: N,
|
|
122
|
+
escToClose: y,
|
|
116
123
|
showArrow: !0,
|
|
117
|
-
popupAlign:
|
|
124
|
+
popupAlign: _,
|
|
118
125
|
mouseEnterDelay: 200,
|
|
119
126
|
mouseLeaveDelay: 200,
|
|
120
|
-
unmountOnExit:
|
|
121
|
-
popupHoverStay:
|
|
122
|
-
blurToHide:
|
|
123
|
-
childrenPrefix:
|
|
124
|
-
getPopupContainer:
|
|
127
|
+
unmountOnExit: w,
|
|
128
|
+
popupHoverStay: D,
|
|
129
|
+
blurToHide: $,
|
|
130
|
+
childrenPrefix: H || e,
|
|
131
|
+
getPopupContainer: O,
|
|
125
132
|
onVisibleChange: A,
|
|
126
|
-
defaultPopupVisible:
|
|
133
|
+
defaultPopupVisible: T,
|
|
127
134
|
...o,
|
|
128
|
-
children:
|
|
135
|
+
children: x
|
|
129
136
|
}
|
|
130
137
|
);
|
|
131
138
|
}
|
|
132
|
-
const
|
|
133
|
-
|
|
139
|
+
const eo = S(oo);
|
|
140
|
+
eo.displayName = "Tooltip";
|
|
134
141
|
export {
|
|
135
|
-
|
|
142
|
+
eo as default
|
|
136
143
|
};
|