bitz-react-admin-ui 2.2.7 → 2.2.8
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/dist/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +89 -121
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +52 -94
- package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +248 -436
- package/dist/components/BitzTable/Table/style.mjs +1 -11
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +145 -253
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +9 -8
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +12 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
const j = ({
|
|
2
|
-
height: v,
|
|
3
|
-
fontFamily: w,
|
|
4
|
-
evenRowBgColor: e,
|
|
5
|
-
colorBgContainer: I,
|
|
6
|
-
table: o,
|
|
7
|
-
gap: R,
|
|
8
|
-
borderColor: u,
|
|
9
|
-
scrollbarWidth: y,
|
|
10
|
-
other: V
|
|
11
|
-
}) => {
|
|
1
|
+
const j = ({ height: v, fontFamily: w, evenRowBgColor: e, colorBgContainer: I, table: o, gap: R, borderColor: u, scrollbarWidth: y, other: V }) => {
|
|
12
2
|
var i, h, g, x, r, n, T, p, s, d, $, H, m, S, C, f, k, z, B, c;
|
|
13
3
|
return {
|
|
14
4
|
height: v,
|
|
@@ -7,17 +7,10 @@ function O(l) {
|
|
|
7
7
|
return o != null && o.isOperationCol || o != null && o.isCheckboxCol || o != null && o.isExpandIconCol || I.includes(o) ? o : (e != null && e.children && (e.children = O(e == null ? void 0 : e.children)), {
|
|
8
8
|
...e,
|
|
9
9
|
sorter: !1,
|
|
10
|
-
render: (c, d, t) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
title: !1,
|
|
15
|
-
paragraph: {
|
|
16
|
-
rows: 1,
|
|
17
|
-
width: (t + 1) % 2 === 0 ? "100%" : "60%"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
)
|
|
10
|
+
render: (c, d, t) => p.jsx(a, { active: !0, title: !1, paragraph: {
|
|
11
|
+
rows: 1,
|
|
12
|
+
width: (t + 1) % 2 === 0 ? "100%" : "60%"
|
|
13
|
+
} })
|
|
21
14
|
});
|
|
22
15
|
});
|
|
23
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Segmented as _, message as
|
|
3
|
-
import { useState as m, useContext as
|
|
2
|
+
import { Segmented as _, message as V } from "antd";
|
|
3
|
+
import { useState as m, useContext as w, useRef as j, useMemo as $ } from "react";
|
|
4
4
|
import { BitzTableContext as ee } from "../../Store/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import A from "../../../BitzButton/index.mjs";
|
|
6
6
|
import te from "../../../BitzTheme/index.mjs";
|
|
7
7
|
import oe from "./StylesConfig/index.mjs";
|
|
8
8
|
import re from "./ColumnsSort/index.mjs";
|
|
@@ -11,49 +11,29 @@ import { BitzConfigContext as ne } from "../../../BitzConfigProvider/context.mjs
|
|
|
11
11
|
import le from "../Modal/index.mjs";
|
|
12
12
|
import ie from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
13
13
|
import ae from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
14
|
-
const fe = "导出设置", he = ({
|
|
15
|
-
open: A,
|
|
16
|
-
title: D,
|
|
17
|
-
onChange: n,
|
|
18
|
-
close: l,
|
|
19
|
-
getContainer: I
|
|
20
|
-
}) => {
|
|
14
|
+
const fe = "导出设置", he = ({ open: H, title: L, onChange: n, close: l, getContainer: I }) => {
|
|
21
15
|
const { token: T } = te.useToken(), [i, a] = m(1), [q, c] = m(!1);
|
|
22
16
|
m(!1);
|
|
23
|
-
const [G, o] = m(!1), {
|
|
24
|
-
|
|
25
|
-
persistenceKey: R,
|
|
26
|
-
onlineChange: u,
|
|
27
|
-
setColumnsMap: N,
|
|
28
|
-
stylesStorageType: P,
|
|
29
|
-
stylesStorageKey: b,
|
|
30
|
-
setTableStylesConfig: p,
|
|
31
|
-
onlineStylesConfigChange: d,
|
|
32
|
-
defaultTableExportConfig: Q,
|
|
33
|
-
exportStorageType: U,
|
|
34
|
-
exportStorageKey: h,
|
|
35
|
-
setTableExportConfig: W,
|
|
36
|
-
onlineExportConfigChange: g
|
|
37
|
-
} = H(ee), r = H(ne).Table, s = j(null), k = j(null), x = j(null), X = async () => {
|
|
38
|
-
var v, z, B, E, F, K, M, O, V;
|
|
17
|
+
const [G, o] = m(!1), { persistenceType: J, persistenceKey: R, onlineChange: u, setColumnsMap: N, stylesStorageType: P, stylesStorageKey: b, setTableStylesConfig: p, onlineStylesConfigChange: g, defaultTableExportConfig: Q, exportStorageType: U, exportStorageKey: h, setTableExportConfig: W, onlineExportConfigChange: d } = w(ee), r = w(ne).Table, s = j(null), k = j(null), x = j(null), X = async () => {
|
|
18
|
+
var B, v, z, D, E, F, K, M, O;
|
|
39
19
|
if (G)
|
|
40
20
|
return;
|
|
41
21
|
o(!0);
|
|
42
|
-
const t = (
|
|
22
|
+
const t = (B = s.current) == null ? void 0 : B.getCheckedKeys();
|
|
43
23
|
if (!(t != null && t.length)) {
|
|
44
|
-
a(2),
|
|
24
|
+
a(2), V.error("表格至少需要显示一列"), o(!1);
|
|
45
25
|
return;
|
|
46
26
|
}
|
|
47
|
-
if (!((
|
|
48
|
-
a(3),
|
|
27
|
+
if (!((v = x.current) == null ? void 0 : v.hasOne())) {
|
|
28
|
+
a(3), V.error("导出设置至少需要一个字段"), o(!1);
|
|
49
29
|
return;
|
|
50
30
|
}
|
|
51
|
-
const y = (
|
|
52
|
-
...(
|
|
53
|
-
...(
|
|
54
|
-
...(
|
|
55
|
-
}, S = ((
|
|
56
|
-
p == null || p(Z), (
|
|
31
|
+
const y = (z = k.current) == null ? void 0 : z.getFormInstance(), f = await (y == null ? void 0 : y.getFieldsValue()), Z = ae(f, "stylesScope"), C = {
|
|
32
|
+
...(D = s.current) == null ? void 0 : D.getLeftSortColumns(),
|
|
33
|
+
...(E = s.current) == null ? void 0 : E.getCenterSortColumns(),
|
|
34
|
+
...(F = s.current) == null ? void 0 : F.getRightSortColumns()
|
|
35
|
+
}, S = ((K = x.current) == null ? void 0 : K.getExportConfig()) ?? Q;
|
|
36
|
+
p == null || p(Z), (M = r == null ? void 0 : r.setStylesScope) == null || M.call(r, f.stylesScope ? "global" : "current"), N(C), W(S), P === "online" && b && (g == null || g(b, f)), J === "online" && R && (u == null || u(R, C)), U === "online" && h && (d == null || d(h, S)), o(!1), n ? (c(!0), (O = n == null ? void 0 : n(f, C, S)) == null || O.finally(() => {
|
|
57
37
|
c(!1), l();
|
|
58
38
|
})) : l();
|
|
59
39
|
};
|
|
@@ -61,62 +41,18 @@ const fe = "导出设置", he = ({
|
|
|
61
41
|
const Y = () => {
|
|
62
42
|
a(1), c(!1), o(!1);
|
|
63
43
|
};
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
type: "primary",
|
|
77
|
-
icon: /* @__PURE__ */ e.jsx(ie, {}),
|
|
78
|
-
onClick: X,
|
|
79
|
-
loading: q,
|
|
80
|
-
children: "保存"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ e.jsx(L, { onClick: l, children: "取消" })
|
|
84
|
-
] }),
|
|
85
|
-
extra: /* @__PURE__ */ e.jsx(
|
|
86
|
-
_,
|
|
87
|
-
{
|
|
88
|
-
size: "large",
|
|
89
|
-
options: [
|
|
90
|
-
{ label: "外观设置", value: 1 },
|
|
91
|
-
{ label: "列设置", value: 2 },
|
|
92
|
-
{ label: fe, value: 3 }
|
|
93
|
-
],
|
|
94
|
-
value: i,
|
|
95
|
-
onChange: a
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
99
|
-
/* @__PURE__ */ e.jsx(oe, { ref: k, display: i === 1 }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
re,
|
|
102
|
-
{
|
|
103
|
-
parentHeight: t,
|
|
104
|
-
ref: s,
|
|
105
|
-
display: i === 2
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
/* @__PURE__ */ e.jsx(
|
|
109
|
-
se,
|
|
110
|
-
{
|
|
111
|
-
parentHeight: t,
|
|
112
|
-
refInstance: x,
|
|
113
|
-
display: i === 3,
|
|
114
|
-
showSelectRadio: !1
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] })
|
|
118
|
-
}
|
|
119
|
-
);
|
|
44
|
+
return e.jsx(le, { open: H, title: L, close: l, closeAfter: Y, getContainer: I, footer: e.jsxs(e.Fragment, { children: [e.jsx(A, {
|
|
45
|
+
type: "primary",
|
|
46
|
+
icon: e.jsx(ie, {}),
|
|
47
|
+
onClick: X,
|
|
48
|
+
// disabled={!isEdit}
|
|
49
|
+
loading: q,
|
|
50
|
+
children: "保存"
|
|
51
|
+
}), e.jsx(A, { onClick: l, children: "取消" })] }), extra: e.jsx(_, { size: "large", options: [
|
|
52
|
+
{ label: "外观设置", value: 1 },
|
|
53
|
+
{ label: "列设置", value: 2 },
|
|
54
|
+
{ label: fe, value: 3 }
|
|
55
|
+
], value: i, onChange: a }), children: (t) => e.jsxs(e.Fragment, { children: [e.jsx(oe, { ref: k, display: i === 1 }), e.jsx(re, { parentHeight: t, ref: s, display: i === 2 }), e.jsx(se, { parentHeight: t, refInstance: x, display: i === 3, showSelectRadio: !1 })] }) });
|
|
120
56
|
};
|
|
121
57
|
export {
|
|
122
58
|
he as default,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import F, { useState as
|
|
3
|
-
import { useSortable as
|
|
4
|
-
import { CSS as
|
|
5
|
-
import { theme as I, Flex as d, Checkbox as
|
|
2
|
+
import F, { useState as M, useMemo as O } from "react";
|
|
3
|
+
import { useSortable as k } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
4
|
+
import { CSS as v } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
|
|
5
|
+
import { theme as I, Flex as d, Checkbox as _, Tooltip as $ } from "antd";
|
|
6
6
|
import q from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
7
7
|
import A from "../../../../../assets/iconfont/IconDragOrder.mjs";
|
|
8
8
|
import x from "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
|
|
@@ -39,51 +39,22 @@ import "../../../../../assets/iconfont/IconShanchu.mjs";
|
|
|
39
39
|
import "../../../../../assets/iconfont/IconTuodong.mjs";
|
|
40
40
|
const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
41
41
|
const { token: s } = I.useToken();
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
getTooltipContainer: (p) => p.parentElement,
|
|
46
|
-
title: e,
|
|
47
|
-
open: r ? !1 : void 0,
|
|
48
|
-
children: /* @__PURE__ */ o.jsx(
|
|
49
|
-
t,
|
|
50
|
-
{
|
|
51
|
-
size: s.fontSize + 4,
|
|
52
|
-
className: n,
|
|
53
|
-
onClick: i
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}, B = ({
|
|
59
|
-
item: t,
|
|
60
|
-
isDragOverlay: n,
|
|
61
|
-
placement: r,
|
|
62
|
-
onLeftClick: e,
|
|
63
|
-
onRightClick: i,
|
|
64
|
-
onCheckboxChange: s
|
|
65
|
-
}) => {
|
|
66
|
-
const {
|
|
67
|
-
attributes: p,
|
|
68
|
-
isDragging: m,
|
|
69
|
-
setNodeRef: S,
|
|
70
|
-
listeners: y,
|
|
71
|
-
transform: N,
|
|
72
|
-
transition: T
|
|
73
|
-
} = O({
|
|
42
|
+
return o.jsx($, { getTooltipContainer: (p) => p.parentElement, title: e, open: r ? !1 : void 0, children: o.jsx(t, { size: s.fontSize + 4, className: n, onClick: i }) });
|
|
43
|
+
}, B = ({ item: t, isDragOverlay: n, placement: r, onLeftClick: e, onRightClick: i, onCheckboxChange: s }) => {
|
|
44
|
+
const { attributes: p, isDragging: m, setNodeRef: S, listeners: y, transform: N, transition: T } = k({
|
|
74
45
|
id: t == null ? void 0 : t.key
|
|
75
46
|
// disabled: item?.disabled,
|
|
76
47
|
}), { token: w } = I.useToken(), z = {
|
|
77
48
|
transition: T,
|
|
78
|
-
transform:
|
|
49
|
+
transform: v.Transform.toString(N),
|
|
79
50
|
...m && {
|
|
80
51
|
opacity: 0.6
|
|
81
52
|
}
|
|
82
53
|
}, D = ({ target: l }) => {
|
|
83
54
|
s == null || s(t.key, l.checked);
|
|
84
|
-
}, [a, E] =
|
|
55
|
+
}, [a, E] = M(!1), c = (l) => {
|
|
85
56
|
E(l);
|
|
86
|
-
}, { text: f, icon: u } =
|
|
57
|
+
}, { text: f, icon: u } = O(() => r === "left" ? {
|
|
87
58
|
text: {
|
|
88
59
|
left: "取消固定",
|
|
89
60
|
right: "固定在右侧"
|
|
@@ -111,64 +82,18 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
111
82
|
right: h
|
|
112
83
|
}
|
|
113
84
|
}, [r]);
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/* @__PURE__ */ o.jsx(d, { align: "center", className: "dragIcon", ...y, children: /* @__PURE__ */ o.jsx(A, { size: w.fontSize + 4 }) }),
|
|
127
|
-
/* @__PURE__ */ o.jsx(
|
|
128
|
-
k,
|
|
129
|
-
{
|
|
130
|
-
checked: t.show,
|
|
131
|
-
onChange: D,
|
|
132
|
-
title: t.title,
|
|
133
|
-
children: t.title
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ o.jsxs(
|
|
137
|
-
d,
|
|
138
|
-
{
|
|
139
|
-
style: {
|
|
140
|
-
height: "100%",
|
|
141
|
-
display: a && !n ? "flex" : "none"
|
|
142
|
-
},
|
|
143
|
-
align: "center",
|
|
144
|
-
className: "operation pointerCursor",
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ o.jsx(
|
|
147
|
-
j,
|
|
148
|
-
{
|
|
149
|
-
className: "leftOperation",
|
|
150
|
-
title: f.left,
|
|
151
|
-
open: m,
|
|
152
|
-
icon: u.left,
|
|
153
|
-
onClick: () => e == null ? void 0 : e(t.key, r)
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
/* @__PURE__ */ o.jsx(
|
|
157
|
-
j,
|
|
158
|
-
{
|
|
159
|
-
className: "rightOperation",
|
|
160
|
-
title: f.right,
|
|
161
|
-
open: m,
|
|
162
|
-
icon: u.right,
|
|
163
|
-
onClick: () => i == null ? void 0 : i(t.key, r)
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
);
|
|
85
|
+
return o.jsxs("div", { className: q({ sortItemDragging: m }, "sortItem", {
|
|
86
|
+
showSortItemOperat: a && !n
|
|
87
|
+
}), style: z, ref: S, onMouseEnter: () => c(!0), onMouseLeave: () => c(!1), ...p, children: [o.jsx(d, { align: "center", className: "dragIcon", ...y, children: o.jsx(A, { size: w.fontSize + 4 }) }), o.jsx(_, {
|
|
88
|
+
checked: t.show,
|
|
89
|
+
// className={checkboxCls}
|
|
90
|
+
onChange: D,
|
|
91
|
+
title: t.title,
|
|
92
|
+
children: t.title
|
|
93
|
+
}), o.jsxs(d, { style: {
|
|
94
|
+
height: "100%",
|
|
95
|
+
display: a && !n ? "flex" : "none"
|
|
96
|
+
}, align: "center", className: "operation pointerCursor", children: [o.jsx(j, { className: "leftOperation", title: f.left, open: m, icon: u.left, onClick: () => e == null ? void 0 : e(t.key, r) }), o.jsx(j, { className: "rightOperation", title: f.right, open: m, icon: u.right, onClick: () => i == null ? void 0 : i(t.key, r) })] })] });
|
|
172
97
|
}, Tt = F.memo(B);
|
|
173
98
|
export {
|
|
174
99
|
Tt as default
|
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { j as s } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { genColumnKey as
|
|
3
|
-
import { DndContext as
|
|
4
|
-
import { restrictToVerticalAxis as
|
|
5
|
-
import { SortableContext as N, verticalListSortingStrategy as O, arrayMove as
|
|
6
|
-
import { Flex as
|
|
7
|
-
import { useMemo as
|
|
8
|
-
import
|
|
2
|
+
import { genColumnKey as S, columnSort as w } from "../../../Store/utils/index.mjs";
|
|
3
|
+
import { DndContext as k, closestCenter as E, DragOverlay as I } from "../../../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
|
|
4
|
+
import { restrictToVerticalAxis as K, restrictToWindowEdges as A } from "../../../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
|
|
5
|
+
import { SortableContext as N, verticalListSortingStrategy as O, arrayMove as R } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
6
|
+
import { Flex as T } from "antd";
|
|
7
|
+
import { useMemo as F, useState as V } from "react";
|
|
8
|
+
import g from "./DndItem.mjs";
|
|
9
9
|
import W from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
10
|
-
const U = ({
|
|
11
|
-
|
|
12
|
-
dataList: t,
|
|
13
|
-
keys: d,
|
|
14
|
-
columnsMap: c,
|
|
15
|
-
onLeftClick: h,
|
|
16
|
-
onRightClick: p,
|
|
17
|
-
onChange: j,
|
|
18
|
-
onMoveEnd: v
|
|
19
|
-
}) => {
|
|
20
|
-
const x = R(() => {
|
|
10
|
+
const U = ({ placement: h, dataList: t, keys: d, columnsMap: c, onLeftClick: u, onRightClick: p, onChange: C, onMoveEnd: D }) => {
|
|
11
|
+
const x = F(() => {
|
|
21
12
|
const e = [];
|
|
22
|
-
return t != null && t.length && (t == null || t.map((
|
|
23
|
-
const { key:
|
|
13
|
+
return t != null && t.length && (t == null || t.map((o) => {
|
|
14
|
+
const { key: r, dataIndex: l, ...m } = o, a = S(o, [r || l].join("-")), n = c[a || "null"];
|
|
24
15
|
return e.push({
|
|
25
16
|
key: a,
|
|
26
17
|
...W(m, ["className"]),
|
|
@@ -28,59 +19,29 @@ const U = ({
|
|
|
28
19
|
disabled: (n == null ? void 0 : n.disabled) === !0,
|
|
29
20
|
show: n == null ? void 0 : n.show
|
|
30
21
|
}), n;
|
|
31
|
-
})), e.sort(
|
|
32
|
-
}, [c, t]), [i, f] = V(-1),
|
|
33
|
-
const { active:
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
const { over:
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
i !==
|
|
22
|
+
})), e.sort(w(c));
|
|
23
|
+
}, [c, t]), [i, f] = V(-1), j = (e) => {
|
|
24
|
+
const { active: o } = e;
|
|
25
|
+
o && f(o.data.current.sortable.index);
|
|
26
|
+
}, v = (e) => {
|
|
27
|
+
const { over: o } = e;
|
|
28
|
+
if (o) {
|
|
29
|
+
const r = o.data.current.sortable.index;
|
|
30
|
+
i !== r && (y(i, r), f(-1));
|
|
40
31
|
}
|
|
41
|
-
},
|
|
42
|
-
const
|
|
32
|
+
}, y = (e, o) => {
|
|
33
|
+
const r = {}, l = R(d, e, o);
|
|
43
34
|
l.forEach((m, a) => {
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
}, b = (e,
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
r[m] = { ...c[m], order: a };
|
|
36
|
+
}), D(r, l);
|
|
37
|
+
}, b = (e, o) => {
|
|
38
|
+
const r = { ...c };
|
|
39
|
+
r[e] = { ...r[e], show: o }, C(
|
|
40
|
+
r
|
|
50
41
|
/*, newCheckedKeys*/
|
|
51
42
|
);
|
|
52
43
|
};
|
|
53
|
-
return
|
|
54
|
-
I,
|
|
55
|
-
{
|
|
56
|
-
modifiers: [k, A],
|
|
57
|
-
collisionDetection: E,
|
|
58
|
-
onDragStart: y,
|
|
59
|
-
onDragEnd: D,
|
|
60
|
-
onDragCancel: () => f(-1),
|
|
61
|
-
children: /* @__PURE__ */ s.jsx(N, { items: d, strategy: O, children: /* @__PURE__ */ s.jsxs(F, { vertical: !0, className: "sortList", children: [
|
|
62
|
-
x.map((e) => /* @__PURE__ */ s.jsx(
|
|
63
|
-
u,
|
|
64
|
-
{
|
|
65
|
-
item: e,
|
|
66
|
-
placement: g,
|
|
67
|
-
onLeftClick: h,
|
|
68
|
-
onRightClick: p,
|
|
69
|
-
onCheckboxChange: b
|
|
70
|
-
},
|
|
71
|
-
e.key
|
|
72
|
-
)),
|
|
73
|
-
/* @__PURE__ */ s.jsx(K, { children: i !== -1 && /* @__PURE__ */ s.jsx(
|
|
74
|
-
u,
|
|
75
|
-
{
|
|
76
|
-
item: x[i],
|
|
77
|
-
isDragOverlay: !0
|
|
78
|
-
},
|
|
79
|
-
x[i].key
|
|
80
|
-
) })
|
|
81
|
-
] }) })
|
|
82
|
-
}
|
|
83
|
-
);
|
|
44
|
+
return s.jsx(k, { modifiers: [K, A], collisionDetection: E, onDragStart: j, onDragEnd: v, onDragCancel: () => f(-1), children: s.jsx(N, { items: d, strategy: O, children: s.jsxs(T, { vertical: !0, className: "sortList", children: [x.map((e) => s.jsx(g, { item: e, placement: h, onLeftClick: u, onRightClick: p, onCheckboxChange: b }, e.key)), s.jsx(I, { children: i !== -1 && s.jsx(g, { item: x[i], isDragOverlay: !0 }, x[i].key) })] }) }) });
|
|
84
45
|
};
|
|
85
46
|
export {
|
|
86
47
|
U as default
|