@unicom-cloud/ui 0.8.99 → 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.
Files changed (136) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +7 -6
  3. package/Copy.js +49 -2
  4. package/Flex.js +12 -0
  5. package/Grid.js +1 -1
  6. package/LiquidFill.js +3 -2
  7. package/Marquee.js +3 -2
  8. package/QrCode.js +3 -2
  9. package/Splitter.js +4 -5
  10. package/Tag.js +3 -2
  11. package/Tour.js +3 -2
  12. package/alert/index.js +38 -39
  13. package/anchor/index.js +5 -3
  14. package/badge/index.js +19 -18
  15. package/copy/index.js +83 -35
  16. package/flex/index.js +59 -0
  17. package/flex/interface.js +34 -0
  18. package/flex/utils.js +13 -0
  19. package/grid/{GridItem.js → Item.js} +15 -15
  20. package/grid/index.js +1 -1
  21. package/index.js +503 -493
  22. package/input/Button.js +39 -34
  23. package/input/Textarea.js +108 -104
  24. package/liquid-fill/index.js +3 -2
  25. package/marquee/index.js +3 -2
  26. package/package.json +1 -1
  27. package/qr-code/index.js +3 -2
  28. package/segmented/index.js +112 -104
  29. package/spin/index.js +75 -62
  30. package/splitter/Panel.js +39 -0
  31. package/splitter/SplitBar.js +157 -0
  32. package/splitter/Splitter.js +139 -0
  33. package/splitter/hooks/useEvent.js +12 -0
  34. package/splitter/hooks/useItems.js +26 -0
  35. package/splitter/hooks/useResizable.js +26 -0
  36. package/splitter/hooks/useResize.js +68 -0
  37. package/splitter/hooks/useSizes.js +60 -0
  38. package/splitter/index.js +5 -115
  39. package/style.css +1 -1
  40. package/table/Table.js +1 -1
  41. package/table/hook/useThResizable.js +72 -26
  42. package/table/tbody/Td.js +80 -77
  43. package/table/th-resizable/index.js +92 -35
  44. package/tag/index.js +42 -41
  45. package/tooltip/index.js +89 -82
  46. package/tour/index.js +5 -6
  47. package/types/common/space/index.d.ts +2 -1
  48. package/types/pc/affix/interface.d.ts +0 -2
  49. package/types/pc/alert/index.d.ts +2 -2
  50. package/types/pc/anchor/index.d.ts +2 -1
  51. package/types/pc/anchor/interface.d.ts +0 -2
  52. package/types/pc/auto-complete/interface.d.ts +0 -6
  53. package/types/pc/avatar/interface.d.ts +0 -4
  54. package/types/pc/breadcrumb/interface.d.ts +0 -3
  55. package/types/pc/carousel/interface.d.ts +2 -6
  56. package/types/pc/cascader/interface.d.ts +6 -18
  57. package/types/pc/checkbox/interface.d.ts +0 -1
  58. package/types/pc/collapse/interface.d.ts +0 -2
  59. package/types/pc/color-picker/interface.d.ts +0 -2
  60. package/types/pc/config-provider/interface.d.ts +13 -17
  61. package/types/pc/copy/interface.d.ts +2 -1
  62. package/types/pc/date-picker/interface.d.ts +0 -17
  63. package/types/pc/descriptions/interface.d.ts +0 -1
  64. package/types/pc/drawer/interface.d.ts +0 -7
  65. package/types/pc/dropdown/interface.d.ts +0 -1
  66. package/types/pc/flex/index.d.ts +9 -0
  67. package/types/pc/flex/interface.d.ts +61 -0
  68. package/types/pc/flex/utils.d.ts +9 -0
  69. package/types/pc/form/interface.d.ts +9 -22
  70. package/types/pc/form/util.d.ts +1 -1
  71. package/types/pc/grid/index.d.ts +3 -3
  72. package/types/pc/grid/interface.d.ts +1 -6
  73. package/types/pc/image/interface.d.ts +0 -13
  74. package/types/pc/index.d.ts +6 -2
  75. package/types/pc/input/Textarea.d.ts +2 -6
  76. package/types/pc/input/interface.d.ts +5 -13
  77. package/types/pc/input-number/interface.d.ts +0 -4
  78. package/types/pc/input-tag/interface.d.ts +0 -13
  79. package/types/pc/layout/interface.d.ts +0 -1
  80. package/types/pc/link/interface.d.ts +0 -1
  81. package/types/pc/list/interface.d.ts +0 -4
  82. package/types/pc/menu/interface.d.ts +0 -8
  83. package/types/pc/message/interface.d.ts +0 -2
  84. package/types/pc/modal/interface.d.ts +0 -5
  85. package/types/pc/notification/interface.d.ts +0 -1
  86. package/types/pc/pagination/interface.d.ts +0 -2
  87. package/types/pc/popconfirm/interface.d.ts +8 -10
  88. package/types/pc/popover/interface.d.ts +0 -1
  89. package/types/pc/progress/interface.d.ts +0 -3
  90. package/types/pc/resize-box/interface.d.ts +1 -7
  91. package/types/pc/select/interface.d.ts +0 -12
  92. package/types/pc/select-view/interface.d.ts +0 -7
  93. package/types/pc/slider/interface.d.ts +0 -4
  94. package/types/pc/space/index.d.ts +1 -0
  95. package/types/pc/spin/interface.d.ts +4 -1
  96. package/types/pc/splitter/Panel.d.ts +8 -0
  97. package/types/pc/splitter/SplitBar.d.ts +21 -0
  98. package/types/pc/splitter/Splitter.d.ts +4 -0
  99. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  100. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  101. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  102. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  103. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  104. package/types/pc/splitter/index.d.ts +8 -4
  105. package/types/pc/splitter/interface.d.ts +181 -38
  106. package/types/pc/statistic/interface.d.ts +0 -4
  107. package/types/pc/steps/interface.d.ts +0 -3
  108. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  109. package/types/pc/table/interface.d.ts +4 -15
  110. package/types/pc/tabs/interface.d.ts +0 -7
  111. package/types/pc/tag/index.d.ts +2 -0
  112. package/types/pc/tag/interface.d.ts +0 -1
  113. package/types/pc/time-picker/interface.d.ts +0 -7
  114. package/types/pc/tooltip/interface.d.ts +4 -1
  115. package/types/pc/transfer/interface.d.ts +2 -9
  116. package/types/pc/tree/interface.d.ts +2 -8
  117. package/types/pc/tree-select/interface.d.ts +0 -8
  118. package/types/pc/trigger/interface.d.ts +0 -5
  119. package/types/pc/typography/EditContent.d.ts +2 -1
  120. package/types/pc/typography/interface.d.ts +45 -30
  121. package/types/pc/upload/interface.d.ts +6 -11
  122. package/types/pc/utils/index.d.ts +1 -0
  123. package/types/pc/utils/names.d.ts +6 -0
  124. package/types/pc/utils/toArray.d.ts +7 -0
  125. package/types/pc/verification-code/interface.d.ts +0 -2
  126. package/types/pc/watermark/interface.d.ts +0 -2
  127. package/typography/Base.js +73 -73
  128. package/typography/EditContent.js +43 -33
  129. package/typography/Ellipsis.js +117 -184
  130. package/typography/Operations.js +97 -49
  131. package/typography/useCssEllipsis.js +7 -6
  132. package/utils/index.js +117 -115
  133. package/utils/names.js +4 -0
  134. package/utils/toArray.js +12 -0
  135. package/version/index.js +1 -1
  136. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
@@ -1,43 +1,53 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as p, useRef as E, useEffect as h } from "react";
3
- import C from "../input/Input.js";
4
- import x from "@unicom-cloud/utils/class-name";
5
- import { mergedToString as N } from "../components/common/utils/mergedToString.js";
6
- function $(o, a) {
7
- const { prefixCls: n, children: u, setEditing: f, editableConfig: r, style: l } = o, m = x(
8
- `${n}-typography`,
9
- `${n}-edit-content`,
10
- o.className
11
- ), c = N(u), t = E(null);
12
- h(() => {
13
- if (t.current && t.current.focus?.(), t.current && t.current.dom) {
14
- const { length: e } = t.current.dom.value;
15
- t.current.dom.setSelectionRange(e, e);
2
+ import { forwardRef as C, useRef as P, useEffect as x } from "react";
3
+ import u from "../input/Input.js";
4
+ import N from "@unicom-cloud/utils/class-name";
5
+ import { mergedToString as $ } from "../components/common/utils/mergedToString.js";
6
+ function y(c, l) {
7
+ const { prefixCls: o, children: m, setEditing: d, editableConfig: n, style: p } = c, g = N(
8
+ `${o}-typography`,
9
+ `${o}-edit-content`,
10
+ c.className
11
+ ), a = $(m), e = P(null);
12
+ x(() => {
13
+ if (e.current?.focus?.(), e.current && "dom" in e.current) {
14
+ const { length: t } = e.current.dom.value;
15
+ e.current.dom.setSelectionRange(t, t);
16
16
  }
17
17
  }, []);
18
- function s() {
19
- f(!1), r.onEnd?.(c);
20
- }
21
- function d(e) {
22
- r.onChange?.(e);
23
- }
24
- function g() {
25
- s();
26
- }
27
- return /* @__PURE__ */ i("div", { className: m, style: l, ref: a, children: /* @__PURE__ */ i(
28
- C.TextArea,
18
+ const r = () => {
19
+ d?.(!1), n?.onEnd?.(a);
20
+ }, E = (t) => {
21
+ n?.onChange?.(t);
22
+ }, h = () => r(), f = {
23
+ className: `${o}-edit-content-input`,
24
+ value: a,
25
+ onBlur: h,
26
+ onChange: E
27
+ };
28
+ let s;
29
+ return n?.inputProps ? s = /* @__PURE__ */ i(
30
+ u,
29
31
  {
30
- className: `${n}-edit-content-textarea`,
31
- onBlur: g,
32
- ref: t,
33
- value: c,
32
+ ...f,
33
+ ref: e,
34
+ onPressEnter: r,
35
+ ...n.inputProps
36
+ }
37
+ ) : s = /* @__PURE__ */ i(
38
+ u.TextArea,
39
+ {
40
+ ...f,
41
+ ref: e,
34
42
  autoSize: !0,
35
- onChange: d,
36
- onPressEnter: s
43
+ onPressEnter: (t) => {
44
+ t.shiftKey || r();
45
+ },
46
+ ...n?.textAreaProps
37
47
  }
38
- ) });
48
+ ), /* @__PURE__ */ i("div", { className: g, style: p, ref: l, children: s });
39
49
  }
40
- const b = p($);
50
+ const b = C(y);
41
51
  export {
42
52
  b as default
43
53
  };
@@ -1,38 +1,35 @@
1
- import { jsxs as C, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as G, useContext as I, useRef as v, useState as N, useMemo as P, useEffect as M, useCallback as J } from "react";
1
+ import { jsxs as g, Fragment as K, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as Q, useContext as U, useRef as v, useState as R, useMemo as V, useEffect as S, useCallback as X } from "react";
3
3
  import "../config-provider/ConfigProvider.js";
4
- import K from "../components/common/hooks/useMergeProps.js";
5
- import Q from "../components/common/hooks/useMergeValue.js";
6
- import "lodash/isEqualWith";
7
- import "../components/common/utils/is.js";
8
- import "@unicom-cloud/utils/constant/keyboardCode";
9
- import "lodash/isNumber";
10
- import "lodash/merge";
11
- import { isServerRendering as U } from "../components/common/utils/dom.js";
12
- import "../components/common/hooks/useIntersectionObserver.js";
13
- import "../components/common/utils/reactDOM.js";
14
- import "@unicom-cloud/utils/constant";
15
- import "lodash/debounce";
4
+ import Y from "../copy/index.js";
5
+ import Z from "../components/common/hooks/useMergeProps.js";
6
+ import tt from "../components/common/hooks/useMergeValue.js";
7
+ import et from "../tooltip/index.js";
16
8
  import "@unicom-cloud/utils/case-name";
17
- import p from "@unicom-cloud/utils/class-name";
9
+ import n from "@unicom-cloud/utils/class-name";
18
10
  import "../dist/tinycolor/chunk/BOzCVdr0.js";
19
11
  import "@unicom-cloud/utils/constant/ui";
20
12
  import "../utils/contextHolder.js";
21
13
  import "@unicom-cloud/utils/dayjs";
22
14
  import "@unicom-cloud/utils/clipboard-copy";
23
15
  import "../components/common/utils/dayjs.js";
16
+ import { isServerRendering as rt } from "../components/common/utils/dom.js";
24
17
  import "@unicom-cloud/utils/file/fileToURL";
25
18
  import "lodash/escapeRegExp";
26
19
  import "lodash/isArray";
20
+ import "lodash/isNumber";
27
21
  import "lodash/isString";
28
22
  import "lodash/isFunction";
29
23
  import "lodash/throttle";
24
+ import "../components/common/utils/is.js";
30
25
  import "lodash/camelCase";
31
26
  import "lodash/capitalize";
32
27
  import "lodash/cloneDeep";
28
+ import "lodash/debounce";
33
29
  import "lodash/get";
34
30
  import "lodash/has";
35
31
  import "lodash/kebabCase";
32
+ import "lodash/merge";
36
33
  import "lodash/mergeWith";
37
34
  import "lodash/set";
38
35
  import "lodash/setWith";
@@ -41,173 +38,109 @@ import "lodash/startCase";
41
38
  import "lodash/uniq";
42
39
  import "lodash/upperFirst";
43
40
  import "@unicom-cloud/utils/math";
44
- import "lodash/isPlainObject";
41
+ import { mergedToString as ot } from "../components/common/utils/mergedToString.js";
45
42
  import "../dist/react-transition-group/src/CSSTransition.js";
46
43
  import "../dist/react-transition-group/src/ReplaceTransition.js";
47
44
  import "../dist/react-transition-group/src/SwitchTransition.js";
48
45
  import "../dist/react-transition-group/chunk/CPfP7aNL.js";
49
46
  import "../dist/react-transition-group/src/TransitionGroup.js";
50
- import { resizeObserver as X } from "../components/common/utils/resizeObserver.js";
47
+ import "../components/common/utils/reactDOM.js";
48
+ import { resizeObserver as it } from "../components/common/utils/resizeObserver.js";
51
49
  import "@unicom-cloud/utils/file/saveAs";
52
50
  import "@unicom-cloud/utils/screenfull";
53
51
  import "@unicom-cloud/utils/constant/ui.js";
54
- import { throttleByRaf as Y } from "../components/common/utils/throttleByRaf.js";
52
+ import "lodash/isPlainObject";
53
+ import { throttleByRaf as nt } from "../components/common/utils/throttleByRaf.js";
54
+ import "react-is";
55
55
  import "@unicom-cloud/utils/tree";
56
- import { isPlainObject as T } from "@unicom-cloud/utils/is";
56
+ import { isPlainObject as b, isFunction as st } from "@unicom-cloud/utils/is";
57
57
  import "uuid";
58
58
  import "../dist/validate/src/index.js";
59
- import "../affix/index.js";
60
- import "../alert/index.js";
61
- import "../anchor/Anchor.js";
62
- import "../auto-complete/index.js";
63
- import "../avatar/index.js";
64
- import "../back-top/index.js";
65
- import "../badge/index.js";
66
- import "../breadcrumb/index.js";
67
- import "../button/index.js";
68
- import "../calendar/index.js";
69
- import "../card/index.js";
70
- import "../carousel/index.js";
71
- import "../cascader/Cascader.js";
72
- import "../checkbox/Checkbox.js";
73
- import "../checkbox/Group.js";
74
- import "../collapse/Collapse.js";
75
- import "../comment/index.js";
76
- import "../copy/index.js";
77
- import "../date-picker/index.js";
78
- import "../descriptions/index.js";
79
- import "../details/index.js";
80
- import "../development/index.js";
81
- import "../divider/index.js";
82
- import "../drawer/Drawer.js";
83
- import "../dropdown/index.js";
84
- import "../empty/index.js";
85
- import "../form/index.js";
86
- import "../grid/index.js";
87
- import "../icon/index.js";
88
- import "../icons/file.js";
89
- import "../image/Image.js";
90
- import "../input/Input.js";
91
- import "../input-number/index.js";
92
- import "../input-tag/InputTag.js";
93
- import "../layout/index.js";
94
- import "../link/index.js";
95
- import "../list/index.js";
96
- import "../mentions/index.js";
97
- import "../menu/Menu.js";
98
- import "../message/index.js";
99
- import "../modal/Modal.js";
100
- import "../notification/index.js";
101
- import "../page-header/index.js";
102
- import "../pagination/Pagination.js";
103
- import "../popconfirm/index.js";
104
- import "../popover/index.js";
105
- import "../portal/index.js";
106
- import "../progress/index.js";
107
- import "../color-picker/index.js";
108
- import "../icon-hover/index.js";
109
- import "../loading/index.js";
110
- import "qrcode.react";
111
- import "../radio/Radio.js";
112
- import "../radio/Group.js";
113
- import "../rate/index.js";
114
- import "../resize-box/index.js";
115
- import "../result/index.js";
116
- import "../segmented/index.js";
117
- import "../select/Select.js";
118
- import "../skeleton/index.js";
119
- import "../slider/index.js";
120
- import "../space/index.js";
121
- import "../speech-synthesis/index.js";
122
- import "../spin/index.js";
123
- import "../statistic/index.js";
124
- import "../steps/index.js";
125
- import "../suspense-fallback-test/index.js";
126
- import "../switch/index.js";
127
- import "../table/index.js";
128
- import "../tabs/Tab.js";
129
- import "../tag/index.js";
130
- import "../time-picker/index.js";
131
- import "../timeline/Timeline.js";
132
- import Z from "../tooltip/index.js";
133
- import "@unicom-cloud/icons/IconUiClose";
134
- import "react-dom";
135
- import "../transfer/index.js";
136
- import "../tree/Tree.js";
137
- import "../tree-select/Select.js";
138
- import "../trigger/index.js";
139
- import "./index.js";
140
- import "../upload/Upload.js";
141
- import "../verification-code/VerificationCode.js";
142
- import "../virtual-list/VirtualList.js";
143
- import "../watermark/Watermark.js";
144
- import tt from "../config-provider/context.js";
145
- const rt = {
59
+ import "@unicom-cloud/utils/constant/keyboardCode";
60
+ import lt from "../config-provider/context.js";
61
+ const pt = {
146
62
  rows: 1,
147
63
  expandable: !0,
148
64
  defaultExpanded: !1
149
- }, ot = (z, it) => {
150
- const $ = I(tt), h = K(
151
- z,
152
- rt,
153
- $.componentConfig?.["Typography.Ellipsis"]
65
+ }, at = (j, mt) => {
66
+ const C = U(lt), N = Z(
67
+ j,
68
+ pt,
69
+ C.componentConfig?.["Typography.Ellipsis"]
154
70
  ), {
155
- className: V,
156
- style: j,
157
- rows: n,
158
- disabled: y,
71
+ className: A,
72
+ style: L,
73
+ rows: l,
74
+ disabled: w,
159
75
  showTooltip: c,
160
- children: s,
161
- expandable: f,
162
- expandRender: O,
163
- onExpand: E,
164
- onEllipsis: R
165
- } = h, { locale: w } = $, A = U ? !1 : /^((?!chrome|android).)*safari/i.test(navigator?.userAgent ?? ""), L = v(null), m = v(null), [g, S] = N(""), [D, b] = N(!1), l = v(null), a = v(null), [r, W] = Q(!1, {
166
- defaultValue: h.defaultExpanded,
167
- value: h.expanded
168
- }), [e, k] = N(!1), u = P(() => T(f) ? !f.single && n === 1 : n === 1, [n, f]), d = P(() => T(c) ? {
76
+ children: y,
77
+ // 潘启宝修改
78
+ expandable: d,
79
+ expandRender: P,
80
+ onExpand: W,
81
+ onEllipsis: k,
82
+ copyable: f
83
+ // 潘启宝添加
84
+ } = N, { locale: B } = C, D = rt ? !1 : /^((?!chrome|android).)*safari/i.test(navigator?.userAgent ?? ""), F = v(null), s = v(null), [O, H] = R(""), [_, E] = R(!1), p = v(null), a = v(null), [e, T] = tt(!1, {
85
+ defaultValue: N.defaultExpanded,
86
+ value: N.expanded
87
+ }), [i, M] = R(!1), x = V(() => b(d) ? !d.single && l === 1 : l === 1, [l, d]), h = V(() => b(c) ? {
169
88
  tooltip: !0,
170
89
  tooltipProps: c
171
90
  } : {
172
91
  tooltip: !!c,
173
92
  tooltipProps: c
174
93
  }, [c]);
175
- M(() => {
176
- if (m.current) {
177
- const i = m.current.textContent;
178
- i && S(i);
94
+ S(() => {
95
+ if (s.current) {
96
+ const o = s.current.textContent;
97
+ o && H(o);
179
98
  }
180
- }, [s, m]);
181
- const t = $.getPrefixCls?.("ellipsis"), H = () => O ? O(r) : /* @__PURE__ */ o("span", { className: `${t}-action-text`, children: r ? w?.Typography.fold : w?.Typography.unfold }), x = () => f && e ? /* @__PURE__ */ o(
99
+ }, [y, s]);
100
+ const t = C.getPrefixCls?.("ellipsis"), u = /* @__PURE__ */ g(K, { children: [
101
+ !!f && // 潘启宝添加
102
+ /* @__PURE__ */ r(
103
+ Y,
104
+ {
105
+ ...b(f) ? f : {},
106
+ text: () => {
107
+ let m = (b(f) ? f : {}).text;
108
+ return st(m) && (m = m()), m || (m = ot(y)), m;
109
+ },
110
+ className: `${t}-action-text-copy`
111
+ }
112
+ ),
113
+ y
114
+ ] }), q = () => P ? P(e) : /* @__PURE__ */ r("span", { className: `${t}-action-text`, children: e ? B?.Typography?.fold : B?.Typography?.unfold }), $ = () => d && i ? /* @__PURE__ */ r(
182
115
  "div",
183
116
  {
184
- className: p(`${t}-action`, {
185
- [`${t}-action-collapsed`]: !r
117
+ className: n(`${t}-action`, {
118
+ [`${t}-action-collapsed`]: !e
186
119
  }),
187
- onClick: (i) => {
188
- r ? (W(!1), E?.(!1, i)) : (W(!0), b(!1), E?.(!0, i));
120
+ onClick: (o) => {
121
+ e ? (T(!1), W?.(!1, o)) : (T(!0), E(!1), W?.(!0, o));
189
122
  },
190
- children: H()
123
+ children: q()
191
124
  }
192
- ) : null, _ = J(
193
- Y(() => {
194
- a.current && l.current && ((u ? a.current.offsetWidth > l.current.offsetWidth : a.current.offsetHeight > l.current.offsetHeight) ? e === !1 && (k(!0), R?.(!0)) : e === !0 && (k(!1), R?.(!1)));
125
+ ) : null, G = X(
126
+ nt(() => {
127
+ a.current && p.current && ((x ? a.current.offsetWidth > p.current.offsetWidth : a.current.offsetHeight > p.current.offsetHeight) ? i === !1 && (M(!0), k?.(!0)) : i === !0 && (M(!1), k?.(!1)));
195
128
  }),
196
- [e, u]
129
+ [i, x]
197
130
  );
198
- M(() => {
199
- const i = X(
200
- [l.current, a.current],
201
- _
131
+ S(() => {
132
+ const o = it(
133
+ [p.current, a.current],
134
+ G
202
135
  );
203
136
  return () => {
204
- i();
137
+ o();
205
138
  };
206
- }, [l.current, a.current]);
207
- const q = () => y ? null : /* @__PURE__ */ o(
139
+ }, [p.current, a.current]);
140
+ const I = () => w ? null : /* @__PURE__ */ r(
208
141
  "div",
209
142
  {
210
- className: u ? p(`${t}-content-mirror`, `${t}-single`) : p(
143
+ className: x ? n(`${t}-content-mirror`, `${t}-single`) : n(
211
144
  `${t}-content-mirror`,
212
145
  `${t}-multiple`,
213
146
  `${t}-collapsed`
@@ -215,75 +148,75 @@ const rt = {
215
148
  style: {
216
149
  WebkitBoxOrient: "vertical",
217
150
  MozBoxOrient: "vertical",
218
- WebkitLineClamp: n
151
+ WebkitLineClamp: l
219
152
  },
220
- ref: l,
221
- children: /* @__PURE__ */ o("span", { ref: a, className: `${t}-text`, children: s })
153
+ ref: p,
154
+ children: /* @__PURE__ */ r("span", { ref: a, className: `${t}-text`, children: u })
222
155
  }
223
- ), B = () => u ? /* @__PURE__ */ o("div", { className: p(`${t}-content`, `${t}-single`), children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : A ? /* @__PURE__ */ C(
156
+ ), z = () => x ? /* @__PURE__ */ r("div", { className: n(`${t}-content`, `${t}-single`), children: /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }) }) : D ? /* @__PURE__ */ g(
224
157
  "div",
225
158
  {
226
- className: p(`${t}-content`, `${t}-multiple`),
227
- title: !d.tooltip && e && !r ? g : void 0,
159
+ className: n(`${t}-content`, `${t}-multiple`),
160
+ title: !h.tooltip && i && !e ? O : void 0,
228
161
  children: [
229
- !r && x(),
230
- /* @__PURE__ */ o(
162
+ !e && $(),
163
+ /* @__PURE__ */ r(
231
164
  "span",
232
165
  {
233
- ref: m,
234
- className: p(`${t}-text`, {
235
- [`${t}-collapsed`]: !r
166
+ ref: s,
167
+ className: n(`${t}-text`, {
168
+ [`${t}-collapsed`]: !e
236
169
  }),
237
170
  style: {
238
171
  WebkitBoxOrient: "vertical",
239
172
  MozBoxOrient: "vertical",
240
- WebkitLineClamp: n
173
+ WebkitLineClamp: l
241
174
  },
242
- children: s
175
+ children: u
243
176
  }
244
177
  ),
245
- r && x()
178
+ e && $()
246
179
  ]
247
180
  }
248
- ) : /* @__PURE__ */ C(
181
+ ) : /* @__PURE__ */ g(
249
182
  "div",
250
183
  {
251
- className: p(`${t}-content`, `${t}-multiple`, {
252
- [`${t}-collapsed`]: !r
184
+ className: n(`${t}-content`, `${t}-multiple`, {
185
+ [`${t}-collapsed`]: !e
253
186
  }),
254
187
  style: {
255
188
  WebkitBoxOrient: "vertical",
256
189
  MozBoxOrient: "vertical",
257
- WebkitLineClamp: n
190
+ WebkitLineClamp: l
258
191
  },
259
- title: !d.tooltip && e && !r ? g : void 0,
192
+ title: !h.tooltip && i && !e ? O : void 0,
260
193
  children: [
261
- !r && x(),
262
- /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }),
263
- r && x()
194
+ !e && $(),
195
+ /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }),
196
+ e && $()
264
197
  ]
265
198
  }
266
- ), F = () => y ? /* @__PURE__ */ o("div", { className: `${t}-content`, children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : d.tooltip ? /* @__PURE__ */ o(
267
- Z,
199
+ ), J = () => w ? /* @__PURE__ */ r("div", { className: `${t}-content`, children: /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }) }) : h.tooltip ? /* @__PURE__ */ r(
200
+ et,
268
201
  {
269
- content: g,
270
- popupVisible: D,
271
- disabled: !e || r,
202
+ content: O,
203
+ popupVisible: _,
204
+ disabled: !i || e,
272
205
  triggerProps: {
273
206
  mouseEnterDelay: 100
274
207
  },
275
- onVisibleChange: (i) => {
276
- i ? e && !r && b(!0) : b(!1);
208
+ onVisibleChange: (o) => {
209
+ o ? i && !e && E(!0) : E(!1);
277
210
  },
278
- ...d.tooltipProps,
279
- children: B()
211
+ ...h.tooltipProps,
212
+ children: z()
280
213
  }
281
- ) : B();
282
- return /* @__PURE__ */ C("div", { ref: L, className: p(t, V), style: j, children: [
283
- q(),
284
- F()
214
+ ) : z();
215
+ return /* @__PURE__ */ g("div", { ref: F, className: n(t, A), style: L, children: [
216
+ I(),
217
+ J()
285
218
  ] });
286
- }, Ho = G(ot);
219
+ }, $e = Q(at);
287
220
  export {
288
- Ho as default
221
+ $e as default
289
222
  };