@unicom-cloud/ui 0.8.99 → 0.8.101
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 +7 -6
- package/Copy.js +49 -2
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +22 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +3 -2
- package/Loading.js +16 -3
- package/Marquee.js +3 -2
- package/QrCode.js +3 -2
- package/Space.js +3 -3
- package/Splitter.js +5 -5
- package/SuspenseFallbackTest.js +2 -4
- package/Tag.js +3 -2
- package/Tour.js +3 -2
- package/alert/index.js +61 -64
- package/anchor/index.js +5 -3
- package/back-top/index.js +32 -33
- package/badge/index.js +19 -18
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +83 -35
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +47 -0
- package/flex/interface.js +1 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +610 -599
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +3 -2
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +3 -2
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +3 -2
- package/segmented/index.js +113 -105
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +135 -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 +6 -115
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- 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 +5 -6
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -3
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +3 -2
- package/types/pc/alert/interface.d.ts +7 -1
- 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/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +7 -19
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +0 -2
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -17
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -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 +16 -0
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- 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/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +63 -50
- 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/list/interface.d.ts +0 -4
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- 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/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -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/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +7 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- 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 -3
- package/types/pc/splitter/interface.d.ts +181 -38
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/Animation.d.ts +1 -1
- 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/Operations.d.ts +1 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +6 -0
- package/types/pc/utils/toArray.d.ts +3 -0
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- 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 +4 -0
- package/utils/toArray.js +5 -0
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import e, { useImperativeHandle as t, useEffect as o } from "react";
|
|
3
|
-
function a(n, r) {
|
|
4
|
-
return t(r, () => ({})), o(() => () => {
|
|
5
|
-
}, []), e.createElement(
|
|
6
|
-
e.lazy(() => new Promise((s, m) => {
|
|
7
|
-
}))
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
const l = e.memo(e.forwardRef(a));
|
|
1
|
+
import a from "../components/common/suspense-fallback-test/index.js";
|
|
11
2
|
export {
|
|
12
|
-
|
|
3
|
+
a as default
|
|
13
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/table/Table.js
CHANGED
|
@@ -49,7 +49,7 @@ function ko(ce, st) {
|
|
|
49
49
|
renderEmpty: at,
|
|
50
50
|
componentConfig: ae,
|
|
51
51
|
rtl: F
|
|
52
|
-
} = fo(Lo),
|
|
52
|
+
} = fo(Lo), m = Ze(
|
|
53
53
|
ce,
|
|
54
54
|
Ho,
|
|
55
55
|
ae?.Table
|
|
@@ -61,10 +61,10 @@ function ko(ce, st) {
|
|
|
61
61
|
style: ft,
|
|
62
62
|
className: dt,
|
|
63
63
|
component: ut,
|
|
64
|
-
border:
|
|
64
|
+
border: b,
|
|
65
65
|
borderCell: fe,
|
|
66
66
|
columns: ve = Ro,
|
|
67
|
-
data:
|
|
67
|
+
data: g = zo,
|
|
68
68
|
scroll: i,
|
|
69
69
|
noDataElement: pt,
|
|
70
70
|
showHeader: mt,
|
|
@@ -84,10 +84,10 @@ function ko(ce, st) {
|
|
|
84
84
|
renderPagination: Le,
|
|
85
85
|
summary: de,
|
|
86
86
|
rowKey: Y
|
|
87
|
-
} =
|
|
88
|
-
() => vo(
|
|
89
|
-
[
|
|
90
|
-
), n = it?.("table"), ue =
|
|
87
|
+
} = m, ze = ne(
|
|
88
|
+
() => vo(g, H),
|
|
89
|
+
[g, H]
|
|
90
|
+
), n = it?.("table"), ue = m.size || (["default", "middle", "small", "mini"].indexOf(Ne) > -1 ? Ne : "default"), D = w(null), u = w(null), pe = w(null), y = w(null), E = w(null), me = w(null), K = w(null), j = w(0), ge = w(!1), [Re, f] = bo(m), { currentFilters: Ct, defaultSorters: xt } = zt(), [O, ye] = V(1), [St, wt] = V(
|
|
91
91
|
N.pageSize || N.defaultPageSize || 10
|
|
92
92
|
), [He, ke] = V(Ct), [Pt, Tt] = V(0), [$t, Ft] = V([]), he = To(f), [Nt, Ee] = Po(
|
|
93
93
|
Re,
|
|
@@ -112,8 +112,8 @@ function ko(ce, st) {
|
|
|
112
112
|
priority: s
|
|
113
113
|
};
|
|
114
114
|
c ? Je(s) ? t.every(
|
|
115
|
-
(
|
|
116
|
-
) && t.push(l) : t.every((
|
|
115
|
+
(h) => Je(h.priority) || !h.direction
|
|
116
|
+
) && t.push(l) : t.every((h) => !h.direction) ? t.push(l) : t = [l] : t.push(l);
|
|
117
117
|
}
|
|
118
118
|
}), { currentFilters: e, defaultSorters: t };
|
|
119
119
|
}
|
|
@@ -151,16 +151,16 @@ function ko(ce, st) {
|
|
|
151
151
|
function Ht(e) {
|
|
152
152
|
const t = function(r, s) {
|
|
153
153
|
return (c, l) => {
|
|
154
|
-
const
|
|
155
|
-
return s === "descend" ? -
|
|
154
|
+
const h = r(c, l);
|
|
155
|
+
return s === "descend" ? -h : h;
|
|
156
156
|
};
|
|
157
157
|
}, o = [...e];
|
|
158
158
|
return o.sort((r, s) => s.priority - r.priority), (r, s) => {
|
|
159
159
|
for (let c = 0, l = o.length; c < l; c++) {
|
|
160
|
-
const { sorterFn:
|
|
161
|
-
if (typeof
|
|
160
|
+
const { sorterFn: h, direction: $e } = o[c];
|
|
161
|
+
if (typeof h != "function")
|
|
162
162
|
continue;
|
|
163
|
-
const re = t(
|
|
163
|
+
const re = t(h, $e)(r, s);
|
|
164
164
|
if (re !== 0)
|
|
165
165
|
return re;
|
|
166
166
|
}
|
|
@@ -221,8 +221,8 @@ function ko(ce, st) {
|
|
|
221
221
|
Object.keys(o).forEach((c) => {
|
|
222
222
|
if (o[c] && o[c].length) {
|
|
223
223
|
const l = Ve(c);
|
|
224
|
-
l && typeof l.onFilter == "function" && (r = r.filter((
|
|
225
|
-
($e, re) => $e || l.onFilter(re,
|
|
224
|
+
l && typeof l.onFilter == "function" && (r = r.filter((h) => o[c].reduce(
|
|
225
|
+
($e, re) => $e || l.onFilter(re, h),
|
|
226
226
|
!1
|
|
227
227
|
)));
|
|
228
228
|
}
|
|
@@ -269,12 +269,12 @@ function ko(ce, st) {
|
|
|
269
269
|
const Z = L(), z = I();
|
|
270
270
|
function I(e = B, t = Z) {
|
|
271
271
|
const { current: o = 0, pageSize: r = 10 } = t;
|
|
272
|
-
return P === !1 || p(P) &&
|
|
272
|
+
return P === !1 || p(P) && g.length <= r ? e : e.slice((o - 1) * r, o * r);
|
|
273
273
|
}
|
|
274
274
|
const We = io(Ie, 100), S = !!(i && i.y), _ = de?.(C(B)), Ce = de && co.isValidElement(_) && _.props.fixed, Et = S && Ce;
|
|
275
275
|
mo(() => {
|
|
276
276
|
Ie(), se(window, "resize", We);
|
|
277
|
-
const e = D.current, t = u.current, o =
|
|
277
|
+
const e = D.current, t = u.current, o = y.current;
|
|
278
278
|
t && se(t, "scroll", R);
|
|
279
279
|
const r = e && e.parentNode;
|
|
280
280
|
return e && r && se(r, "scroll", R), o && se(o, "scroll", R), () => {
|
|
@@ -286,13 +286,13 @@ function ko(ce, st) {
|
|
|
286
286
|
i?.x,
|
|
287
287
|
i?.y,
|
|
288
288
|
f.length,
|
|
289
|
-
|
|
289
|
+
g
|
|
290
290
|
]), et(() => {
|
|
291
|
-
const { total: e, pageSize: t } = L(
|
|
291
|
+
const { total: e, pageSize: t } = L(g);
|
|
292
292
|
Math.ceil(e / t) < O && ye(1);
|
|
293
|
-
}, [
|
|
293
|
+
}, [g?.length]), et(() => {
|
|
294
294
|
ee();
|
|
295
|
-
}, [
|
|
295
|
+
}, [g, G, X, F]), uo(st, () => ({
|
|
296
296
|
getRootDomElement: xe,
|
|
297
297
|
scrollIntoView: (e) => {
|
|
298
298
|
me.current && me.current.scrollTo({ key: e });
|
|
@@ -363,7 +363,7 @@ function ko(ce, st) {
|
|
|
363
363
|
setSelectedRowKeys: Vt,
|
|
364
364
|
allSelectedRowKeys: Mt,
|
|
365
365
|
flattenData: Yt
|
|
366
|
-
} = So(
|
|
366
|
+
} = So(m, z, ze, be);
|
|
367
367
|
function Ve(e) {
|
|
368
368
|
return f.find((t, o) => typeof t.key < "u" ? typeof t.key == "number" && typeof e == "string" ? t.key.toString() === e : t.key === e : typeof t.dataIndex < "u" ? t.dataIndex === e : typeof e == "number" ? o === e : !1);
|
|
369
369
|
}
|
|
@@ -398,7 +398,7 @@ function ko(ce, st) {
|
|
|
398
398
|
}).start();
|
|
399
399
|
}
|
|
400
400
|
function R(e) {
|
|
401
|
-
const { target: t } = e, o = u.current, r = D.current && D.current.parentNode, s =
|
|
401
|
+
const { target: t } = e, o = u.current, r = D.current && D.current.parentNode, s = y.current;
|
|
402
402
|
t.scrollLeft !== j.current && (r && (r.scrollLeft = t.scrollLeft), o && (o.scrollLeft = t.scrollLeft), s && (s.scrollLeft = t.scrollLeft), ee()), j.current = e.target.scrollLeft;
|
|
403
403
|
}
|
|
404
404
|
function qt(e) {
|
|
@@ -406,7 +406,7 @@ function ko(ce, st) {
|
|
|
406
406
|
t.scrollLeft !== j.current && (o.scrollLeft = t.scrollLeft, ee()), j.current = e.target.scrollLeft;
|
|
407
407
|
}
|
|
408
408
|
const [Me, Ut] = xo(
|
|
409
|
-
|
|
409
|
+
m,
|
|
410
410
|
Yt,
|
|
411
411
|
be
|
|
412
412
|
);
|
|
@@ -419,16 +419,16 @@ function ko(ce, st) {
|
|
|
419
419
|
function Gt() {
|
|
420
420
|
requestAnimationFrame((e) => {
|
|
421
421
|
const t = D.current && D.current.parentNode, o = Do(t);
|
|
422
|
-
o && o > 0 && (t.style.marginBottom = `-${o}px`, t.style.paddingBottom = "0px",
|
|
422
|
+
o && o > 0 && (t.style.marginBottom = `-${o}px`, t.style.paddingBottom = "0px", y.current && (y.current.style.marginBottom = `-${o}px`, y.current.style.paddingBottom = "0px")), setTimeout(() => {
|
|
423
423
|
const r = u.current;
|
|
424
|
-
Bo(r) ? (ge.current = !0, t && (t.style.overflowY = "scroll", t.style.scrollSnapType = "y mandatory"),
|
|
424
|
+
Bo(r) ? (ge.current = !0, t && (t.style.overflowY = "scroll", t.style.scrollSnapType = "y mandatory"), y.current && (y.current.style.overflowY = "scroll", y.current.style.overflowY = "y mandatory")) : t && ge.current && (ge.current = !1, t.style.overflowY = "auto", t.style.overflowY = "y mandatory", y.current && (y.current.style.overflowY = "auto", y.current.style.overflowY = "y mandatory"));
|
|
425
425
|
}, 0);
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
const Ke = /* @__PURE__ */ a(
|
|
429
429
|
No,
|
|
430
430
|
{
|
|
431
|
-
...
|
|
431
|
+
...m,
|
|
432
432
|
activeSorters: d,
|
|
433
433
|
currentSorter: W,
|
|
434
434
|
selectedRowKeys: Se,
|
|
@@ -480,7 +480,7 @@ function ko(ce, st) {
|
|
|
480
480
|
), qe = /* @__PURE__ */ a(
|
|
481
481
|
$o,
|
|
482
482
|
{
|
|
483
|
-
...
|
|
483
|
+
...m,
|
|
484
484
|
saveRef: (e) => pe.current = e,
|
|
485
485
|
selectedRowKeys: Se,
|
|
486
486
|
indeterminateKeys: Wt,
|
|
@@ -503,7 +503,7 @@ function ko(ce, st) {
|
|
|
503
503
|
saveVirtualListRef: (e) => {
|
|
504
504
|
v && (me.current = e, u.current = e?.dom);
|
|
505
505
|
},
|
|
506
|
-
___dangerouslySetInnerHTML___:
|
|
506
|
+
___dangerouslySetInnerHTML___: m.___dangerouslySetInnerHTML___
|
|
507
507
|
}
|
|
508
508
|
), Ue = !v && !Et ? /* @__PURE__ */ T(Fe, { children: [
|
|
509
509
|
qe,
|
|
@@ -514,10 +514,10 @@ function ko(ce, st) {
|
|
|
514
514
|
return () => {
|
|
515
515
|
t();
|
|
516
516
|
};
|
|
517
|
-
}, [u.current, pe.current]), Qe(() => (console.table(
|
|
518
|
-
}), [m]), !ve.length) return null;
|
|
517
|
+
}, [u.current, pe.current]), Qe(() => (m.consoleTable && console.table(g), () => {
|
|
518
|
+
}), [g, m.consoleTable]), !ve.length) return null;
|
|
519
519
|
function Jt() {
|
|
520
|
-
const e = p(i) && i.x === "max-content" && !!i.y && A(
|
|
520
|
+
const e = p(i) && i.x === "max-content" && !!i.y && A(g) && g.length > 0;
|
|
521
521
|
return S && !v ? /* @__PURE__ */ a(
|
|
522
522
|
Bt,
|
|
523
523
|
{
|
|
@@ -533,7 +533,7 @@ function ko(ce, st) {
|
|
|
533
533
|
producer: e,
|
|
534
534
|
onSetColumnWidths: Ft,
|
|
535
535
|
expandedRowKeys: Me,
|
|
536
|
-
data:
|
|
536
|
+
data: g
|
|
537
537
|
}
|
|
538
538
|
),
|
|
539
539
|
Ue
|
|
@@ -546,7 +546,7 @@ function ko(ce, st) {
|
|
|
546
546
|
i && p(i) && i.x && (e = {
|
|
547
547
|
width: i.x
|
|
548
548
|
});
|
|
549
|
-
const t = /* @__PURE__ */ a("div", { className: `${n}-tfoot`, ref:
|
|
549
|
+
const t = /* @__PURE__ */ a("div", { className: `${n}-tfoot`, ref: y, children: /* @__PURE__ */ T(q, { style: e, children: [
|
|
550
550
|
/* @__PURE__ */ a(le, { columns: f, prefixCls: n }),
|
|
551
551
|
je
|
|
552
552
|
] }) }), o = _ && S && Ce === "top", r = _ && S && Ce === "bottom", s = /* @__PURE__ */ T(Fe, { children: [
|
|
@@ -571,7 +571,7 @@ function ko(ce, st) {
|
|
|
571
571
|
typeof Be == "function" && /* @__PURE__ */ a("div", { className: `${n}-footer`, children: Be(z) })
|
|
572
572
|
] });
|
|
573
573
|
}
|
|
574
|
-
const Zt = p(
|
|
574
|
+
const Zt = p(b) ? b.wrapper : b, Pe = p(b) ? b.cell : fe, eo = p(b) ? b.cell || b.headerCell : fe, to = p(b) ? b.cell || b.bodyCell : fe, oo = ot(
|
|
575
575
|
n,
|
|
576
576
|
`${n}-size-${ue}`,
|
|
577
577
|
{
|
|
@@ -593,7 +593,7 @@ function ko(ce, st) {
|
|
|
593
593
|
[`${n}-pagination-center`]: x === "topCenter" || x === "bottomCenter",
|
|
594
594
|
[`${n}-pagination-top`]: Te
|
|
595
595
|
});
|
|
596
|
-
let oe =
|
|
596
|
+
let oe = m.loading;
|
|
597
597
|
typeof oe == "boolean" && (oe = { loading: oe });
|
|
598
598
|
const Ge = typeof Le == "function" ? Le(/* @__PURE__ */ a(tt, { ...Z })) : /* @__PURE__ */ a("div", { className: ro, children: /* @__PURE__ */ a(tt, { ...Z }) }), Xe = P !== !1 && (B.length !== 0 || Z.total > 0);
|
|
599
599
|
return /* @__PURE__ */ a(
|
|
@@ -602,7 +602,7 @@ function ko(ce, st) {
|
|
|
602
602
|
ref: E,
|
|
603
603
|
style: ft,
|
|
604
604
|
className: oo,
|
|
605
|
-
...yo(
|
|
605
|
+
...yo(m),
|
|
606
606
|
children: /* @__PURE__ */ T(
|
|
607
607
|
go,
|
|
608
608
|
{
|
|
@@ -1,39 +1,85 @@
|
|
|
1
|
-
import { useState as
|
|
1
|
+
import { useState as b, useEffect as a } from "react";
|
|
2
|
+
import "@unicom-cloud/utils/case-name";
|
|
3
|
+
import "@unicom-cloud/utils/class-name";
|
|
4
|
+
import "../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
5
|
+
import "@unicom-cloud/utils/constant/ui";
|
|
6
|
+
import "../../utils/contextHolder.js";
|
|
7
|
+
import "@unicom-cloud/utils/dayjs";
|
|
8
|
+
import "@unicom-cloud/utils/clipboard-copy";
|
|
9
|
+
import "../../components/common/utils/dayjs.js";
|
|
10
|
+
import "../../components/common/utils/dom.js";
|
|
11
|
+
import "@unicom-cloud/utils/file/fileToURL";
|
|
12
|
+
import "react/jsx-runtime";
|
|
13
|
+
import "lodash/escapeRegExp";
|
|
14
|
+
import "lodash/isArray";
|
|
15
|
+
import "lodash/isNumber";
|
|
16
|
+
import "lodash/isString";
|
|
17
|
+
import "lodash/isFunction";
|
|
18
|
+
import "lodash/throttle";
|
|
2
19
|
import "../../components/common/utils/is.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
20
|
+
import "lodash/camelCase";
|
|
21
|
+
import "lodash/capitalize";
|
|
22
|
+
import "lodash/cloneDeep";
|
|
23
|
+
import "lodash/debounce";
|
|
24
|
+
import "lodash/get";
|
|
25
|
+
import "lodash/has";
|
|
26
|
+
import "lodash/kebabCase";
|
|
27
|
+
import "lodash/merge";
|
|
28
|
+
import "lodash/mergeWith";
|
|
29
|
+
import "lodash/set";
|
|
30
|
+
import "lodash/setWith";
|
|
31
|
+
import "lodash/snakeCase";
|
|
32
|
+
import "lodash/startCase";
|
|
33
|
+
import "lodash/uniq";
|
|
34
|
+
import "lodash/upperFirst";
|
|
35
|
+
import "@unicom-cloud/utils/math";
|
|
36
|
+
import "lodash/isPlainObject";
|
|
37
|
+
import "../../dist/react-transition-group/src/CSSTransition.js";
|
|
38
|
+
import "../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
39
|
+
import "../../dist/react-transition-group/src/SwitchTransition.js";
|
|
40
|
+
import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
41
|
+
import "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
42
|
+
import "../../components/common/utils/reactDOM.js";
|
|
43
|
+
import "@unicom-cloud/utils/file/saveAs";
|
|
44
|
+
import "@unicom-cloud/utils/screenfull";
|
|
45
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
46
|
+
import "react-is";
|
|
47
|
+
import "@unicom-cloud/utils/tree";
|
|
48
|
+
import { isArray as C } from "@unicom-cloud/utils/is";
|
|
49
|
+
import "uuid";
|
|
50
|
+
import "../../dist/validate/src/index.js";
|
|
51
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
|
+
import z from "../th-resizable/index.js";
|
|
53
|
+
function Rt(f = {}, c = []) {
|
|
54
|
+
const { columns: u } = f ?? {}, [d, m] = b(o(u));
|
|
55
|
+
function h(t, i) {
|
|
7
56
|
return {
|
|
8
|
-
column:
|
|
9
|
-
onResize(
|
|
10
|
-
const { column:
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
return
|
|
57
|
+
column: t,
|
|
58
|
+
onResize(p) {
|
|
59
|
+
const { column: r = {}, width: x } = p ?? {};
|
|
60
|
+
m((e) => {
|
|
61
|
+
const l = e.find((n, w, R) => n === r || n.dataIndex === r.dataIndex && n.title == r.title);
|
|
62
|
+
return l ? (l.width = x ?? r.width, o(e)) : e;
|
|
14
63
|
});
|
|
15
64
|
}
|
|
16
65
|
};
|
|
17
66
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
}) :
|
|
67
|
+
function o(t) {
|
|
68
|
+
return C(t) ? t.map((i, s, p) => {
|
|
69
|
+
const r = i;
|
|
70
|
+
return s < p.length - 1 && i.resizable !== !1 && !i.fixed && (r.onHeaderCell = h), r;
|
|
71
|
+
}) : t;
|
|
23
72
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return e ? r(e) : [];
|
|
27
|
-
});
|
|
28
|
-
return p(() => () => {
|
|
73
|
+
return a(() => (m(o(u)), () => {
|
|
74
|
+
}), [...c]), a(() => () => {
|
|
29
75
|
}, []), {
|
|
30
|
-
columns:
|
|
31
|
-
setColumns(
|
|
32
|
-
return
|
|
76
|
+
columns: d,
|
|
77
|
+
setColumns(t) {
|
|
78
|
+
return m(o(t));
|
|
33
79
|
},
|
|
34
|
-
ThResizable:
|
|
80
|
+
ThResizable: z
|
|
35
81
|
};
|
|
36
82
|
}
|
|
37
83
|
export {
|
|
38
|
-
|
|
84
|
+
Rt as default
|
|
39
85
|
};
|
package/table/tbody/Td.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as s, jsxs as re } from "react/jsx-runtime";
|
|
2
|
+
import W from "lodash/get";
|
|
3
3
|
import u from "lodash/isFunction";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import E from "lodash/isPlainObject";
|
|
5
|
+
import C from "lodash/isString";
|
|
6
|
+
import V, { useContext as ie, useRef as h, useMemo as se, useEffect as ce } from "react";
|
|
7
7
|
import "../../config-provider/ConfigProvider.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getOriginData as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { mergedToString as
|
|
14
|
-
import { pick as
|
|
15
|
-
import
|
|
16
|
-
function ue(i) {
|
|
17
|
-
return i && !z.isValidElement(i) && $(i);
|
|
18
|
-
}
|
|
8
|
+
import de from "../../components/common/hooks/useForceUpdate.js";
|
|
9
|
+
import ae from "../hook/useComponent.js";
|
|
10
|
+
import { getOriginData as z } from "../util.js";
|
|
11
|
+
import fe from "../../tooltip/index.js";
|
|
12
|
+
import $ from "@unicom-cloud/utils/class-name";
|
|
13
|
+
import { mergedToString as me } from "../../components/common/utils/mergedToString.js";
|
|
14
|
+
import { pick as pe } from "../../components/common/utils/pick.js";
|
|
15
|
+
import ue from "../../config-provider/context.js";
|
|
19
16
|
function Ce(i) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
return i && !V.isValidElement(i) && E(i);
|
|
18
|
+
}
|
|
19
|
+
function he(i) {
|
|
20
|
+
const N = de(), {
|
|
21
|
+
component: A,
|
|
22
|
+
InnerComponentTd: K,
|
|
23
23
|
column: e,
|
|
24
|
-
columnIndex:
|
|
24
|
+
columnIndex: v,
|
|
25
25
|
prefixCls: l,
|
|
26
|
-
stickyClassName:
|
|
27
|
-
stickyOffset:
|
|
28
|
-
currentSorter:
|
|
29
|
-
virtualized:
|
|
26
|
+
stickyClassName: q,
|
|
27
|
+
stickyOffset: M,
|
|
28
|
+
currentSorter: g,
|
|
29
|
+
virtualized: G,
|
|
30
30
|
record: o,
|
|
31
31
|
trIndex: r,
|
|
32
|
-
level:
|
|
33
|
-
placeholder:
|
|
34
|
-
indentSize:
|
|
35
|
-
renderExpandIcon:
|
|
32
|
+
level: T,
|
|
33
|
+
placeholder: J = "-",
|
|
34
|
+
indentSize: Q,
|
|
35
|
+
renderExpandIcon: X,
|
|
36
36
|
rowKey: y,
|
|
37
|
-
recordHaveChildren:
|
|
38
|
-
haveTreeData:
|
|
39
|
-
} = i, { rtl: R } =
|
|
37
|
+
recordHaveChildren: b,
|
|
38
|
+
haveTreeData: Y
|
|
39
|
+
} = i, { rtl: R } = ie(ue), { ComponentBodyCell: _ } = ae(A), c = h(null), d = h(null), x = h(null), w = h(null), S = e?.tooltip?.show !== !1 && e?.ellipsis, Z = $(
|
|
40
40
|
`${l}-td`,
|
|
41
|
-
|
|
41
|
+
q,
|
|
42
42
|
{
|
|
43
|
-
[`${l}-col-sorted`]:
|
|
43
|
+
[`${l}-col-sorted`]: g && g.direction && g.field === e?.dataIndex
|
|
44
44
|
},
|
|
45
45
|
e?.className,
|
|
46
46
|
u(e?.bodyClassName) ? e.bodyClassName(o, r) : e?.bodyClassName
|
|
47
47
|
);
|
|
48
48
|
let a = {}, k, B, n = {};
|
|
49
|
-
e?.fixed === "left" && (n[R ? "right" : "left"] =
|
|
49
|
+
e?.fixed === "left" && (n[R ? "right" : "left"] = M), e?.fixed === "right" && (n[R ? "left" : "right"] = M), E(e?.cellStyle) && (n = {
|
|
50
50
|
...n,
|
|
51
51
|
...e?.cellStyle
|
|
52
|
-
}),
|
|
52
|
+
}), E(e?.bodyCellStyle) && (n = {
|
|
53
53
|
...n,
|
|
54
54
|
...e?.bodyCellStyle
|
|
55
55
|
}), u(e?.bodyCellStyle) && (n = {
|
|
56
56
|
...n,
|
|
57
57
|
...e?.bodyCellStyle?.(o, r) ?? {}
|
|
58
|
-
}), e?.align && (n.textAlign = e?.align),
|
|
59
|
-
const { onHandleSave:
|
|
58
|
+
}), e?.align && (n.textAlign = e?.align), G && e.width && (n.width = e.width, n.minWidth = e.width, n.maxWidth = e.width);
|
|
59
|
+
const { onHandleSave: ee, ...D } = e?.onCell ? e?.onCell(
|
|
60
60
|
o,
|
|
61
61
|
r,
|
|
62
62
|
e,
|
|
@@ -64,51 +64,51 @@ function Ce(i) {
|
|
|
64
64
|
// 潘启宝添加
|
|
65
65
|
) ?? {} : { onHandleSave: () => {
|
|
66
66
|
} }, H = e?.render;
|
|
67
|
-
let t =
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
let t = se(() => H?.(
|
|
68
|
+
W(o, e?.dataIndex ?? ""),
|
|
69
|
+
z(o),
|
|
70
70
|
r,
|
|
71
71
|
e,
|
|
72
72
|
// 潘启宝添加
|
|
73
73
|
{ rowKey: y }
|
|
74
74
|
// 潘启宝添加
|
|
75
75
|
), [o, e, r]);
|
|
76
|
-
if (u(H) || (t =
|
|
76
|
+
if (u(H) || (t = W(o, e?.dataIndex ?? "")), Ce(t) && (a = t?.props, k = a?.rowSpan, B = a?.colSpan, t = t?.children), k === 0 || B === 0)
|
|
77
77
|
return null;
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
} : {},
|
|
82
|
-
let f =
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
|
|
78
|
+
C(t) && (t = t.trim()), !t && t !== 0 && (t = e?.placeholder ?? J ?? "-");
|
|
79
|
+
const te = e?.ellipsis && C(t) && !S ? {
|
|
80
|
+
title: t
|
|
81
|
+
} : {}, I = Y && e?.$$isFirstColumn, L = I && b;
|
|
82
|
+
let f = I && T > 0 ? Q * T : 0;
|
|
83
|
+
I && !b && (f += 20);
|
|
84
|
+
function ne(p) {
|
|
85
|
+
N();
|
|
86
86
|
}
|
|
87
|
-
const O = `${
|
|
87
|
+
const O = `${v}-${r}-${f}-${L}`, oe = /* @__PURE__ */ s(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
ref: c,
|
|
91
|
-
className:
|
|
91
|
+
className: $(`${l}-cell`, {
|
|
92
92
|
[`${l}-cell-text-ellipsis`]: e?.ellipsis
|
|
93
93
|
}),
|
|
94
|
-
...
|
|
95
|
-
onMouseEnter:
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
|
|
94
|
+
...te,
|
|
95
|
+
onMouseEnter: S ? ne : void 0,
|
|
96
|
+
children: /* @__PURE__ */ re(
|
|
97
|
+
_,
|
|
98
98
|
{
|
|
99
99
|
ref: d,
|
|
100
100
|
className: `${l}-cell-wrap-value`,
|
|
101
|
-
...
|
|
102
|
-
rowData:
|
|
101
|
+
...C(_) ? {} : {
|
|
102
|
+
rowData: z(o),
|
|
103
103
|
column: e,
|
|
104
|
-
onHandleSave:
|
|
104
|
+
onHandleSave: ee,
|
|
105
105
|
...D
|
|
106
106
|
},
|
|
107
107
|
children: [
|
|
108
108
|
!!f && /* @__PURE__ */ s(
|
|
109
109
|
"span",
|
|
110
110
|
{
|
|
111
|
-
ref:
|
|
111
|
+
ref: x,
|
|
112
112
|
className: `${l}-cell-indent`,
|
|
113
113
|
style: { paddingLeft: f }
|
|
114
114
|
}
|
|
@@ -116,12 +116,12 @@ function Ce(i) {
|
|
|
116
116
|
!!L && /* @__PURE__ */ s(
|
|
117
117
|
"span",
|
|
118
118
|
{
|
|
119
|
-
ref:
|
|
119
|
+
ref: w,
|
|
120
120
|
className: `${l}-cell-expand-icon`,
|
|
121
|
-
children:
|
|
121
|
+
children: X(o, y)
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
i.___dangerouslySetInnerHTML___ ? /* @__PURE__ */ s(
|
|
124
|
+
i.___dangerouslySetInnerHTML___ && C(t) ? /* @__PURE__ */ s(
|
|
125
125
|
"span",
|
|
126
126
|
{
|
|
127
127
|
dangerouslySetInnerHTML: {
|
|
@@ -137,11 +137,11 @@ function Ce(i) {
|
|
|
137
137
|
O
|
|
138
138
|
);
|
|
139
139
|
let m = /* @__PURE__ */ s(
|
|
140
|
-
|
|
140
|
+
K,
|
|
141
141
|
{
|
|
142
|
-
className:
|
|
142
|
+
className: Z,
|
|
143
143
|
style: n,
|
|
144
|
-
...
|
|
144
|
+
...pe(D, [
|
|
145
145
|
"onClick",
|
|
146
146
|
"onDoubleClick",
|
|
147
147
|
"onContextMenu",
|
|
@@ -153,29 +153,32 @@ function Ce(i) {
|
|
|
153
153
|
"onMouseUp"
|
|
154
154
|
]),
|
|
155
155
|
...a,
|
|
156
|
-
children:
|
|
156
|
+
children: oe
|
|
157
157
|
},
|
|
158
|
-
e?.key || e?.dataIndex ||
|
|
158
|
+
e?.key || e?.dataIndex || v
|
|
159
159
|
);
|
|
160
|
-
if (
|
|
160
|
+
if (S) {
|
|
161
161
|
let p = 0, P = 0, j = 0, F = 0;
|
|
162
|
-
if (c.current instanceof Element && (p = c.current.getBoundingClientRect().width), d.current instanceof Element && (P = d.current.getBoundingClientRect().width),
|
|
163
|
-
const
|
|
162
|
+
if (c.current instanceof Element && (p = c.current.getBoundingClientRect().width), d.current instanceof Element && (P = d.current.getBoundingClientRect().width), x.current instanceof Element && (j = x.current.getBoundingClientRect().width), w.current instanceof Element && (F = w.current.getBoundingClientRect().width), p < P + j + F) {
|
|
163
|
+
const U = e?.tooltip?.render, le = u(U) ? U(o, r, e) : e?.tooltip?.content ?? me(m);
|
|
164
164
|
m = /* @__PURE__ */ s(
|
|
165
|
-
|
|
165
|
+
fe,
|
|
166
166
|
{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
...e?.tooltip,
|
|
168
|
+
className: $(
|
|
169
|
+
`${l}-cell-tooltip`,
|
|
170
|
+
e?.tooltip?.className
|
|
171
|
+
),
|
|
172
|
+
content: le,
|
|
170
173
|
children: m
|
|
171
174
|
}
|
|
172
175
|
);
|
|
173
176
|
}
|
|
174
177
|
}
|
|
175
|
-
return
|
|
178
|
+
return ce(() => (N(), () => {
|
|
176
179
|
}), [c.current, d.current]), m;
|
|
177
180
|
}
|
|
178
|
-
const
|
|
181
|
+
const ke = V.memo(he);
|
|
179
182
|
export {
|
|
180
|
-
|
|
183
|
+
ke as default
|
|
181
184
|
};
|