bitz-react-admin-ui 2.5.7 → 2.5.9

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