bitz-react-admin-ui 2.7.10 → 2.8.0

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 (184) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +4 -25
  2. package/dist/assets/iconfont/IconClose.mjs +3 -24
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
  6. package/dist/assets/iconfont/IconCuowu.mjs +2 -23
  7. package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
  8. package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
  9. package/dist/assets/iconfont/IconFabu.mjs +5 -35
  10. package/dist/assets/iconfont/IconFanhui.mjs +4 -25
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
  15. package/dist/assets/iconfont/IconIcon21.mjs +4 -25
  16. package/dist/assets/iconfont/IconJincoude.mjs +4 -25
  17. package/dist/assets/iconfont/IconJinggao.mjs +4 -25
  18. package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
  20. package/dist/assets/iconfont/IconMore.mjs +4 -41
  21. package/dist/assets/iconfont/IconShanchu.mjs +6 -27
  22. package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
  23. package/dist/assets/iconfont/IconSousuo.mjs +6 -27
  24. package/dist/assets/iconfont/IconTejincou.mjs +4 -25
  25. package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
  26. package/dist/assets/iconfont/IconTishi1.mjs +6 -27
  27. package/dist/assets/iconfont/IconTuodong.mjs +7 -28
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
  29. package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
  34. package/dist/assets/iconfont/index.mjs +33 -33
  35. package/dist/components/BitzAddTag/index.mjs +8 -41
  36. package/dist/components/BitzAddressBook/index.mjs +35 -122
  37. package/dist/components/BitzAppPage/index.mjs +4 -18
  38. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  39. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  40. package/dist/components/BitzButton/index.mjs +9 -23
  41. package/dist/components/BitzCalendar/index.mjs +19 -52
  42. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  43. package/dist/components/BitzCascader/index.mjs +2 -6
  44. package/dist/components/BitzCollapse/index.mjs +4 -4
  45. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  46. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  47. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  48. package/dist/components/BitzDescriptions/index.mjs +1 -11
  49. package/dist/components/BitzDrawer/index.mjs +2 -17
  50. package/dist/components/BitzEmpty/index.mjs +2 -6
  51. package/dist/components/BitzException/index.mjs +1 -6
  52. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  53. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  54. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  55. package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
  57. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  58. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  59. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  60. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  61. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  62. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  63. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
  64. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
  65. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
  66. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  67. package/dist/components/BitzFullScreen/index.mjs +6 -9
  68. package/dist/components/BitzHighlight/Child.mjs +9 -23
  69. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  70. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  71. package/dist/components/BitzHighlight/style.mjs +1 -4
  72. package/dist/components/BitzImage/index.mjs +1 -1
  73. package/dist/components/BitzImage/previewImage.mjs +5 -12
  74. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  75. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  76. package/dist/components/BitzList/List.mjs +3 -17
  77. package/dist/components/BitzList/LoadMore.mjs +20 -29
  78. package/dist/components/BitzLoadMore/index.mjs +14 -34
  79. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  80. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  81. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  82. package/dist/components/BitzModal/index.mjs +11 -24
  83. package/dist/components/BitzNoData/index.mjs +1 -4
  84. package/dist/components/BitzNoMore/index.mjs +1 -1
  85. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  86. package/dist/components/BitzPageContainer/index.mjs +46 -107
  87. package/dist/components/BitzPageHeader/index.mjs +21 -89
  88. package/dist/components/BitzPagination/index.mjs +22 -71
  89. package/dist/components/BitzPopover/index.mjs +4 -4
  90. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  91. package/dist/components/BitzQRCode/index.mjs +1 -6
  92. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  93. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  94. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  95. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  96. package/dist/components/BitzRefresh/index.mjs +1 -5
  97. package/dist/components/BitzRemark/index.mjs +4 -4
  98. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  99. package/dist/components/BitzSearch/index.mjs +1 -1
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  101. package/dist/components/BitzSelect/index.mjs +1 -1
  102. package/dist/components/BitzSkeleton/index.mjs +1 -31
  103. package/dist/components/BitzSwitch/index.mjs +2 -7
  104. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  105. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  106. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
  107. package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
  108. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  109. package/dist/components/BitzTable/ActionCol/index.mjs +44 -182
  110. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  111. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  112. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  113. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  114. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
  115. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  116. package/dist/components/BitzTable/Store/index.mjs +62 -103
  117. package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
  118. package/dist/components/BitzTable/SubTable/index.mjs +73 -122
  119. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
  120. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  121. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  122. package/dist/components/BitzTable/Table/TdCell.d.ts +1 -0
  123. package/dist/components/BitzTable/Table/TdCell.mjs +9 -0
  124. package/dist/components/BitzTable/Table/index.d.ts +6 -0
  125. package/dist/components/BitzTable/Table/index.mjs +331 -577
  126. package/dist/components/BitzTable/Table/style.mjs +1 -10
  127. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  128. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +31 -105
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +159 -346
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +38 -135
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +5 -18
  138. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +49 -121
  139. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +18 -62
  140. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +16 -59
  141. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
  142. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +5 -20
  143. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -46
  144. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  145. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
  146. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  147. package/dist/components/BitzTableOperations/index.mjs +3 -13
  148. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  149. package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
  150. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
  151. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
  152. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
  153. package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
  154. package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
  155. package/dist/components/BitzTableSelect/index.mjs +14 -65
  156. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  157. package/dist/components/BitzTag/index.mjs +1 -1
  158. package/dist/components/BitzText/index.mjs +14 -41
  159. package/dist/components/BitzText/utils.mjs +3 -3
  160. package/dist/components/BitzTheme/index.mjs +6 -6
  161. package/dist/components/BitzTimeline/index.mjs +1 -11
  162. package/dist/components/BitzTimer/Form.mjs +11 -32
  163. package/dist/components/BitzTimer/Timer.mjs +38 -76
  164. package/dist/components/BitzTimer/index.mjs +43 -66
  165. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  166. package/dist/components/BitzToast/index.mjs +1 -1
  167. package/dist/components/BitzTooltip/index.mjs +20 -59
  168. package/dist/components/BitzTooltip/style.mjs +6 -9
  169. package/dist/components/BitzTooltip/utils.mjs +2 -2
  170. package/dist/components/BitzTree/index.mjs +1 -4
  171. package/dist/components/BitzUeEditor/index.mjs +5 -5
  172. package/dist/components/BitzUpload/index.mjs +43 -81
  173. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  174. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  175. package/dist/hooks/use-event-listener.mjs +2 -11
  176. package/dist/hooks/use-lock-fn.mjs +10 -13
  177. package/dist/hooks/use-scroll-parent.mjs +14 -16
  178. package/dist/hooks/useEvent.mjs +4 -7
  179. package/dist/hooks/useMergedState.mjs +11 -11
  180. package/dist/node_modules/react-intersection-observer/dist/index.mjs +123 -0
  181. package/dist/style.css +1 -1
  182. package/dist/utils/WithFluent.mjs +3 -9
  183. package/dist/utils/create.mjs +1 -7
  184. package/package.json +2 -1
@@ -1,17 +1,17 @@
1
1
  import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import t from "./index.module.less.mjs";
3
- import { useRef as N, useEffect as g } from "react";
4
- import { App as C, Alert as w, Select as p, Tag as L } from "antd";
5
- import { useImmer as T } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
6
- import { Timer as y } from "./Timer.mjs";
7
- import O from "../BitzEmpty/index.mjs";
8
- import R from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs";
9
- import S from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs";
10
- import k from "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
11
- import A from "../../node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
12
- const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
3
+ import { useRef as A, useEffect as B } from "react";
4
+ import { App as C, Alert as v, Select as f, Tag as D } from "antd";
5
+ import { useImmer as N } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
6
+ import { Timer as g } from "./Timer.mjs";
7
+ import w from "../BitzEmpty/index.mjs";
8
+ import L from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs";
9
+ import T from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs";
10
+ import y from "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
11
+ import O from "../../node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
12
+ const { Option: m } = f, G = ({ show: l = !0, hide: n = () => {
13
13
  } }) => {
14
- const { modal: h } = C.useApp(), { confirm: u } = h, m = N(null), [l, o] = T([
14
+ const { modal: F } = C.useApp(), { confirm: p } = F, c = A(null), [a, i] = N([
15
15
  {
16
16
  id: 1,
17
17
  start: !0,
@@ -28,75 +28,52 @@ const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
28
28
  edit: !1
29
29
  }
30
30
  ]);
31
- g(() => {
32
- n ? x() : f();
33
- }, [n]);
34
- const x = () => {
31
+ B(() => {
32
+ l ? h() : d();
33
+ }, [l]);
34
+ const h = () => {
35
35
  var s;
36
- (s = m.current) == null || s.classList.add(t.show);
37
- }, f = () => {
36
+ (s = c.current) == null || s.classList.add(t.show);
37
+ }, d = () => {
38
38
  var s;
39
- (s = m.current) == null || s.classList.remove(t.show), c == null || c();
40
- }, j = (s) => {
41
- l.forEach((r, a) => {
42
- s === r.id ? o((i) => {
43
- i[a].start = !0;
44
- }) : o((i) => {
45
- i[a].start = !1;
39
+ (s = c.current) == null || s.classList.remove(t.show), n == null || n();
40
+ }, x = (s) => {
41
+ a.forEach((u, o) => {
42
+ s === u.id ? i((r) => {
43
+ r[o].start = !0;
44
+ }) : i((r) => {
45
+ r[o].start = !1;
46
46
  });
47
47
  });
48
- }, v = (s) => {
49
- l.forEach((r, a) => {
50
- s === r.id ? o((i) => {
51
- i[a].edit = !0;
52
- }) : o((i) => {
53
- i[a].edit = !1;
48
+ }, j = (s) => {
49
+ a.forEach((u, o) => {
50
+ s === u.id ? i((r) => {
51
+ r[o].edit = !0;
52
+ }) : i((r) => {
53
+ r[o].edit = !1;
54
54
  });
55
55
  });
56
56
  }, E = (s) => {
57
- u({
57
+ p({
58
58
  title: "温馨提醒",
59
- icon: /* @__PURE__ */ e.jsx(S, {}),
59
+ icon: e.jsx(T, {}),
60
60
  content: "确定要删除吗?",
61
61
  onOk() {
62
- o((r) => {
63
- r.splice(s, 1);
62
+ i((u) => {
63
+ u.splice(s, 1);
64
64
  });
65
65
  }
66
66
  });
67
67
  };
68
- return /* @__PURE__ */ e.jsxs("div", { className: `${t.container} ${n ? t.show : ""}`, ref: m, children: [
69
- /* @__PURE__ */ e.jsxs("div", { className: t.header, children: [
70
- /* @__PURE__ */ e.jsx("h3", { children: "工作日志计时器" }),
71
- /* @__PURE__ */ e.jsx(k, { className: t.close, onClick: f })
72
- ] }),
73
- /* @__PURE__ */ e.jsx(w, { className: t.alert, message: "单计时器时长超出24小时部分无法计入日志!", type: "warning" }),
74
- /* @__PURE__ */ e.jsxs(p, { showSearch: !0, placeholder: "任务检索关键字:通过任务穿件计时器", className: t.select, children: [
75
- /* @__PURE__ */ e.jsx(d, { value: "male", children: "male" }),
76
- /* @__PURE__ */ e.jsx(d, { value: "female", children: "female" }),
77
- /* @__PURE__ */ e.jsx(d, { value: "other", children: "other" })
78
- ] }),
79
- /* @__PURE__ */ e.jsxs("h4", { children: [
80
- /* @__PURE__ */ e.jsx("span", { children: "运行中的计时器" }),
81
- /* @__PURE__ */ e.jsx(L, { icon: /* @__PURE__ */ e.jsx(R, {}), color: "warning", className: t.tag, children: "只允许单个计时器开启计时" })
82
- ] }),
83
- /* @__PURE__ */ e.jsx("div", { className: t.timerList, children: l.length ? l.map((s, r) => /* @__PURE__ */ e.jsx(y, { option: s, start: j, edit: v, remove: () => E(r) }, s.id)) : /* @__PURE__ */ e.jsx(O, { style: { marginTop: 50 } }) }),
84
- /* @__PURE__ */ e.jsx(
85
- A,
86
- {
87
- className: t.addbtn,
88
- onClick: () => {
89
- o((s) => {
90
- s.unshift({
91
- id: Math.random(),
92
- start: !1,
93
- edit: !1
94
- });
95
- });
96
- }
97
- }
98
- )
99
- ] });
68
+ return e.jsxs("div", { className: `${t.container} ${l ? t.show : ""}`, ref: c, children: [e.jsxs("div", { className: t.header, children: [e.jsx("h3", { children: "工作日志计时器" }), e.jsx(y, { className: t.close, onClick: d })] }), e.jsx(v, { className: t.alert, message: "单计时器时长超出24小时部分无法计入日志!", type: "warning" }), e.jsxs(f, { showSearch: !0, placeholder: "任务检索关键字:通过任务穿件计时器", className: t.select, children: [e.jsx(m, { value: "male", children: "male" }), e.jsx(m, { value: "female", children: "female" }), e.jsx(m, { value: "other", children: "other" })] }), e.jsxs("h4", { children: [e.jsx("span", { children: "运行中的计时器" }), e.jsx(D, { icon: e.jsx(L, {}), color: "warning", className: t.tag, children: "只允许单个计时器开启计时" })] }), e.jsx("div", { className: t.timerList, children: a.length ? a.map((s, u) => e.jsx(g, { option: s, start: x, edit: j, remove: () => E(u) }, s.id)) : e.jsx(w, { style: { marginTop: 50 } }) }), e.jsx(O, { className: t.addbtn, onClick: () => {
69
+ i((s) => {
70
+ s.unshift({
71
+ id: Math.random(),
72
+ start: !1,
73
+ edit: !1
74
+ });
75
+ });
76
+ } })] });
100
77
  };
101
78
  export {
102
79
  G as BitzTimer,
@@ -1,9 +1,9 @@
1
1
  import { j as a } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { Component as u } from "react";
2
+ import { Component as x } from "react";
3
3
  import { isMobile as h } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
- import x from "../../../assets/iconfont/index.mjs";
4
+ import u from "../../../assets/iconfont/index.mjs";
5
5
  import "./index.less.mjs";
6
- class g extends u {
6
+ class j extends x {
7
7
  constructor() {
8
8
  super(), this.transitionTime = 300, this.state = { notices: [] }, this.removeNotice = this.removeNotice.bind(this);
9
9
  }
@@ -13,12 +13,9 @@ class g extends u {
13
13
  }
14
14
  addNotice(s) {
15
15
  const { notices: r } = this.state;
16
- return s.key = this.getNoticeKey(), r[0] = s, this.setState({ notices: r }), (s == null ? void 0 : s.duration) > 0 && setTimeout(
17
- () => {
18
- this.removeNotice(s.key);
19
- },
20
- s == null ? void 0 : s.duration
21
- ), () => {
16
+ return s.key = this.getNoticeKey(), r[0] = s, this.setState({ notices: r }), (s == null ? void 0 : s.duration) > 0 && setTimeout(() => {
17
+ this.removeNotice(s.key);
18
+ }, s == null ? void 0 : s.duration), () => {
22
19
  this.removeNotice(s.key);
23
20
  };
24
21
  }
@@ -35,10 +32,7 @@ class g extends u {
35
32
  */
36
33
  pcToastBox(s) {
37
34
  let r, l, m, d;
38
- return s.type == "info" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "tishi1", l = "#616161", m = "#d1d1d1", d = "#8a8886") : s.type == "success" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "chenggong", l = "#0E700E", m = "#F1FAF1", d = "#9FD89F") : s.type == "warn" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "jinggao", l = "#DA3B01", m = "#FDF6F3", d = "#F4BFAB") : (r = s != null && s.icon ? s == null ? void 0 : s.icon : "icon21", l = "#B10E1C", m = "#FDF3F4", d = "#EEACB2"), /* @__PURE__ */ a.jsxs("div", { className: "pcToastBox", style: { background: m, borderColor: d }, children: [
39
- /* @__PURE__ */ a.jsx("div", { className: "mark", children: /* @__PURE__ */ a.jsx(x, { color: l, size: 18, name: r }) }),
40
- /* @__PURE__ */ a.jsx("div", { className: "content", children: s == null ? void 0 : s.content })
41
- ] });
35
+ return s.type == "info" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "tishi1", l = "#616161", m = "#d1d1d1", d = "#8a8886") : s.type == "success" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "chenggong", l = "#0E700E", m = "#F1FAF1", d = "#9FD89F") : s.type == "warn" ? (r = s != null && s.icon ? s == null ? void 0 : s.icon : "jinggao", l = "#DA3B01", m = "#FDF6F3", d = "#F4BFAB") : (r = s != null && s.icon ? s == null ? void 0 : s.icon : "icon21", l = "#B10E1C", m = "#FDF3F4", d = "#EEACB2"), a.jsxs("div", { className: "pcToastBox", style: { background: m, borderColor: d }, children: [a.jsx("div", { className: "mark", children: a.jsx(u, { color: l, size: 18, name: r }) }), a.jsx("div", { className: "content", children: s == null ? void 0 : s.content })] });
42
36
  }
43
37
  /**
44
38
  *
@@ -47,25 +41,13 @@ class g extends u {
47
41
  */
48
42
  mobileToastBox(s) {
49
43
  let r;
50
- return s.type == "info" ? r = s != null && s.icon ? s == null ? void 0 : s.icon : "xinxitishi" : s.type == "success" ? r = s != null && s.icon ? s == null ? void 0 : s.icon : "duigoux" : (s.type == "warn", r = s != null && s.icon ? s == null ? void 0 : s.icon : "cuowu"), /* @__PURE__ */ a.jsxs("div", { className: "mobileToastBox", children: [
51
- /* @__PURE__ */ a.jsx("div", { className: "mark", children: /* @__PURE__ */ a.jsx(x, { color: "#fff", size: 40, name: r }) }),
52
- /* @__PURE__ */ a.jsx("div", { className: "content", children: s == null ? void 0 : s.content })
53
- ] });
44
+ return s.type == "info" ? r = s != null && s.icon ? s == null ? void 0 : s.icon : "xinxitishi" : s.type == "success" ? r = s != null && s.icon ? s == null ? void 0 : s.icon : "duigoux" : (s.type == "warn", r = s != null && s.icon ? s == null ? void 0 : s.icon : "cuowu"), a.jsxs("div", { className: "mobileToastBox", children: [a.jsx("div", { className: "mark", children: a.jsx(u, { color: "#fff", size: 40, name: r }) }), a.jsx("div", { className: "content", children: s == null ? void 0 : s.content })] });
54
45
  }
55
46
  render() {
56
47
  const { notices: s } = this.state;
57
- return /* @__PURE__ */ a.jsx("div", { className: "bitzToastBlock", children: s.map((r) => /* @__PURE__ */ a.jsxs("div", { className: "toastBg", children: [
58
- !h && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
59
- " ",
60
- this.pcToastBox(r)
61
- ] }),
62
- h && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
63
- " ",
64
- this.mobileToastBox(r)
65
- ] })
66
- ] }, r.key)) });
48
+ return a.jsx("div", { className: "bitzToastBlock", children: s.map((r) => a.jsxs("div", { className: "toastBg", children: [!h && a.jsxs(a.Fragment, { children: [" ", this.pcToastBox(r)] }), h && a.jsxs(a.Fragment, { children: [" ", this.mobileToastBox(r)] })] }, r.key)) });
67
49
  }
68
50
  }
69
51
  export {
70
- g as default
52
+ j as default
71
53
  };
@@ -4,7 +4,7 @@ import s from "./Toast/index.mjs";
4
4
  const u = () => {
5
5
  const o = document.createElement("div");
6
6
  document.body.appendChild(o);
7
- const t = d.render(/* @__PURE__ */ a.jsx(s, {}), o);
7
+ const t = d.render(a.jsx(s, {}), o);
8
8
  return {
9
9
  addNotice(e) {
10
10
  return t.addNotice(e);
@@ -7,18 +7,7 @@ import D from "../../hooks/useMergedState.mjs";
7
7
  import G from "../../node_modules/ahooks/es/useClickAway/index.mjs";
8
8
  import H from "./style.mjs";
9
9
  import I from "../../node_modules/classnames/index.mjs";
10
- const te = ({
11
- wrapper: n,
12
- defaultOpen: C,
13
- open: k,
14
- tip: c,
15
- children: s,
16
- placement: P = "top",
17
- trigger: i = "hover",
18
- overlayClassName: N,
19
- overlayStyle: R,
20
- getContainer: p
21
- }) => {
10
+ const te = ({ wrapper: n, defaultOpen: C, open: k, tip: c, children: s, placement: P = "top", trigger: i = "hover", overlayClassName: N, overlayStyle: R, getContainer: p }) => {
22
11
  const { token: f } = $.useToken(), { blockClassName: j, blockContentCls: T, arrowCls: z } = H(), u = d(null), r = d(null), a = d(document.createElement("div")), [B, S] = w(0), [L, M] = w(0), [t, m] = D(C ?? !1, {
23
12
  value: k
24
13
  });
@@ -27,9 +16,7 @@ const te = ({
27
16
  const e = n ?? u.current;
28
17
  if (e && r.current) {
29
18
  const { top: l, left: _, width: F } = e.getBoundingClientRect(), V = window.pageXOffset || document.documentElement.scrollLeft, W = window.pageYOffset || document.documentElement.scrollTop;
30
- S(
31
- _ - (r.current.offsetWidth - F) / 2 + V
32
- ), M(l - r.current.clientHeight - 10 + W);
19
+ S(_ - (r.current.offsetWidth - F) / 2 + V), M(l - r.current.clientHeight - 10 + W);
33
20
  }
34
21
  }
35
22
  }, [t, c]), G(() => {
@@ -55,53 +42,27 @@ const te = ({
55
42
  show: "onFocus",
56
43
  hide: "onBlur"
57
44
  }), e;
58
- }, [i]), O = y(() => typeof s == "string" ? /* @__PURE__ */ o.jsx("span", { children: s }) : s, [s]);
45
+ }, [i]), O = y(() => typeof s == "string" ? o.jsx("span", { children: s }) : s, [s]);
59
46
  let g = s;
60
- return n || (g = v.Children.map(
61
- O,
62
- (e) => v.cloneElement(e, {
63
- [`${b.show}`]: () => h(!0),
64
- [`${b.hide}`]: () => h(!1),
65
- ref: u
66
- })
67
- )), x(() => () => {
47
+ return n || (g = v.Children.map(O, (e) => v.cloneElement(e, {
48
+ [`${b.show}`]: () => h(!0),
49
+ [`${b.hide}`]: () => h(!1),
50
+ ref: u
51
+ }))), x(() => () => {
68
52
  var e;
69
53
  (e = a.current) == null || e.remove();
70
- }, []), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
71
- g,
72
- A.createPortal(
73
- /* @__PURE__ */ o.jsxs(
74
- "div",
75
- {
76
- className: I(j, N),
77
- ref: r,
78
- style: {
79
- left: B,
80
- top: L,
81
- zIndex: 1070,
82
- background: f.colorBgSpotlight,
83
- color: f.colorTextLightSolid,
84
- opacity: t ? 1 : 0,
85
- transformOrigin: "bottom",
86
- transform: t ? "scale(1)" : "scale(0.8)",
87
- transition: t ? "transform 0.1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)" : "transform 0.1s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s cubic-bezier(0.215, 0.61, 0.355, 1)",
88
- ...R
89
- },
90
- children: [
91
- /* @__PURE__ */ o.jsx(
92
- "div",
93
- {
94
- className: z,
95
- style: { borderTopColor: f.colorBgSpotlight }
96
- }
97
- ),
98
- /* @__PURE__ */ o.jsx("div", { className: T, children: c })
99
- ]
100
- }
101
- ),
102
- p && n ? p(n) : a.current
103
- )
104
- ] });
54
+ }, []), o.jsxs(o.Fragment, { children: [g, A.createPortal(o.jsxs("div", { className: I(j, N), ref: r, style: {
55
+ left: B,
56
+ top: L,
57
+ zIndex: 1070,
58
+ background: f.colorBgSpotlight,
59
+ color: f.colorTextLightSolid,
60
+ opacity: t ? 1 : 0,
61
+ transformOrigin: "bottom",
62
+ transform: t ? "scale(1)" : "scale(0.8)",
63
+ transition: t ? "transform 0.1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)" : "transform 0.1s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s cubic-bezier(0.215, 0.61, 0.355, 1)",
64
+ ...R
65
+ }, children: [o.jsx("div", { className: z, style: { borderTopColor: f.colorBgSpotlight } }), o.jsx("div", { className: T, children: c })] }), p && n ? p(n) : a.current)] });
105
66
  };
106
67
  export {
107
68
  te as default
@@ -50,15 +50,12 @@ const E = () => {
50
50
  }
51
51
  }
52
52
  ];
53
- return b(
54
- {
55
- theme: p,
56
- token: r,
57
- hashId: e,
58
- path: [o]
59
- },
60
- () => [s(o, i, n, r)]
61
- ), { blockClassName: c(o, e), blockContentCls: i, arrowCls: n };
53
+ return b({
54
+ theme: p,
55
+ token: r,
56
+ hashId: e,
57
+ path: [o]
58
+ }, () => [s(o, i, n, r)]), { blockClassName: c(o, e), blockContentCls: i, arrowCls: n };
62
59
  };
63
60
  export {
64
61
  E as default
@@ -1,4 +1,4 @@
1
- const t = (o) => o != null && o !== "";
1
+ const e = (n) => n != null && n !== "";
2
2
  export {
3
- t as isNotFalsly
3
+ e as isNotFalsly
4
4
  };
@@ -1,8 +1,5 @@
1
1
  import { Tree as e } from "antd";
2
- const {
3
- DirectoryTree: o,
4
- TreeNode: t
5
- } = e, r = e;
2
+ const { DirectoryTree: o, TreeNode: t } = e, r = e;
6
3
  r.DirectoryTree = o;
7
4
  r.TreeNode = t;
8
5
  export {
@@ -1,12 +1,12 @@
1
- import { j as i } from "../../node_modules/react/jsx-runtime.mjs";
1
+ import { j as f } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as c, useEffect as n } from "react";
3
- import u from "./config.mjs";
4
- const p = ({ id: e, value: s, height: f = 500, onBlur: r }) => {
3
+ import d from "./config.mjs";
4
+ const p = ({ id: e, value: s, height: i = 500, onBlur: r }) => {
5
5
  const o = c(null);
6
6
  return n(() => {
7
7
  if (!e)
8
8
  return;
9
- const t = UE == null ? void 0 : UE.getEditor(e, u);
9
+ const t = UE == null ? void 0 : UE.getEditor(e, d);
10
10
  return o.current = t, t.ready(() => {
11
11
  t.addListener("blur", () => {
12
12
  r == null || r(t.getContent());
@@ -19,7 +19,7 @@ const p = ({ id: e, value: s, height: f = 500, onBlur: r }) => {
19
19
  t.ready(() => {
20
20
  t.setContent(s || "");
21
21
  });
22
- }, [s, o.current]), /* @__PURE__ */ i.jsx("div", { id: e, style: { width: "100%", height: f } });
22
+ }, [s, o.current]), f.jsx("div", { id: e, style: { width: "100%", height: i } });
23
23
  };
24
24
  export {
25
25
  p as default
@@ -7,18 +7,18 @@ import v from "../BitzImage/previewImage.mjs";
7
7
  import L from "../BitzDrawer/index.mjs";
8
8
  import { useImmer as T } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
9
9
  import B from "../BitzLocalStorage/index.mjs";
10
- import { useTranslation as C } from "../../node_modules/react-i18next/dist/es/useTranslation.mjs";
11
- import z from "../../node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs";
10
+ import C from "../../node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs";
11
+ import { useTranslation as z } from "../../node_modules/react-i18next/dist/es/useTranslation.mjs";
12
12
  import F from "../../node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs";
13
- const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Dragger: D } = m, I = (t) => new Promise((r, n) => {
13
+ const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Dragger: D } = m, I = (t) => new Promise((s, n) => {
14
14
  const e = new FileReader();
15
- e.readAsDataURL(t), e.onload = () => r(e.result), e.onerror = (o) => n(o);
15
+ e.readAsDataURL(t), e.onload = () => s(e.result), e.onerror = (o) => n(o);
16
16
  }), k = (t) => {
17
17
  t.file.status !== "uploading" && console.log(t.file, t.fileList), t.file.status === "done" ? u.success(`${t.file.name} 上传成功`) : t.file.status === "error" && u.error(`${t.file.name} 上传失败`);
18
18
  }, j = (t) => {
19
- const r = t.showAddBtn || !0, n = t.limitImageType || ["png", "jpeg", "jpg"], e = t.limitFileType || ["txt", "doc", "docx", "pdf", "ppt", "pptx", "xlsx", "xls"], o = t.limitFileSize || 20, p = {
19
+ const s = t.showAddBtn || !0, n = t.limitImageType || ["png", "jpeg", "jpg"], e = t.limitFileType || ["txt", "doc", "docx", "pdf", "ppt", "pptx", "xlsx", "xls"], o = t.limitFileSize || 20, p = {
20
20
  title: "点击上传",
21
- icon: /* @__PURE__ */ i.jsx(z, {}),
21
+ icon: i.jsx(C, {}),
22
22
  name: "file",
23
23
  action: "/lzhApi/api/services/web/financialExpenditure/uploadExpenditureFile",
24
24
  accept: "image/png, image/jpeg",
@@ -32,100 +32,62 @@ const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Drag
32
32
  onChange: k
33
33
  };
34
34
  return {
35
- showAddBtn: r,
35
+ showAddBtn: s,
36
36
  limitImageType: n,
37
37
  limitFileType: e,
38
38
  limitFileSize: o,
39
39
  ...p
40
40
  };
41
41
  }, U = ({ ...t }) => {
42
- const { t: r } = C(), n = async (s) => {
43
- !s.url && !s.preview && (s.preview = await I(s.originFileObj)), v({
44
- items: [s.url || s.preview]
42
+ const { t: s } = z(), n = async (r) => {
43
+ !r.url && !r.preview && (r.preview = await I(r.originFileObj)), v({
44
+ items: [r.url || r.preview]
45
45
  });
46
- }, e = { ...j(t), ...t }, o = e.listType === "picture-card", p = e.listType === "picture-circle", c = () => o || p ? /* @__PURE__ */ i.jsx(F, {}) : /* @__PURE__ */ i.jsx(w, { icon: e.icon, children: e.title }), [f, d] = T({
46
+ }, e = { ...j(t), ...t }, o = e.listType === "picture-card", p = e.listType === "picture-circle", c = () => o || p ? i.jsx(F, {}) : i.jsx(w, { icon: e.icon, children: e.title }), [f, d] = T({
47
47
  open: !1,
48
48
  fileList: e.defaultFileList || []
49
49
  });
50
- return b ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
51
- /* @__PURE__ */ i.jsx(
52
- "div",
53
- {
54
- onClick: () => d((s) => {
55
- s.open = !0;
56
- }),
57
- children: e.showAddBtn && c()
58
- }
59
- ),
60
- /* @__PURE__ */ i.jsx(
61
- m,
62
- {
63
- ...e,
64
- listType: e.listType,
65
- fileList: f.fileList,
66
- onRemove: (s) => {
67
- var l;
68
- const x = f.fileList.findIndex((a) => a.uid === s.uid);
69
- d((a) => {
70
- a.fileList.splice(x, 1);
71
- }), (l = e.onRemove) == null || l.call(e, s);
72
- }
73
- }
74
- ),
75
- /* @__PURE__ */ i.jsx(L, { height: "auto", className: "tableMobileDrawer", placement: "bottom", open: f.open, destroyOnClose: !0, closable: !1, children: /* @__PURE__ */ i.jsxs("div", { className: "drawerBox", children: [
76
- /* @__PURE__ */ i.jsx("div", { className: "boxBody", children: [{ label: "本地相册" }, { label: "文件" }].map((s, x) => /* @__PURE__ */ i.jsx("div", { className: "operaList", children: /* @__PURE__ */ i.jsx(g, { imgCrop: e.imgCrop, children: /* @__PURE__ */ i.jsx(
77
- m,
78
- {
79
- ...e,
80
- listType: e.listType,
81
- showUploadList: !1,
82
- onChange: (l) => {
83
- l.file.status === "done" && (e.onChange(l), d((a) => {
84
- e.maxCount === 1 ? a.fileList = [
85
- {
86
- url: h + l.file.response.data,
87
- uid: Date.now() + "",
88
- name: ""
89
- }
90
- ] : a.fileList.push({
91
- url: h + l.file.response.data,
92
- uid: Date.now() + "",
93
- name: ""
94
- }), a.open = !1;
95
- }));
96
- },
97
- children: s.label
98
- }
99
- ) }) }, x)) }),
100
- /* @__PURE__ */ i.jsx("div", { className: "boxLine" }),
101
- /* @__PURE__ */ i.jsx(
102
- "div",
50
+ return b ? i.jsxs(i.Fragment, { children: [i.jsx("div", { onClick: () => d((r) => {
51
+ r.open = !0;
52
+ }), children: e.showAddBtn && c() }), i.jsx(m, { ...e, listType: e.listType, fileList: f.fileList, onRemove: (r) => {
53
+ var l;
54
+ const x = f.fileList.findIndex((a) => a.uid === r.uid);
55
+ d((a) => {
56
+ a.fileList.splice(x, 1);
57
+ }), (l = e.onRemove) == null || l.call(e, r);
58
+ } }), i.jsx(L, { height: "auto", className: "tableMobileDrawer", placement: "bottom", open: f.open, destroyOnClose: !0, closable: !1, children: i.jsxs("div", { className: "drawerBox", children: [i.jsx("div", { className: "boxBody", children: [{ label: "本地相册" }, { label: "文件" }].map((r, x) => i.jsx("div", { className: "operaList", children: i.jsx(g, { imgCrop: e.imgCrop, children: i.jsx(m, { ...e, listType: e.listType, showUploadList: !1, onChange: (l) => {
59
+ l.file.status === "done" && (e.onChange(l), d((a) => {
60
+ e.maxCount === 1 ? a.fileList = [
103
61
  {
104
- className: "boxFooter",
105
- onClick: () => {
106
- d((s) => {
107
- s.open = !1;
108
- });
109
- },
110
- children: r("System_Cancel", "取消")
62
+ url: h + l.file.response.data,
63
+ uid: Date.now() + "",
64
+ name: ""
111
65
  }
112
- )
113
- ] }) })
114
- ] }) : /* @__PURE__ */ i.jsx(g, { imgCrop: e.imgCrop, children: /* @__PURE__ */ i.jsx(m, { onPreview: n, ...e, children: e.showAddBtn && c() }) });
66
+ ] : a.fileList.push({
67
+ url: h + l.file.response.data,
68
+ uid: Date.now() + "",
69
+ name: ""
70
+ }), a.open = !1;
71
+ }));
72
+ }, children: r.label }) }) }, x)) }), i.jsx("div", { className: "boxLine" }), i.jsx("div", { className: "boxFooter", onClick: () => {
73
+ d((r) => {
74
+ r.open = !1;
75
+ });
76
+ }, children: s("System_Cancel", "取消") })] }) })] }) : i.jsx(g, { imgCrop: e.imgCrop, children: i.jsx(m, { onPreview: n, ...e, children: e.showAddBtn && c() }) });
115
77
  }, K = A(U, {
116
78
  Dragger: ({ ...t }) => {
117
- const r = { ...j(t), ...t };
118
- return /* @__PURE__ */ i.jsx(D, { ...r, children: t.children });
79
+ const s = { ...j(t), ...t };
80
+ return i.jsx(D, { ...s, children: t.children });
119
81
  }
120
82
  });
121
- function A(t, r) {
83
+ function A(t, s) {
122
84
  const n = t;
123
- for (const e in r)
124
- r.hasOwnProperty(e) && (n[e] = r[e]);
85
+ for (const e in s)
86
+ s.hasOwnProperty(e) && (n[e] = s[e]);
125
87
  return n;
126
88
  }
127
- function g({ imgCrop: t, children: r }) {
128
- return t ? /* @__PURE__ */ i.jsx(y, { rotationSlider: !0, aspect: t == null ? void 0 : t.aspect, children: r }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: r });
89
+ function g({ imgCrop: t, children: s }) {
90
+ return t ? i.jsx(y, { rotationSlider: !0, aspect: t == null ? void 0 : t.aspect, children: s }) : i.jsx(i.Fragment, { children: s });
129
91
  }
130
92
  export {
131
93
  g as ImgCropUplad,
@@ -1,40 +1,9 @@
1
1
  import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { isMobile as r } from "../../node_modules/react-device-detect/dist/lib.mjs";
3
- import { Drawer as b, Button as o } from "antd";
4
- const g = ({
5
- title: i = "",
6
- open: s = !1,
7
- onClose: t = () => {
8
- },
9
- onSubmit: l = () => {
10
- },
11
- children: a,
12
- pcWidth: m = 800,
13
- mobileHeight: p = 600,
14
- showFooter: c = !0,
15
- showSubmitBtn: n = !0,
16
- showCancelBtn: f = !0,
17
- submitBtnText: h = "保存",
18
- cancelBtnText: u = "取消",
19
- ...x
20
- }) => /* @__PURE__ */ e.jsx(
21
- b,
22
- {
23
- ...x,
24
- title: i,
25
- placement: r ? "bottom" : "right",
26
- height: r ? p : "",
27
- width: r ? "" : m,
28
- closable: !1,
29
- onClose: t,
30
- open: s,
31
- footer: c ? /* @__PURE__ */ e.jsxs("div", { className: r ? "mobileFooter" : "pcFooter", children: [
32
- n && /* @__PURE__ */ e.jsx(o, { type: "primary", onClick: l, children: h }),
33
- f && /* @__PURE__ */ e.jsx(o, { onClick: t, children: u })
34
- ] }) : "",
35
- children: a
36
- }
37
- );
3
+ import { Drawer as x, Button as o } from "antd";
4
+ const g = ({ title: i = "", open: s = !1, onClose: t = () => {
5
+ }, onSubmit: l = () => {
6
+ }, children: a, pcWidth: m = 800, mobileHeight: n = 600, showFooter: p = !0, showSubmitBtn: c = !0, showCancelBtn: h = !0, submitBtnText: d = "保存", cancelBtnText: f = "取消", ...u }) => e.jsx(x, { ...u, title: i, placement: r ? "bottom" : "right", height: r ? n : "", width: r ? "" : m, closable: !1, onClose: t, open: s, footer: p ? e.jsxs("div", { className: r ? "mobileFooter" : "pcFooter", children: [c && e.jsx(o, { type: "primary", onClick: l, children: d }), h && e.jsx(o, { onClick: t, children: f })] }) : "", children: a });
38
7
  export {
39
8
  g as default
40
9
  };
@@ -1,11 +1,8 @@
1
1
  import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
- import { isMobile as t } from "../../node_modules/react-device-detect/dist/lib.mjs";
3
- import { Modal as a } from "antd";
2
+ import { isMobile as s } from "../../node_modules/react-device-detect/dist/lib.mjs";
3
+ import { Modal as e } from "antd";
4
4
  import "./index.less.mjs";
5
- const M = ({ title: i = "提示", content: r = "您确定要删除?", children: l, ...s }) => /* @__PURE__ */ o.jsxs(a, { title: i, wrapClassName: t ? "bitzMobileModalBlock" : "bitzPcModalBlock", ...s, children: [
6
- /* @__PURE__ */ o.jsx("div", { children: r }),
7
- l
8
- ] });
5
+ const M = ({ title: i = "提示", content: t = "您确定要删除?", children: l, ...r }) => o.jsxs(e, { title: i, wrapClassName: s ? "bitzMobileModalBlock" : "bitzPcModalBlock", ...r, children: [o.jsx("div", { children: t }), l] });
9
6
  export {
10
7
  M as default
11
8
  };
@@ -14,20 +14,11 @@ if (i)
14
14
  function w(e, o, c = {}) {
15
15
  if (!i)
16
16
  return;
17
- const {
18
- target: n = window,
19
- passive: d = !1,
20
- capture: r = !1,
21
- depends: l = []
22
- } = c;
17
+ const { target: n = window, passive: d = !1, capture: r = !1, depends: l = [] } = c;
23
18
  let s;
24
19
  const p = () => {
25
20
  const t = a(n);
26
- t && !s && (t.addEventListener(
27
- e,
28
- o,
29
- f ? { capture: r, passive: d } : r
30
- ), s = !0);
21
+ t && !s && (t.addEventListener(e, o, f ? { capture: r, passive: d } : r), s = !0);
31
22
  }, u = () => {
32
23
  const t = a(n);
33
24
  t && s && (t.removeEventListener(e, o, r), s = !1);