bitz-react-admin-ui 2.0.9 → 2.1.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 (165) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +4 -10
  2. package/dist/assets/iconfont/IconClose.mjs +1 -7
  3. package/dist/assets/iconfont/IconCuowu.mjs +2 -8
  4. package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
  5. package/dist/assets/iconfont/IconFabu.mjs +3 -18
  6. package/dist/assets/iconfont/IconFanhui.mjs +5 -11
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
  11. package/dist/assets/iconfont/IconIcon21.mjs +2 -8
  12. package/dist/assets/iconfont/IconJincoude.mjs +3 -9
  13. package/dist/assets/iconfont/IconJinggao.mjs +2 -8
  14. package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
  16. package/dist/assets/iconfont/IconMore.mjs +4 -26
  17. package/dist/assets/iconfont/IconShanchu.mjs +5 -11
  18. package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
  19. package/dist/assets/iconfont/IconSousuo.mjs +4 -10
  20. package/dist/assets/iconfont/IconTejincou.mjs +1 -7
  21. package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
  22. package/dist/assets/iconfont/IconTishi1.mjs +6 -12
  23. package/dist/assets/iconfont/IconTuodong.mjs +6 -12
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
  25. package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +8 -41
  32. package/dist/components/BitzAddressBook/index.mjs +35 -122
  33. package/dist/components/BitzAppPage/index.mjs +4 -18
  34. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +9 -23
  37. package/dist/components/BitzCalendar/index.mjs +19 -52
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  39. package/dist/components/BitzCascader/index.mjs +2 -6
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  42. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  43. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +1 -11
  47. package/dist/components/BitzDrawer/index.mjs +2 -17
  48. package/dist/components/BitzEmpty/index.mjs +2 -6
  49. package/dist/components/BitzException/index.mjs +1 -6
  50. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  51. package/dist/components/BitzFluentInput/index.mjs +4 -23
  52. package/dist/components/BitzFluentSelect/index.mjs +5 -24
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +6 -29
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +18 -50
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +15 -31
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
  62. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  63. package/dist/components/BitzFullScreen/index.mjs +6 -9
  64. package/dist/components/BitzHighlight/Child.mjs +9 -23
  65. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  66. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  67. package/dist/components/BitzHighlight/style.mjs +1 -4
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +5 -12
  70. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  71. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  72. package/dist/components/BitzList/List.mjs +3 -17
  73. package/dist/components/BitzList/LoadMore.mjs +20 -29
  74. package/dist/components/BitzLoadMore/index.mjs +14 -34
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  76. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +11 -24
  79. package/dist/components/BitzNoData/index.mjs +1 -4
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  82. package/dist/components/BitzPageContainer/index.mjs +46 -107
  83. package/dist/components/BitzPageHeader/index.mjs +21 -89
  84. package/dist/components/BitzPagination/index.mjs +14 -62
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  87. package/dist/components/BitzQRCode/index.mjs +1 -6
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  91. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  92. package/dist/components/BitzRefresh/index.mjs +1 -5
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +1 -31
  99. package/dist/components/BitzSwitch/index.mjs +2 -7
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +5 -33
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  105. package/dist/components/BitzTable/ActionCol/index.mjs +16 -90
  106. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  107. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  108. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +14 -32
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -40
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  112. package/dist/components/BitzTable/Store/index.mjs +45 -68
  113. package/dist/components/BitzTable/Table/index.mjs +145 -305
  114. package/dist/components/BitzTable/Table/style.mjs +1 -10
  115. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  116. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +47 -82
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +21 -95
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +28 -68
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -2
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +142 -250
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +3 -3
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -8
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +89 -137
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +2 -2
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -29
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -7
  129. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +6 -33
  130. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  131. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +10 -27
  132. package/dist/components/BitzTable/ToolBar/Wrapper/context.d.ts +4 -0
  133. package/dist/components/BitzTable/ToolBar/Wrapper/context.mjs +5 -0
  134. package/dist/components/BitzTable/ToolBar/Wrapper/index.d.ts +4 -3
  135. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +18 -60
  136. package/dist/components/BitzTable/ToolBar/index.d.ts +6 -4
  137. package/dist/components/BitzTableOperations/index.mjs +3 -13
  138. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  139. package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
  140. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +11 -21
  141. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +40 -210
  142. package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
  143. package/dist/components/BitzTableSelect/TextBlock/index.mjs +9 -27
  144. package/dist/components/BitzTableSelect/index.mjs +13 -61
  145. package/dist/components/BitzTag/index.mjs +1 -1
  146. package/dist/components/BitzTheme/index.mjs +6 -6
  147. package/dist/components/BitzTimeline/index.mjs +1 -11
  148. package/dist/components/BitzTimer/Form.mjs +11 -32
  149. package/dist/components/BitzTimer/Timer.mjs +38 -76
  150. package/dist/components/BitzTimer/index.mjs +43 -66
  151. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  152. package/dist/components/BitzToast/index.mjs +1 -1
  153. package/dist/components/BitzTree/index.mjs +1 -4
  154. package/dist/components/BitzUeEditor/index.mjs +5 -5
  155. package/dist/components/BitzUpload/index.mjs +43 -81
  156. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  157. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  158. package/dist/hooks/use-event-listener.mjs +2 -11
  159. package/dist/hooks/use-lock-fn.mjs +10 -13
  160. package/dist/hooks/use-scroll-parent.mjs +14 -16
  161. package/dist/hooks/useEvent.mjs +4 -7
  162. package/dist/hooks/useMergedState.mjs +11 -11
  163. package/dist/style.css +1 -1
  164. package/dist/utils/create.mjs +1 -7
  165. package/package.json +1 -1
@@ -1,90 +1,54 @@
1
1
  import { j as r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import P, { useMemo as b } from "react";
2
+ import P, { useMemo as y } from "react";
3
3
  import "./index.less.mjs";
4
- import { Spin as w, Watermark as H, Affix as B, Tabs as N } from "antd";
5
- import C from "../BitzPageHeader/index.mjs";
4
+ import { Spin as w, Watermark as C, Affix as H, Tabs as N } from "antd";
5
+ import B from "../BitzPageHeader/index.mjs";
6
6
  import R from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
7
  function S(e) {
8
8
  return typeof e == "object" ? e : { spinning: e };
9
9
  }
10
- const z = ({
11
- tabList: e,
12
- tabActiveKey: t,
13
- onTabChange: a,
14
- hashId: n,
10
+ const z = ({ tabList: e, tabActiveKey: t, onTabChange: a, hashId: n, tabBarExtraContent: d, tabProps: f, prefixedClassName: x }) => Array.isArray(e) || d ? r.jsx(N, {
11
+ className: `${x}-tabs ${n}`.trim(),
12
+ activeKey: t,
13
+ onChange: (s) => {
14
+ a && a(s);
15
+ },
15
16
  tabBarExtraContent: d,
16
- tabProps: f,
17
- prefixedClassName: x
18
- }) => Array.isArray(e) || d ? /* @__PURE__ */ r.jsx(
19
- N,
20
- {
21
- className: `${x}-tabs ${n}`.trim(),
22
- activeKey: t,
23
- onChange: (s) => {
24
- a && a(s);
25
- },
26
- tabBarExtraContent: d,
27
- items: e == null ? void 0 : e.map((s, m) => {
28
- var u;
29
- return {
30
- label: s.tab,
31
- ...s,
32
- key: ((u = s.key) == null ? void 0 : u.toString()) || (m == null ? void 0 : m.toString())
33
- };
34
- }),
35
- ...f,
36
- children: e == null ? void 0 : e.map((s, m) => /* @__PURE__ */ r.jsx(N.TabPane, { tab: s.tab, ...s }, s.key || m))
37
- }
38
- ) : null, M = (e, t, a, n) => !e && !t ? null : /* @__PURE__ */ r.jsx("div", { className: `${a}-detail ${n}`.trim(), children: /* @__PURE__ */ r.jsx("div", { className: `${a}-main ${n}`.trim(), children: /* @__PURE__ */ r.jsxs("div", { className: `${a}-row ${n}`.trim(), children: [
39
- e && /* @__PURE__ */ r.jsx("div", { className: `${a}-content ${n}`.trim(), children: e }),
40
- t && /* @__PURE__ */ r.jsx(
41
- "div",
42
- {
43
- className: `${a}-extraContent ${n}`.trim(),
44
- children: t
45
- }
46
- )
47
- ] }) }) }), A = (e) => {
17
+ // @ts-ignore
18
+ items: e == null ? void 0 : e.map((s, m) => {
19
+ var u;
20
+ return {
21
+ label: s.tab,
22
+ ...s,
23
+ key: ((u = s.key) == null ? void 0 : u.toString()) || (m == null ? void 0 : m.toString())
24
+ };
25
+ }),
26
+ ...f,
27
+ children: e == null ? void 0 : e.map((s, m) => r.jsx(N.TabPane, { tab: s.tab, ...s }, s.key || m))
28
+ }) : null, M = (e, t, a, n) => !e && !t ? null : r.jsx("div", { className: `${a}-detail ${n}`.trim(), children: r.jsx("div", { className: `${a}-main ${n}`.trim(), children: r.jsxs("div", { className: `${a}-row ${n}`.trim(), children: [e && r.jsx("div", { className: `${a}-content ${n}`.trim(), children: e }), t && r.jsx("div", { className: `${a}-extraContent ${n}`.trim(), children: t })] }) }) }), A = (e) => {
48
29
  var p;
49
- const {
50
- title: t,
51
- content: a,
52
- pageHeaderRender: n,
53
- header: d,
54
- prefixedClassName: f,
55
- extraContent: x,
56
- childrenContentStyle: s,
57
- style: m,
58
- prefixCls: u,
59
- hashId: h,
60
- value: l,
61
- breadcrumbRender: i,
62
- ...v
63
- } = e, $ = () => {
30
+ const { title: t, content: a, pageHeaderRender: n, header: d, prefixedClassName: f, extraContent: x, childrenContentStyle: s, style: m, prefixCls: u, hashId: h, value: l, breadcrumbRender: i, ...b } = e, $ = () => {
64
31
  if (i)
65
32
  return i;
66
33
  };
67
34
  if (n === !1)
68
35
  return null;
69
36
  if (n)
70
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
71
- " ",
72
- n({ ...e, ...l })
73
- ] });
37
+ return r.jsxs(r.Fragment, { children: [" ", n({ ...e, ...l })] });
74
38
  let j = t;
75
39
  !t && t !== !1 && (j = l.title);
76
40
  const g = {
77
41
  ...l,
78
42
  title: j,
79
- ...v,
43
+ ...b,
80
44
  footer: z({
81
- ...v,
45
+ ...b,
82
46
  hashId: h,
83
47
  breadcrumbRender: i,
84
48
  prefixedClassName: f
85
49
  }),
86
50
  ...d
87
- }, { breadcrumb: o } = g, y = (!o || !(o != null && o.itemRender) && !((p = o == null ? void 0 : o.items) != null && p.length)) && !i;
51
+ }, { breadcrumb: o } = g, v = (!o || !(o != null && o.itemRender) && !((p = o == null ? void 0 : o.items) != null && p.length)) && !i;
88
52
  return [
89
53
  "title",
90
54
  "subTitle",
@@ -93,17 +57,7 @@ const z = ({
93
57
  "footer",
94
58
  "avatar",
95
59
  "backIcon"
96
- ].every((c) => !g[c]) && y && !a && !x ? null : /* @__PURE__ */ r.jsx(
97
- C,
98
- {
99
- ...g,
100
- className: `${f}-warp-page-header ${h}`.trim(),
101
- breadcrumb: i === !1 ? void 0 : { ...g.breadcrumb, ...l.breadcrumbProps },
102
- breadcrumbRender: $(),
103
- prefixCls: u,
104
- children: (d == null ? void 0 : d.children) || M(a, x, f, h)
105
- }
106
- );
60
+ ].every((c) => !g[c]) && v && !a && !x ? null : r.jsx(B, { ...g, className: `${f}-warp-page-header ${h}`.trim(), breadcrumb: i === !1 ? void 0 : { ...g.breadcrumb, ...l.breadcrumbProps }, breadcrumbRender: $(), prefixCls: u, children: (d == null ? void 0 : d.children) || M(a, x, f, h) });
107
61
  }, V = (e) => {
108
62
  var p;
109
63
  const t = "id_asd123", {
@@ -119,66 +73,51 @@ const z = ({
119
73
  // footerToolBarProps,
120
74
  childrenContentStyle: h,
121
75
  ...l
122
- } = e, i = "bitz-page-container", v = b(() => {
76
+ } = e, i = "bitz-page-container", b = y(() => {
123
77
  var c;
124
78
  return u == !1 ? !1 : u || ((c = l == null ? void 0 : l.header) == null ? void 0 : c.breadcrumbRender);
125
79
  }, [u, (p = l == null ? void 0 : l.header) == null ? void 0 : p.breadcrumbRender]), $ = A({
126
80
  ...l,
127
- breadcrumbRender: v,
81
+ breadcrumbRender: b,
128
82
  ghost: !0,
129
83
  hashId: t,
130
84
  prefixCls: void 0,
131
85
  prefixedClassName: i,
132
86
  value: {}
133
- }), j = b(() => {
87
+ }), j = y(() => {
134
88
  if (P.isValidElement(n))
135
89
  return n;
136
90
  if (typeof n == "boolean" && !n)
137
91
  return null;
138
92
  const c = S(n);
139
- return c.spinning ? /* @__PURE__ */ r.jsx("div", { style: { paddingBlockStart: 100, textAlign: "center" }, children: /* @__PURE__ */ r.jsx(w, { size: "large", ...c }) }) : null;
140
- }, [n]), g = b(() => a ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
141
- "div",
142
- {
143
- className: R(
144
- `${i}-children-container ${t}`.trim()
145
- ),
146
- style: {
147
- // paddingBlockStart: props?.header ? 0 : token?.layout?.pageContainer?.paddingBlockPageContainerContent,
148
- ...h
149
- },
150
- children: a
151
- }
152
- ) }) : null, [a, i, h, t]), o = b(() => {
93
+ return c.spinning ? r.jsx("div", { style: { paddingBlockStart: 100, textAlign: "center" }, children: r.jsx(w, { size: "large", ...c }) }) : null;
94
+ }, [n]), g = y(() => a ? r.jsx(r.Fragment, { children: r.jsx("div", {
95
+ className: R(`${i}-children-container ${t}`.trim()),
96
+ // 没有 header 存在需要给 container 加上 BlockStart,正常时间不需要
97
+ style: {
98
+ // paddingBlockStart: props?.header ? 0 : token?.layout?.pageContainer?.paddingBlockPageContainerContent,
99
+ ...h
100
+ },
101
+ children: a
102
+ }) }) : null, [a, i, h, t]), o = y(() => {
153
103
  const c = j || g;
154
104
  if (e.waterMarkProps) {
155
105
  const k = {
156
106
  // ...value.waterMarkProps,
157
107
  ...e.waterMarkProps
158
108
  };
159
- return /* @__PURE__ */ r.jsx(H, { ...k, children: c });
109
+ return r.jsx(C, { ...k, children: c });
160
110
  }
161
111
  return c;
162
- }, [e.waterMarkProps, j, g]), y = R(i, t, d, {
112
+ }, [e.waterMarkProps, j, g]), v = R(i, t, d, {
163
113
  [`${i}-with-footer`]: x,
164
114
  [`${i}-with-affix`]: m && $
165
115
  // [`${basePageContainer}-stylish`]: !!restProps.stylish,
166
116
  });
167
- return /* @__PURE__ */ r.jsx("div", { className: "BitzPageContainerBlock", children: /* @__PURE__ */ r.jsxs("div", { style: f, className: y, children: [
168
- m && $ ? (
169
- // hasHeader fixedHeader 的情况下,才需要设置高度
170
- /* @__PURE__ */ r.jsx(
171
- B,
172
- {
173
- offsetTop: 1,
174
- ...s,
175
- className: `${i}-affix ${t}`.trim(),
176
- children: /* @__PURE__ */ r.jsx("div", { className: `${i}-warp ${t}`.trim(), children: $ })
177
- }
178
- )
179
- ) : $,
180
- o && o
181
- ] }) });
117
+ return r.jsx("div", { className: "BitzPageContainerBlock", children: r.jsxs("div", { style: f, className: v, children: [m && $ ? (
118
+ // hasHeader fixedHeader 的情况下,才需要设置高度
119
+ r.jsx(H, { offsetTop: 1, ...s, className: `${i}-affix ${t}`.trim(), children: r.jsx("div", { className: `${i}-warp ${t}`.trim(), children: $ }) })
120
+ ) : $, o && o] }) });
182
121
  };
183
122
  export {
184
123
  V as default
@@ -1,101 +1,33 @@
1
1
  import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useState as B } from "react";
3
- import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
- import { createNamespace as C } from "../../utils/create.mjs";
5
- import { Avatar as R, Space as w, Breadcrumb as y } from "antd";
2
+ import { useState as k } from "react";
3
+ import j from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { createNamespace as B } from "../../utils/create.mjs";
5
+ import { Avatar as C, Space as y, Breadcrumb as w } from "antd";
6
6
  import A from "../../node_modules/.store/rc-resize-observer@1.4.0/node_modules/rc-resize-observer/es/index.mjs";
7
7
  import "./index.less.mjs";
8
8
  import F from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs";
9
9
  import O from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs";
10
- const P = (e, t, i, n) => !i || !n ? null : /* @__PURE__ */ s.jsx("div", { className: `${e}-back ${t}`.trim(), children: /* @__PURE__ */ s.jsx(
11
- "div",
12
- {
13
- role: "button",
14
- onClick: (o) => {
15
- n == null || n(o);
16
- },
17
- className: `${e}-back-button ${t}`.trim(),
18
- "aria-label": "back",
19
- children: i
20
- }
21
- ) }), T = (e, t) => {
10
+ const P = (t, e, i, n) => !i || !n ? null : s.jsx("div", { className: `${t}-back ${e}`.trim(), children: s.jsx("div", { role: "button", onClick: (c) => {
11
+ n == null || n(c);
12
+ }, className: `${t}-back-button ${e}`.trim(), "aria-label": "back", children: i }) }), T = (t, e) => {
22
13
  var i;
23
- return (i = e.items) != null && i.length ? /* @__PURE__ */ s.jsx(
24
- y,
25
- {
26
- ...e,
27
- className: p(`${t}-breadcrumb`, e.className)
28
- }
29
- ) : null;
30
- }, H = (e, t = "ltr") => e.backIcon !== void 0 ? e.backIcon : t === "rtl" ? /* @__PURE__ */ s.jsx(F, {}) : /* @__PURE__ */ s.jsx(O, {}), S = (e, t, i = "ltr", n) => {
31
- const {
32
- title: o,
33
- avatar: l,
34
- subTitle: a,
35
- tags: m,
36
- extra: d,
37
- onBack: f
38
- } = t, c = `${e}-heading`, r = o || a || m || d;
14
+ return (i = t.items) != null && i.length ? s.jsx(w, { ...t, className: j(`${e}-breadcrumb`, t.className) }) : null;
15
+ }, H = (t, e = "ltr") => t.backIcon !== void 0 ? t.backIcon : e === "rtl" ? s.jsx(F, {}) : s.jsx(O, {}), S = (t, e, i = "ltr", n) => {
16
+ const { title: c, avatar: l, subTitle: a, tags: m, extra: d, onBack: f } = e, o = `${t}-heading`, r = c || a || m || d;
39
17
  if (!r)
40
18
  return null;
41
- const u = H(t, i), $ = P(e, n, u, f), x = $ || l || r;
42
- return /* @__PURE__ */ s.jsxs("div", { className: c + " " + n, children: [
43
- x && /* @__PURE__ */ s.jsxs("div", { className: `${c}-left ${n}`.trim(), children: [
44
- $,
45
- l && /* @__PURE__ */ s.jsx(
46
- R,
47
- {
48
- className: p(
49
- `${c}-avatar`,
50
- n,
51
- l.className
52
- ),
53
- ...l
54
- }
55
- ),
56
- o && /* @__PURE__ */ s.jsx(
57
- "span",
58
- {
59
- className: `${c}-title ${n}`.trim(),
60
- title: typeof o == "string" ? o : void 0,
61
- children: o
62
- }
63
- ),
64
- a && /* @__PURE__ */ s.jsx(
65
- "span",
66
- {
67
- className: `${c}-sub-title ${n}`.trim(),
68
- title: typeof a == "string" ? a : void 0,
69
- children: a
70
- }
71
- ),
72
- m && /* @__PURE__ */ s.jsx("span", { className: `${c}-tags ${n}`.trim(), children: m })
73
- ] }),
74
- d && /* @__PURE__ */ s.jsx("span", { className: `${c}-extra ${n}`.trim(), children: /* @__PURE__ */ s.jsx(w, { children: d }) })
75
- ] });
76
- }, E = (e, t, i) => /* @__PURE__ */ s.jsx("div", { className: `${e}-content ${i}`.trim(), children: t }), L = (e, t, i) => t ? /* @__PURE__ */ s.jsx("div", { className: `${e}-footer ${i}`.trim(), children: t }) : null, X = (e) => {
77
- const [t, i] = C("bitz-page-header"), n = "ltr", o = "id_123123", [l, a] = B(!1), m = ({ width: z }) => a(z < 768), {
78
- style: d,
79
- footer: f,
80
- children: c,
81
- breadcrumb: r,
82
- breadcrumbRender: u,
83
- className: $,
84
- contentWidth: x
85
- } = e, N = (() => (r && !(r != null && r.items) && (r != null && r.routes) && (r.items = r.routes), r != null && r.items ? T(r, t) : null))(), h = r && "props" in r, D = (u == null ? void 0 : u({ ...e, prefixCls: t }, N)) ?? N, j = h ? r : D, k = p(t, o, $, {
86
- [`${t}-has-breadcrumb`]: !!j,
87
- [`${t}-has-footer`]: !!f,
19
+ const u = H(e, i), $ = P(t, n, u, f), x = $ || l || r;
20
+ return s.jsxs("div", { className: o + " " + n, children: [x && s.jsxs("div", { className: `${o}-left ${n}`.trim(), children: [$, l && s.jsx(C, { className: j(`${o}-avatar`, n, l.className), ...l }), c && s.jsx("span", { className: `${o}-title ${n}`.trim(), title: typeof c == "string" ? c : void 0, children: c }), a && s.jsx("span", { className: `${o}-sub-title ${n}`.trim(), title: typeof a == "string" ? a : void 0, children: a }), m && s.jsx("span", { className: `${o}-tags ${n}`.trim(), children: m })] }), d && s.jsx("span", { className: `${o}-extra ${n}`.trim(), children: s.jsx(y, { children: d }) })] });
21
+ }, E = (t, e, i) => s.jsx("div", { className: `${t}-content ${i}`.trim(), children: e }), L = (t, e, i) => e ? s.jsx("div", { className: `${t}-footer ${i}`.trim(), children: e }) : null, X = (t) => {
22
+ const [e, i] = B("bitz-page-header"), n = "ltr", c = "id_123123", [l, a] = k(!1), m = ({ width: R }) => a(R < 768), { style: d, footer: f, children: o, breadcrumb: r, breadcrumbRender: u, className: $, contentWidth: x } = t, p = (() => (r && !(r != null && r.items) && (r != null && r.routes) && (r.items = r.routes), r != null && r.items ? T(r, e) : null))(), v = r && "props" in r, D = (u == null ? void 0 : u({ ...t, prefixCls: e }, p)) ?? p, N = v ? r : D, z = j(e, c, $, {
23
+ [`${e}-has-breadcrumb`]: !!N,
24
+ [`${e}-has-footer`]: !!f,
88
25
  // [`${prefixCls}-rtl`]: direction === 'rtl',
89
- [`${t}-compact`]: l,
90
- [`${t}-wide`]: x === "Fixed",
91
- [`${t}-ghost`]: !0
92
- }), g = S(t, e, n, o), v = c && E(t, c, o), b = L(t, f, o);
93
- return !j && !g && !b && !v ? null : /* @__PURE__ */ s.jsx(A, { onResize: m, children: /* @__PURE__ */ s.jsxs("div", { className: k, style: d, children: [
94
- j,
95
- g,
96
- v,
97
- b
98
- ] }) });
26
+ [`${e}-compact`]: l,
27
+ [`${e}-wide`]: x === "Fixed",
28
+ [`${e}-ghost`]: !0
29
+ }), g = S(e, t, n, c), h = o && E(e, o, c), b = L(e, f, c);
30
+ return !N && !g && !b && !h ? null : s.jsx(A, { onResize: m, children: s.jsxs("div", { className: z, style: d, children: [N, g, h, b] }) });
99
31
  };
100
32
  export {
101
33
  X as default
@@ -1,79 +1,31 @@
1
1
  import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useState as l, useMemo as c, useEffect as y, useImperativeHandle as B } from "react";
2
+ import { useState as l, useMemo as z, useEffect as y, useImperativeHandle as B } from "react";
3
3
  import { Pagination as M } from "antd";
4
4
  import { isMobile as b } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
5
5
  import v from "../BitzHighlight/index.mjs";
6
6
  import "./index.less.mjs";
7
7
  let g = !0;
8
- const N = ({
9
- enableControl: u = !1,
10
- pagination: a = {
11
- page: 1,
12
- size: 10
13
- },
14
- pageSizeOptions: z = [10, 20, 50, 100],
15
- total: j = 0,
16
- dataSource: r = [],
17
- resetPage: m = 0,
18
- paginationEmit: f = () => {
19
- },
20
- direction: x = "end",
21
- totalText: w = "共",
22
- totalItemText: C = "条",
23
- elRefInstance: P,
24
- refInstance: d,
25
- ...S
26
- }) => {
27
- const [h, n] = l(1), [p, T] = l(10), t = c(() => u ? a : { page: h, size: p }, [u, a, h, p]), o = c(() => m, [m]);
8
+ const N = ({ enableControl: a = !1, pagination: u = {
9
+ page: 1,
10
+ size: 10
11
+ }, pageSizeOptions: c = [10, 20, 50, 100], total: j = 0, dataSource: n = [], resetPage: h = 0, paginationEmit: m = () => {
12
+ }, direction: w = "end", totalText: x = "共", totalItemText: C = "条", elRefInstance: S, refInstance: P, ...d }) => {
13
+ const [p, o] = l(1), [f, T] = l(10), t = z(() => a ? u : { page: p, size: f }, [a, u, p, f]), r = z(() => h, [h]);
28
14
  y(() => {
29
- o != 0 && n(o);
30
- }, [o]);
15
+ r != 0 && o(r);
16
+ }, [r]);
31
17
  const $ = (e, i) => {
32
- n(e), g && f(e, i);
18
+ o(e), g && m(e, i);
33
19
  }, k = (e, i) => {
34
20
  g = !1, T(i), setTimeout(() => {
35
- n(1), f(1, i), setTimeout(() => {
21
+ o(1), m(1, i), setTimeout(() => {
36
22
  g = !0;
37
23
  }, 10);
38
24
  }, 10);
39
25
  };
40
- return B(
41
- d,
42
- () => ({
43
- getSize: () => t.size
44
- }),
45
- [t]
46
- ), /* @__PURE__ */ s.jsx(s.Fragment, { children: (r == null ? void 0 : r.length) != 0 && !b && /* @__PURE__ */ s.jsx(
47
- "div",
48
- {
49
- ref: P,
50
- className: "bitzPaginationBlock",
51
- style: { justifyContent: x },
52
- children: /* @__PURE__ */ s.jsx(
53
- M,
54
- {
55
- total: j,
56
- defaultCurrent: t.page,
57
- current: t.page,
58
- pageSize: t.size,
59
- showSizeChanger: !0,
60
- showQuickJumper: !0,
61
- pageSizeOptions: z,
62
- showTotal: (e) => /* @__PURE__ */ s.jsx(
63
- v,
64
- {
65
- highlightTag: "strong",
66
- keywords: `${e}`,
67
- sourceString: `${w} ${e} ${C}`
68
- }
69
- ),
70
- onChange: $,
71
- onShowSizeChange: k,
72
- ...S
73
- }
74
- )
75
- }
76
- ) });
26
+ return B(P, () => ({
27
+ getSize: () => t.size
28
+ }), [t]), s.jsx(s.Fragment, { children: (n == null ? void 0 : n.length) != 0 && !b && s.jsx("div", { ref: S, className: "bitzPaginationBlock", style: { justifyContent: w }, children: s.jsx(M, { total: j, defaultCurrent: t.page, current: t.page, pageSize: t.size, showSizeChanger: !0, showQuickJumper: !0, pageSizeOptions: c, showTotal: (e) => s.jsx(v, { highlightTag: "strong", keywords: `${e}`, sourceString: `${x} ${e} ${C}` }), onChange: $, onShowSizeChange: k, ...d }) }) });
77
29
  };
78
30
  export {
79
31
  N as default
@@ -1,16 +1,16 @@
1
1
  import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as c, useEffect as m } from "react";
3
3
  import { Typography as f } from "antd";
4
- import t from "./BitzPopover.module.less.mjs";
5
- const { Paragraph: u } = f, E = (r) => {
6
- const { children: a, ellipsis: e = !1, ...n } = r, [p, s] = c(), l = () => {
4
+ import r from "./BitzPopover.module.less.mjs";
5
+ const { Paragraph: u } = f, E = (t) => {
6
+ const { children: a, ellipsis: e = !1, ...n } = t, [l, s] = c(), p = () => {
7
7
  s(!1);
8
8
  }, i = () => {
9
9
  s(e);
10
10
  };
11
11
  return m(() => {
12
12
  s(e);
13
- }, [e]), /* @__PURE__ */ o.jsx("div", { ...n, className: t.bitzPopoverBlock, onMouseEnter: l, onMouseLeave: i, children: /* @__PURE__ */ o.jsx(u, { ellipsis: p, className: t.Paragraph, children: a }) });
13
+ }, [e]), o.jsx("div", { ...n, className: r.bitzPopoverBlock, onMouseEnter: p, onMouseLeave: i, children: o.jsx(u, { ellipsis: l, className: r.Paragraph, children: a }) });
14
14
  };
15
15
  export {
16
16
  E as default
@@ -12,8 +12,8 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
12
12
  pulling: "下拉即可刷新...",
13
13
  loosing: "释放即可刷新...",
14
14
  loading: "加载中..."
15
- }, Z = (v) => {
16
- const e = C(v, {
15
+ }, Z = (E) => {
16
+ const e = C(E, {
17
17
  headHeight: 50,
18
18
  animationDuration: 300,
19
19
  successDuration: 500
@@ -27,23 +27,19 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
27
27
  return {
28
28
  height: `${e.headHeight}px`
29
29
  };
30
- }, l = D(() => s.status !== "loading" && s.status !== "success" && !m, [s.status, m]), y = (t) => {
30
+ }, c = D(() => s.status !== "loading" && s.status !== "success" && !m, [s.status, m]), v = (t) => {
31
31
  const r = +(e.pullDistance || e.headHeight);
32
32
  return t > r && (t < r * 2 ? t = r + (t - r) / 2 : t = r * 1.5 + (t - r * 2) / 4), Math.round(t);
33
33
  }, u = (t, r) => {
34
- const c = +(e.pullDistance || e.headHeight), a = { distance: t };
35
- r ? a.status = "loading" : t === 0 ? a.status = "normal" : t < c ? a.status = "pulling" : a.status = "loosing", n(a);
36
- }, T = () => s.status === "normal" ? "" : e[`${s.status}Text`] || G[s.status], E = () => {
34
+ const l = +(e.pullDistance || e.headHeight), a = { distance: t };
35
+ r ? a.status = "loading" : t === 0 ? a.status = "normal" : t < l ? a.status = "pulling" : a.status = "loosing", n(a);
36
+ }, T = () => s.status === "normal" ? "" : e[`${s.status}Text`] || G[s.status], y = () => {
37
37
  var a;
38
38
  const { status: t, distance: r } = s;
39
39
  if (typeof e[`${s.status}Text`] == "function")
40
40
  return (a = e[`${s.status}Text`]) == null ? void 0 : a.call(e, { distance: r });
41
- const c = [];
42
- return F.includes(t) && c.push(
43
- /* @__PURE__ */ f.jsx("div", { className: "bitz-pull-refresh__text", children: T() }, "text")
44
- ), t === "loading" && c.push(
45
- /* @__PURE__ */ f.jsx("div", { className: "bitz-pull-refresh__loading", children: T() })
46
- ), c;
41
+ const l = [];
42
+ return F.includes(t) && l.push(f.jsx("div", { className: "bitz-pull-refresh__text", children: T() }, "text")), t === "loading" && l.push(f.jsx("div", { className: "bitz-pull-refresh__loading", children: T() })), l;
47
43
  }, b = () => {
48
44
  n({ status: "success" }), setTimeout(() => {
49
45
  u(0);
@@ -58,55 +54,30 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
58
54
  const r = Y(t.target);
59
55
  i.current = P(r) === 0, i.current && (n({ duration: 0 }), o.start(t));
60
56
  }, R = (t) => {
61
- l() && x(t.nativeEvent);
57
+ c() && x(t.nativeEvent);
62
58
  }, N = D(
63
59
  (t) => {
64
- l() && (i.current || x(t), o.move(t), i.current && o.deltaY.current >= 0 && o.isVertical() ? (u(y(o.deltaY.current)), z(t)) : u(0));
60
+ c() && (i.current || x(t), o.move(t), i.current && o.deltaY.current >= 0 && o.isVertical() ? (u(v(o.deltaY.current)), z(t)) : u(0));
65
61
  },
66
62
  // eslint-disable-next-line react-hooks/exhaustive-deps
67
- [i.current, o.deltaY.current, l]
63
+ [i.current, o.deltaY.current, c]
68
64
  ), S = async () => {
69
- i.current && o.deltaY && l() && (n({ duration: +g }), s.status === "loosing" ? (u(+e.headHeight, !0), await j(), setTimeout(() => {
65
+ i.current && o.deltaY && c() && (n({ duration: +g }), s.status === "loosing" ? (u(+e.headHeight, !0), await j(), setTimeout(() => {
70
66
  var t;
71
67
  return (t = e.onRefreshEnd) == null ? void 0 : t.call(e);
72
68
  })) : u(0));
73
69
  };
74
70
  w("touchmove", N, {
75
71
  target: p.current,
76
- depends: [i.current, l(), o.deltaY]
72
+ depends: [i.current, c(), o.deltaY]
77
73
  }), M(() => {
78
74
  n({ duration: +g }), s.refreshing ? u(+e.headHeight, !0) : e.successText ? b() : u(0, !1);
79
75
  }, [s.refreshing]);
80
- const $ = k(
81
- () => ({
82
- transitionDuration: `${s.duration}ms`,
83
- transform: s.distance ? `translate3d(0,${s.distance}px, 0)` : ""
84
- }),
85
- [s.duration, s.distance]
86
- );
87
- return /* @__PURE__ */ f.jsx(
88
- "div",
89
- {
90
- ref: H,
91
- className: d(e.className, "bitz-pull-refresh"),
92
- style: e.style,
93
- children: /* @__PURE__ */ f.jsxs(
94
- "div",
95
- {
96
- ref: p,
97
- className: d("bitz-pull-refresh__track"),
98
- style: $,
99
- onTouchStart: R,
100
- onTouchEnd: S,
101
- onTouchCancel: S,
102
- children: [
103
- /* @__PURE__ */ f.jsx("div", { className: d("bitz-pull-refresh__head"), style: _(), children: E() }),
104
- e.children
105
- ]
106
- }
107
- )
108
- }
109
- );
76
+ const $ = k(() => ({
77
+ transitionDuration: `${s.duration}ms`,
78
+ transform: s.distance ? `translate3d(0,${s.distance}px, 0)` : ""
79
+ }), [s.duration, s.distance]);
80
+ return f.jsx("div", { ref: H, className: d(e.className, "bitz-pull-refresh"), style: e.style, children: f.jsxs("div", { ref: p, className: d("bitz-pull-refresh__track"), style: $, onTouchStart: R, onTouchEnd: S, onTouchCancel: S, children: [f.jsx("div", { className: d("bitz-pull-refresh__head"), style: _(), children: y() }), e.children] }) });
110
81
  };
111
82
  export {
112
83
  Z as default
@@ -1,11 +1,6 @@
1
1
  import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { QRCode as r } from "antd";
3
- const m = (o) => /* @__PURE__ */ t.jsx(
4
- r,
5
- {
6
- ...o
7
- }
8
- );
3
+ const m = (o) => t.jsx(r, { ...o });
9
4
  export {
10
5
  m as default
11
6
  };