bitz-react-admin-ui 2.1.0 → 2.1.1

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 (156) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  4. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  5. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  6. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  11. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  12. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  13. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  14. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  16. package/dist/assets/iconfont/IconMore.mjs +26 -4
  17. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  18. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  19. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  20. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  21. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  22. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  23. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  25. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +41 -8
  32. package/dist/components/BitzAddressBook/index.mjs +122 -35
  33. package/dist/components/BitzAppPage/index.mjs +18 -4
  34. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +23 -9
  37. package/dist/components/BitzCalendar/index.mjs +52 -19
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  39. package/dist/components/BitzCascader/index.mjs +6 -2
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  42. package/dist/components/BitzConfigProvider/index.mjs +9 -18
  43. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +11 -1
  47. package/dist/components/BitzDrawer/index.mjs +17 -2
  48. package/dist/components/BitzEmpty/index.mjs +6 -2
  49. package/dist/components/BitzException/index.mjs +6 -1
  50. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  51. package/dist/components/BitzFluentInput/index.mjs +23 -4
  52. package/dist/components/BitzFluentSelect/index.mjs +24 -5
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  62. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  63. package/dist/components/BitzFullScreen/index.mjs +9 -6
  64. package/dist/components/BitzHighlight/Child.mjs +23 -9
  65. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  66. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  67. package/dist/components/BitzHighlight/style.mjs +4 -1
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +12 -5
  70. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  71. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  72. package/dist/components/BitzList/List.mjs +17 -3
  73. package/dist/components/BitzList/LoadMore.mjs +29 -20
  74. package/dist/components/BitzLoadMore/index.mjs +34 -14
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  76. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +24 -11
  79. package/dist/components/BitzNoData/index.mjs +4 -1
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  82. package/dist/components/BitzPageContainer/index.mjs +107 -46
  83. package/dist/components/BitzPageHeader/index.mjs +89 -21
  84. package/dist/components/BitzPagination/index.mjs +62 -14
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  87. package/dist/components/BitzQRCode/index.mjs +6 -1
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  91. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  92. package/dist/components/BitzRefresh/index.mjs +5 -1
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +31 -1
  99. package/dist/components/BitzSwitch/index.mjs +7 -2
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  105. package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
  106. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  107. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  108. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  112. package/dist/components/BitzTable/Store/index.mjs +68 -45
  113. package/dist/components/BitzTable/Table/index.mjs +305 -145
  114. package/dist/components/BitzTable/Table/style.mjs +10 -1
  115. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  116. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -47
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +29 -8
  124. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
  125. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  126. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
  127. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +52 -9
  128. package/dist/components/BitzTableOperations/index.mjs +13 -3
  129. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  130. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  131. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
  132. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
  133. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  134. package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
  135. package/dist/components/BitzTableSelect/index.mjs +61 -13
  136. package/dist/components/BitzTag/index.mjs +1 -1
  137. package/dist/components/BitzTheme/index.mjs +6 -6
  138. package/dist/components/BitzTimeline/index.mjs +11 -1
  139. package/dist/components/BitzTimer/Form.mjs +32 -11
  140. package/dist/components/BitzTimer/Timer.mjs +76 -38
  141. package/dist/components/BitzTimer/index.mjs +66 -43
  142. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  143. package/dist/components/BitzToast/index.mjs +1 -1
  144. package/dist/components/BitzTree/index.mjs +4 -1
  145. package/dist/components/BitzUeEditor/index.mjs +5 -5
  146. package/dist/components/BitzUpload/index.mjs +81 -43
  147. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  148. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  149. package/dist/hooks/use-event-listener.mjs +11 -2
  150. package/dist/hooks/use-lock-fn.mjs +13 -10
  151. package/dist/hooks/use-scroll-parent.mjs +16 -14
  152. package/dist/hooks/useEvent.mjs +7 -4
  153. package/dist/hooks/useMergedState.mjs +11 -11
  154. package/dist/style.css +1 -1
  155. package/dist/utils/create.mjs +7 -1
  156. package/package.json +1 -1
@@ -1,6 +1,36 @@
1
1
  import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { Skeleton as n } from "antd";
3
- const o = (t) => e.jsx(n, { ...t }), r = (t) => e.jsx(n.Button, { ...t }), s = (t) => e.jsx(n.Avatar, { ...t }), a = (t) => e.jsx(n.Input, { ...t }), u = (t) => e.jsx(n.Image, { ...t }), l = (t) => e.jsx(n.Node, { ...t });
3
+ const o = (t) => /* @__PURE__ */ e.jsx(
4
+ n,
5
+ {
6
+ ...t
7
+ }
8
+ ), r = (t) => /* @__PURE__ */ e.jsx(
9
+ n.Button,
10
+ {
11
+ ...t
12
+ }
13
+ ), s = (t) => /* @__PURE__ */ e.jsx(
14
+ n.Avatar,
15
+ {
16
+ ...t
17
+ }
18
+ ), a = (t) => /* @__PURE__ */ e.jsx(
19
+ n.Input,
20
+ {
21
+ ...t
22
+ }
23
+ ), u = (t) => /* @__PURE__ */ e.jsx(
24
+ n.Image,
25
+ {
26
+ ...t
27
+ }
28
+ ), l = (t) => /* @__PURE__ */ e.jsx(
29
+ n.Node,
30
+ {
31
+ ...t
32
+ }
33
+ );
4
34
  o.Button = r;
5
35
  o.Avatar = s;
6
36
  o.Input = a;
@@ -1,13 +1,18 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { Switch as p } from "antd";
3
- const n = ({ checkedChildren: t = "开启", unCheckedChildren: r = "关闭", defaultChecked: o = !0, ...s }) => {
3
+ const n = ({
4
+ checkedChildren: t = "开启",
5
+ unCheckedChildren: r = "关闭",
6
+ defaultChecked: o = !0,
7
+ ...s
8
+ }) => {
4
9
  const e = {
5
10
  checkedChildren: t,
6
11
  unCheckedChildren: r,
7
12
  defaultChecked: o,
8
13
  ...s
9
14
  };
10
- return i.jsx(p, { ...e });
15
+ return /* @__PURE__ */ i.jsx(p, { ...e });
11
16
  };
12
17
  export {
13
18
  n as default
@@ -1,20 +1,37 @@
1
- import { j as u } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
1
+ import { j as f } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import r from "react";
3
3
  import "./index.less.mjs";
4
4
  import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const k = r.forwardRef((t, o) => {
6
- const { value: a, zIndex: n = 1, route: i, fixed: s = !0, border: c = !0, safeAreaInsetBottom: l = !0, onChange: b, children: d } = t, m = {
6
+ const {
7
+ value: a,
8
+ zIndex: n = 1,
9
+ route: i,
10
+ fixed: s = !0,
11
+ border: c = !0,
12
+ safeAreaInsetBottom: l = !0,
13
+ onChange: b,
14
+ children: d
15
+ } = t, m = {
7
16
  ...i ? {} : {},
8
17
  currentName: a,
9
18
  onClick: (e) => {
10
19
  b(e);
11
20
  }
12
- }, f = (e) => r.cloneElement(e, m);
13
- return u.jsx("div", { ref: o, className: p("bitzTabbarBlock", {
14
- bitzTabbarFixedBlock: s,
15
- bitzTabbarBlockBorder: c,
16
- bitzTabbarBlockBottomSafe: l
17
- }), style: { zIndex: n }, children: r.Children.map(d, f) });
21
+ }, u = (e) => r.cloneElement(e, m);
22
+ return /* @__PURE__ */ f.jsx(
23
+ "div",
24
+ {
25
+ ref: o,
26
+ className: p("bitzTabbarBlock", {
27
+ bitzTabbarFixedBlock: s,
28
+ bitzTabbarBlockBorder: c,
29
+ bitzTabbarBlockBottomSafe: l
30
+ }),
31
+ style: { zIndex: n },
32
+ children: r.Children.map(d, u)
33
+ }
34
+ );
18
35
  });
19
36
  export {
20
37
  k as default
@@ -5,7 +5,10 @@ import j from "../../assets/iconfont/index.mjs";
5
5
  import "./index.less.mjs";
6
6
  const y = ({ name: o, config: t, title: n, children: l, badgeProps: m, ...v }) => {
7
7
  const { onClick: I, currentName: e } = v, a = s.useToken().token.colorPrimary, i = s.useToken().token.colorText, x = c(() => t[o === e ? "activeIcon" : "inactiveIcon"], [t, e, o]), d = c(() => o === e ? t.activeColor : t.inactiveColor, [t.activeColor, t.inactiveColor, e, o]), u = c(() => o === e ? a : i, [a, e, o, i]), b = c(() => t[o === e ? "activeImage" : "inactiveImage"], [t, e, o]);
8
- return r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [r.jsx("div", { className: `${"activeIcon" in t ? "tabbarItemIcon" : "tabbarItemImage"}`, children: r.jsx(C, { ...m, children: r.jsx("div", { className: "activeIcon" in t ? "icon" : "image", children: "activeIcon" in t ? r.jsx(j, { name: x, color: d, size: 22 }) : r.jsx("img", { src: b }) }) }) }), r.jsx("div", { className: "tabbarItemText", style: { color: u }, children: n || l })] });
8
+ return /* @__PURE__ */ r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
9
+ /* @__PURE__ */ r.jsx("div", { className: `${"activeIcon" in t ? "tabbarItemIcon" : "tabbarItemImage"}`, children: /* @__PURE__ */ r.jsx(C, { ...m, children: /* @__PURE__ */ r.jsx("div", { className: "activeIcon" in t ? "icon" : "image", children: "activeIcon" in t ? /* @__PURE__ */ r.jsx(j, { name: x, color: d, size: 22 }) : /* @__PURE__ */ r.jsx("img", { src: b }) }) }) }),
10
+ /* @__PURE__ */ r.jsx("div", { className: "tabbarItemText", style: { color: u }, children: n || l })
11
+ ] });
9
12
  };
10
13
  export {
11
14
  y as default
@@ -6,7 +6,12 @@ import c from "./style.mjs";
6
6
  import g from "../Dropdown/index.mjs";
7
7
  import w from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
8
8
  import B from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
9
- const G = ({ size: h, add: i, excel: t, children: d }) => {
9
+ const G = ({
10
+ size: h,
11
+ add: i,
12
+ excel: t,
13
+ children: d
14
+ }) => {
10
15
  const { blockCls: j, addBtnClassName: k, btnClassName: C } = c(h), y = b(() => {
11
16
  var s, r, n, m, a, l, p, e;
12
17
  return [
@@ -27,10 +32,33 @@ const G = ({ size: h, add: i, excel: t, children: d }) => {
27
32
  ...(t == null ? void 0 : t.otherMenu) ?? []
28
33
  ];
29
34
  }, [t]);
30
- return o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [i.show !== !1 && o.jsx(f, { type: "primary", icon: o.jsx(w, {}), onClick: i.onClick, className: k, children: i.text }), d, t.show !== !1 && o.jsx(g, { menu: { items: y, onClick: ({ key: s }) => {
31
- var r;
32
- return (r = t.onClick) == null ? void 0 : r.call(t, s);
33
- } }, trigger: (t == null ? void 0 : t.trigger) || ["click"], children: o.jsx(f, { className: C, type: "text", children: o.jsxs(u, { size: 6, children: [o.jsx("span", { children: t.text ?? "Excel文档导入" }), o.jsx(B, {})] }) }) })] });
35
+ return /* @__PURE__ */ o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [
36
+ i.show !== !1 && /* @__PURE__ */ o.jsx(
37
+ f,
38
+ {
39
+ type: "primary",
40
+ icon: /* @__PURE__ */ o.jsx(w, {}),
41
+ onClick: i.onClick,
42
+ className: k,
43
+ children: i.text
44
+ }
45
+ ),
46
+ d,
47
+ t.show !== !1 && /* @__PURE__ */ o.jsx(
48
+ g,
49
+ {
50
+ menu: { items: y, onClick: ({ key: s }) => {
51
+ var r;
52
+ return (r = t.onClick) == null ? void 0 : r.call(t, s);
53
+ } },
54
+ trigger: (t == null ? void 0 : t.trigger) || ["click"],
55
+ children: /* @__PURE__ */ o.jsx(f, { className: C, type: "text", children: /* @__PURE__ */ o.jsxs(u, { size: 6, children: [
56
+ /* @__PURE__ */ o.jsx("span", { children: t.text ?? "Excel文档导入" }),
57
+ /* @__PURE__ */ o.jsx(B, {})
58
+ ] }) })
59
+ }
60
+ )
61
+ ] });
34
62
  };
35
63
  export {
36
64
  G as default
@@ -3,7 +3,7 @@ import e from "../../BitzButton/index.mjs";
3
3
  import r from "./style.mjs";
4
4
  const i = ({ ...t }) => {
5
5
  const { btnClassName: o } = r();
6
- return s.jsx(e, { className: o, type: "text", ...t });
6
+ return /* @__PURE__ */ s.jsx(e, { className: o, type: "text", ...t });
7
7
  };
8
8
  export {
9
9
  i as default
@@ -72,15 +72,18 @@ const Q = (m) => {
72
72
  }
73
73
  }
74
74
  ];
75
- A({
76
- theme: g,
77
- token: i,
78
- hashId: n,
79
- path: [r]
80
- }, () => [
81
- B(r, a, c, i),
82
- h(r, p, i)
83
- ]);
75
+ A(
76
+ {
77
+ theme: g,
78
+ token: i,
79
+ hashId: n,
80
+ path: [r]
81
+ },
82
+ () => [
83
+ B(r, a, c, i),
84
+ h(r, p, i)
85
+ ]
86
+ );
84
87
  const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
85
88
  return { blockCls: r, addBtnClassName: x, btnClassName: y };
86
89
  };
@@ -5,27 +5,92 @@ import { useRef as y, useMemo as C } from "react";
5
5
  import p from "../../BitzButton/index.mjs";
6
6
  import k from "./style.mjs";
7
7
  import N from "../Dropdown/index.mjs";
8
- const g = ({ skeletonCls: n, ...s }) => t.jsxs(p, { type: "text", ...s, children: [t.jsx("span", { children: s.children }), t.jsx(w, { active: !0, title: !1, className: n, paragraph: {
9
- rows: 1,
10
- width: "100%"
11
- } })] });
12
- function z({ loading: n, actionGroup: s, refInstance: d }) {
13
- const { gap: h, primaryBtnClassName: i, dangerBtnClassName: o, dropdownBtnClassName: l, maskClassName: m, skeletonBtnClassName: u, skeletonClassName: x } = k(), f = C(() => {
8
+ const g = ({
9
+ skeletonCls: n,
10
+ ...s
11
+ }) => /* @__PURE__ */ t.jsxs(p, { type: "text", ...s, children: [
12
+ /* @__PURE__ */ t.jsx("span", { children: s.children }),
13
+ /* @__PURE__ */ t.jsx(
14
+ w,
15
+ {
16
+ active: !0,
17
+ title: !1,
18
+ className: n,
19
+ paragraph: {
20
+ rows: 1,
21
+ width: "100%"
22
+ }
23
+ }
24
+ )
25
+ ] });
26
+ function z({
27
+ loading: n,
28
+ actionGroup: s,
29
+ refInstance: m
30
+ }) {
31
+ const {
32
+ gap: h,
33
+ primaryBtnClassName: i,
34
+ dangerBtnClassName: o,
35
+ dropdownBtnClassName: l,
36
+ maskClassName: d,
37
+ skeletonBtnClassName: u,
38
+ skeletonClassName: x
39
+ } = k(), f = C(() => {
14
40
  const r = s.length >= 4 ? 2 : s.length, a = s.slice(0, r), c = [];
15
41
  if (a != null && a.length && a.forEach((e, j) => {
16
- c.push(n ? t.jsx(g, { className: u, skeletonCls: x, children: e == null ? void 0 : e.label }, j) : e.children ? t.jsx(N, { menu: { items: e.children }, children: t.jsx(p, { type: "text", className: e.danger ? o : i, children: e == null ? void 0 : e.label }) }, j) : t.jsx(p, { type: "text", className: e.danger ? o : i, onClick: e == null ? void 0 : e.onClick, children: e == null ? void 0 : e.label }, j));
42
+ c.push(
43
+ n ? /* @__PURE__ */ t.jsx(
44
+ g,
45
+ {
46
+ className: u,
47
+ skeletonCls: x,
48
+ children: e == null ? void 0 : e.label
49
+ },
50
+ j
51
+ ) : e.children ? /* @__PURE__ */ t.jsx(N, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
52
+ p,
53
+ {
54
+ type: "text",
55
+ className: e.danger ? o : i,
56
+ children: e == null ? void 0 : e.label
57
+ }
58
+ ) }, j) : /* @__PURE__ */ t.jsx(
59
+ p,
60
+ {
61
+ type: "text",
62
+ className: e.danger ? o : i,
63
+ onClick: e == null ? void 0 : e.onClick,
64
+ children: e == null ? void 0 : e.label
65
+ },
66
+ j
67
+ )
68
+ );
17
69
  }), r === 2 && s.length >= 4) {
18
70
  const e = s.slice(2, s.length);
19
- c.push(n ? t.jsx(g, { className: u, skeletonCls: x, children: "更多" }, 5) : t.jsx(N, { menu: { items: e }, children: t.jsx(p, { type: "text", className: l, children: "更多" }) }, 5));
71
+ c.push(
72
+ n ? /* @__PURE__ */ t.jsx(
73
+ g,
74
+ {
75
+ className: u,
76
+ skeletonCls: x,
77
+ children: "更多"
78
+ },
79
+ 5
80
+ ) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(p, { type: "text", className: l, children: "更多" }) }, 5)
81
+ );
20
82
  }
21
83
  return c;
22
84
  }, [n, s]);
23
- return t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [t.jsx(B, { size: h, ref: d, className: "actionGroup", children: f }), t.jsx("div", { className: m })] });
85
+ return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
86
+ /* @__PURE__ */ t.jsx(B, { size: h, ref: m, className: "actionGroup", children: f }),
87
+ /* @__PURE__ */ t.jsx("div", { className: d })
88
+ ] });
24
89
  }
25
- function T(n) {
26
- const { actionGroup: s, loading: d, ...h } = n, { gap: i } = k(), o = y(null), l = b(o), m = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
90
+ function D(n) {
91
+ const { actionGroup: s, loading: m, ...h } = n, { gap: i } = k(), o = y(null), l = b(o), d = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
27
92
  return C(() => ({
28
- width: Math.floor(m),
93
+ width: Math.floor(d),
29
94
  mobileHide: !0,
30
95
  isOperationCol: !0,
31
96
  title: "操作",
@@ -35,13 +100,22 @@ function T(n) {
35
100
  className: "operationCol",
36
101
  disabled: !0,
37
102
  render: (x, f, r) => {
38
- const a = s(f, r).filter((c) => c.type != "detail");
39
- return t.jsx(z, { loading: d, actionGroup: a, refInstance: o });
103
+ const a = s(f, r).filter(
104
+ (c) => c.type != "detail"
105
+ );
106
+ return /* @__PURE__ */ t.jsx(
107
+ z,
108
+ {
109
+ loading: m,
110
+ actionGroup: a,
111
+ refInstance: o
112
+ }
113
+ );
40
114
  },
41
115
  ...h
42
- }), [m, o, d, s]);
116
+ }), [d, o, m, s]);
43
117
  }
44
118
  export {
45
119
  z as BitzTableAction,
46
- T as default
120
+ D as default
47
121
  };
@@ -98,18 +98,21 @@ const Q = () => {
98
98
  }
99
99
  }
100
100
  ];
101
- T({
102
- theme: h,
103
- token: s,
104
- hashId: r,
105
- path: [e]
106
- }, () => [
107
- g(e, d),
108
- u(a, s),
109
- v(l, s),
110
- C(c, s),
111
- y(m, p)
112
- ]);
101
+ T(
102
+ {
103
+ theme: h,
104
+ token: s,
105
+ hashId: r,
106
+ path: [e]
107
+ },
108
+ () => [
109
+ g(e, d),
110
+ u(a, s),
111
+ v(l, s),
112
+ C(c, s),
113
+ y(m, p)
114
+ ]
115
+ );
113
116
  const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), z = n(d, r);
114
117
  return {
115
118
  gap: B,
@@ -7,7 +7,14 @@ const p = (o, s) => o == null ? void 0 : o.map((t) => {
7
7
  return r != null && r.children && (r.children = p(r == null ? void 0 : r.children, s), r.popupClassName = s), r;
8
8
  }), m = ({ menu: o, ...s }) => {
9
9
  const { popupClassName: t } = c(), r = d(() => p(o == null ? void 0 : o.items, t), [o == null ? void 0 : o.items]);
10
- return a.jsx(e, { ...s, menu: { ...o, items: r }, overlayClassName: t });
10
+ return /* @__PURE__ */ a.jsx(
11
+ e,
12
+ {
13
+ ...s,
14
+ menu: { ...o, items: r },
15
+ overlayClassName: t
16
+ }
17
+ );
11
18
  };
12
19
  export {
13
20
  m as default
@@ -89,12 +89,15 @@ const P = () => {
89
89
  }
90
90
  ];
91
91
  };
92
- C({
93
- theme: c,
94
- token: a,
95
- hashId: i,
96
- path: [o]
97
- }, () => [w(o, m, a)]);
92
+ C(
93
+ {
94
+ theme: c,
95
+ token: a,
96
+ hashId: i,
97
+ path: [o]
98
+ },
99
+ () => [w(o, m, a)]
100
+ );
98
101
  const h = `${T}${m}`;
99
102
  return {
100
103
  popupClassName: y(o, h, i)
@@ -1,22 +1,40 @@
1
- import { j as r } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import c from "../../BitzButton/index.mjs";
1
+ import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import a from "../../BitzButton/index.mjs";
3
3
  import d from "../../BitzConvert/index.mjs";
4
4
  import { Space as x } from "antd";
5
5
  import { useMemo as h } from "react";
6
- import l from "./style.mjs";
6
+ import c from "./style.mjs";
7
7
  import j from "../Dropdown/style.mjs";
8
8
  import m from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
9
- const p = (t, s) => t == null ? void 0 : t.map((e) => {
10
- const o = { ...e };
11
- return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
12
- }), w = ({ ...t }) => {
13
- const { btnClassName: s } = l();
14
- return r.jsx(c, { className: s, type: "text", ...t });
15
- }, b = ({ menu: t, children: s, showTootip: e, tipText: o }) => {
16
- const { btnClassName: a } = l(), { popupClassName: i } = j(), n = h(() => p(t == null ? void 0 : t.items, i), [t == null ? void 0 : t.items]);
17
- return r.jsx(d.DropdownToButton, { menu: { ...t, items: n }, overlayClassName: i, trigger: ["click"], showTootip: e, tipText: o, children: r.jsx(c, { className: a, type: "text", children: r.jsxs(x, { size: 2, children: [(t == null ? void 0 : t.items) && t.items.length > 1 && r.jsxs(r.Fragment, { children: [r.jsx("span", { children: s }), r.jsx(m, {})] }), (t == null ? void 0 : t.items) && t.items.length === 1 && r.jsx("span", { children: t.items[0].label })] }) }) });
9
+ const l = (t, o) => t == null ? void 0 : t.map((e) => {
10
+ const r = { ...e };
11
+ return r != null && r.children && (r.children = l(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
12
+ }), b = ({
13
+ ...t
14
+ }) => {
15
+ const { btnClassName: o } = c();
16
+ return /* @__PURE__ */ s.jsx(a, { className: o, type: "text", ...t });
17
+ }, w = ({ menu: t, children: o, showTootip: e, tipText: r }) => {
18
+ const { btnClassName: p } = c(), { popupClassName: i } = j(), n = h(() => l(t == null ? void 0 : t.items, i), [t == null ? void 0 : t.items]);
19
+ return /* @__PURE__ */ s.jsx(
20
+ d.DropdownToButton,
21
+ {
22
+ menu: { ...t, items: n },
23
+ overlayClassName: i,
24
+ trigger: ["click"],
25
+ showTootip: e,
26
+ tipText: r,
27
+ children: /* @__PURE__ */ s.jsx(a, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(x, { size: 2, children: [
28
+ (t == null ? void 0 : t.items) && t.items.length > 1 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
29
+ /* @__PURE__ */ s.jsx("span", { children: o }),
30
+ /* @__PURE__ */ s.jsx(m, {})
31
+ ] }),
32
+ (t == null ? void 0 : t.items) && t.items.length === 1 && /* @__PURE__ */ s.jsx("span", { children: t.items[0].label })
33
+ ] }) })
34
+ }
35
+ );
18
36
  };
19
37
  export {
20
- w as BitzSelectionBarButton,
21
- b as BitzSelectionBarDropdownButton
38
+ b as BitzSelectionBarButton,
39
+ w as BitzSelectionBarDropdownButton
22
40
  };
@@ -1,15 +1,47 @@
1
1
  import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import u from "../../BitzButton/index.mjs";
2
+ import d from "../../BitzButton/index.mjs";
3
3
  import { Space as t, Flex as l } from "antd";
4
- import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
- import { useMemo as j } from "react";
6
- import h from "./style.mjs";
7
- const y = ({ show: e, num: a, onClear: r, children: n }) => {
8
- const { blockClassName: i, showCls: o, btnClassName: c, batchOperationClassName: m, alertContentClassName: p } = h(), x = j(() => d(i, {
4
+ import j from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
+ import { useMemo as h } from "react";
6
+ import C from "./style.mjs";
7
+ const B = ({
8
+ show: e,
9
+ num: a,
10
+ onClear: r,
11
+ children: n
12
+ }) => {
13
+ const {
14
+ blockClassName: i,
15
+ showCls: o,
16
+ btnClassName: c,
17
+ batchOperationClassName: m,
18
+ alertContentClassName: p
19
+ } = C(), x = h(() => j(i, {
9
20
  [`${o}`]: e
10
21
  }), [e]);
11
- return s.jsxs("div", { className: x, children: [s.jsx(t.Compact, { className: m, children: n || s.jsx("div", {}) }), s.jsxs(l, { gap: 7, className: p, children: [s.jsxs(l, { gap: 20, align: "center", children: [s.jsxs(t, { size: 10, children: [s.jsx("span", { children: "已选中" }), s.jsx("strong", { children: a ?? 0 })] }), s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })] }), s.jsx(u, { type: "text", className: c, onClick: r, style: { lineHeight: "normal" }, children: "取消选中" })] })] });
22
+ return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
23
+ /* @__PURE__ */ s.jsx(t.Compact, { className: m, children: n || /* @__PURE__ */ s.jsx("div", {}) }),
24
+ /* @__PURE__ */ s.jsxs(l, { gap: 7, className: p, children: [
25
+ /* @__PURE__ */ s.jsxs(l, { gap: 20, align: "center", children: [
26
+ /* @__PURE__ */ s.jsxs(t, { size: 10, children: [
27
+ /* @__PURE__ */ s.jsx("span", { children: "已选中" }),
28
+ /* @__PURE__ */ s.jsx("strong", { children: a ?? 0 })
29
+ ] }),
30
+ /* @__PURE__ */ s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })
31
+ ] }),
32
+ /* @__PURE__ */ s.jsx(
33
+ d,
34
+ {
35
+ type: "text",
36
+ className: c,
37
+ onClick: r,
38
+ style: { lineHeight: "normal" },
39
+ children: "取消选中"
40
+ }
41
+ )
42
+ ] })
43
+ ] });
12
44
  };
13
45
  export {
14
- y as default
46
+ B as default
15
47
  };
@@ -98,14 +98,24 @@ const V = () => {
98
98
  }
99
99
  ];
100
100
  };
101
- G({
102
- theme: b,
103
- token: i,
104
- hashId: o,
105
- path: [r]
106
- }, () => [
107
- g(r, l, s, m, f, i)
108
- ]);
101
+ G(
102
+ {
103
+ theme: b,
104
+ token: i,
105
+ hashId: o,
106
+ path: [r]
107
+ },
108
+ () => [
109
+ g(
110
+ r,
111
+ l,
112
+ s,
113
+ m,
114
+ f,
115
+ i
116
+ )
117
+ ]
118
+ );
109
119
  const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
110
120
  return {
111
121
  blockClassName: d,