bitz-react-admin-ui 2.10.7-beta.2 → 2.10.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/assets/iconfont/IconChenggong.mjs +5 -18
  4. package/dist/assets/iconfont/IconClose.mjs +5 -18
  5. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +5 -18
  6. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +5 -18
  7. package/dist/assets/iconfont/IconColumnFixedRight.mjs +5 -18
  8. package/dist/assets/iconfont/IconCuowu.mjs +5 -18
  9. package/dist/assets/iconfont/IconDragOrder.mjs +5 -18
  10. package/dist/assets/iconfont/IconDuigoux.mjs +5 -18
  11. package/dist/assets/iconfont/IconFabu.mjs +8 -27
  12. package/dist/assets/iconfont/IconFanhui.mjs +5 -18
  13. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -18
  14. package/dist/assets/iconfont/IconHangfengexian.mjs +9 -35
  15. package/dist/assets/iconfont/IconHangliefengexian.mjs +9 -35
  16. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -18
  17. package/dist/assets/iconfont/IconIcon21.mjs +5 -18
  18. package/dist/assets/iconfont/IconJincoude.mjs +5 -18
  19. package/dist/assets/iconfont/IconJinggao.mjs +5 -18
  20. package/dist/assets/iconfont/IconKuansongde.mjs +5 -18
  21. package/dist/assets/iconfont/IconLiefengexian.mjs +9 -35
  22. package/dist/assets/iconfont/IconMore.mjs +9 -34
  23. package/dist/assets/iconfont/IconShanchu.mjs +5 -18
  24. package/dist/assets/iconfont/IconShanchu1.mjs +8 -27
  25. package/dist/assets/iconfont/IconSousuo.mjs +5 -18
  26. package/dist/assets/iconfont/IconTejincou.mjs +5 -18
  27. package/dist/assets/iconfont/IconTekuansong.mjs +5 -18
  28. package/dist/assets/iconfont/IconTishi1.mjs +5 -18
  29. package/dist/assets/iconfont/IconTuodong.mjs +5 -18
  30. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +8 -29
  31. package/dist/assets/iconfont/IconWufengexian.mjs +5 -19
  32. package/dist/assets/iconfont/IconXinxitishi.mjs +5 -18
  33. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +8 -28
  34. package/dist/assets/iconfont/IconZhongdengde.mjs +5 -18
  35. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -18
  36. package/dist/assets/iconfont/index.mjs +4 -1
  37. package/dist/components/BitzAddTag/index.mjs +17 -38
  38. package/dist/components/BitzAddressBook/index.mjs +33 -81
  39. package/dist/components/BitzAppRefresh/index.mjs +11 -17
  40. package/dist/components/BitzBetterScroll/index.mjs +13 -1
  41. package/dist/components/BitzButton/index.mjs +33 -25
  42. package/dist/components/BitzCalendar/index.mjs +42 -60
  43. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +25 -47
  44. package/dist/components/BitzCascader/index.mjs +5 -1
  45. package/dist/components/BitzCollapse/index.mjs +5 -2
  46. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  47. package/dist/components/BitzConfirmModal/index.mjs +22 -25
  48. package/dist/components/BitzDayJs/index.mjs +1 -1
  49. package/dist/components/BitzDescriptions/index.mjs +1 -11
  50. package/dist/components/BitzDrawer/index.mjs +14 -18
  51. package/dist/components/BitzEmpty/index.mjs +5 -1
  52. package/dist/components/BitzException/index.mjs +1 -6
  53. package/dist/components/BitzFloatLayout/index.mjs +14 -2
  54. package/dist/components/BitzFluentDatePicker/index.mjs +4 -1
  55. package/dist/components/BitzFluentRangePicker/index.mjs +4 -1
  56. package/dist/components/BitzFluentRangeTimePicker/index.mjs +4 -1
  57. package/dist/components/BitzFluentTimePicker/index.mjs +4 -1
  58. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  59. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +15 -15
  60. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +4 -2
  61. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +13 -24
  62. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  63. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +10 -14
  64. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +25 -46
  65. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -17
  66. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +19 -20
  67. package/dist/components/BitzFuiCalendar/index.mjs +3 -1
  68. package/dist/components/BitzFullScreen/index.mjs +40 -17
  69. package/dist/components/BitzHighlight/Child.mjs +12 -9
  70. package/dist/components/BitzHighlight/Highlight.mjs +10 -8
  71. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  72. package/dist/components/BitzHighlight/style.mjs +25 -22
  73. package/dist/components/BitzImage/index.mjs +5 -1
  74. package/dist/components/BitzImage/previewImage.mjs +5 -12
  75. package/dist/components/BitzLanguageTabs/index.mjs +29 -20
  76. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  77. package/dist/components/BitzList/List.mjs +1 -15
  78. package/dist/components/BitzList/LoadMore.mjs +23 -22
  79. package/dist/components/BitzLoadMore/index.mjs +7 -13
  80. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +12 -10
  81. package/dist/components/BitzMeetingTime/index.mjs +15 -4
  82. package/dist/components/BitzMobileLoading/index.mjs +3 -1
  83. package/dist/components/BitzModal/index.mjs +13 -20
  84. package/dist/components/BitzNoData/index.mjs +8 -1
  85. package/dist/components/BitzNoMore/index.mjs +4 -1
  86. package/dist/components/BitzOrganizationSelection/index.mjs +32 -30
  87. package/dist/components/BitzPageContainer/index.mjs +21 -42
  88. package/dist/components/BitzPageHeader/index.mjs +14 -48
  89. package/dist/components/BitzPagination/index.mjs +9 -38
  90. package/dist/components/BitzPopover/index.mjs +8 -2
  91. package/dist/components/BitzPullRefresh/PullRefresh.mjs +43 -45
  92. package/dist/components/BitzQRCode/index.mjs +1 -6
  93. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +23 -20
  94. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +7 -1
  95. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +3 -1
  96. package/dist/components/BitzQueryFilter/index.mjs +7 -39
  97. package/dist/components/BitzRefresh/index.mjs +13 -4
  98. package/dist/components/BitzRemark/index.mjs +6 -1
  99. package/dist/components/BitzSearch/index.mjs +12 -2
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +49 -99
  101. package/dist/components/BitzSelect/index.mjs +10 -2
  102. package/dist/components/BitzSkeleton/index.mjs +1 -31
  103. package/dist/components/BitzTabbar/BitzTabbar.mjs +7 -13
  104. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +15 -3
  105. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +41 -86
  106. package/dist/components/BitzTable/ActionBar/Button.mjs +4 -1
  107. package/dist/components/BitzTable/ActionBar/style.mjs +62 -67
  108. package/dist/components/BitzTable/ActionCol/index.mjs +65 -166
  109. package/dist/components/BitzTable/ActionCol/style.mjs +74 -88
  110. package/dist/components/BitzTable/Dropdown/index.mjs +15 -11
  111. package/dist/components/BitzTable/Dropdown/style.mjs +66 -70
  112. package/dist/components/BitzTable/SelectionBar/Button.mjs +22 -16
  113. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +15 -13
  114. package/dist/components/BitzTable/SelectionBar/style.mjs +79 -96
  115. package/dist/components/BitzTable/Store/index.mjs +126 -152
  116. package/dist/components/BitzTable/Store/utils/index.mjs +11 -2
  117. package/dist/components/BitzTable/SubTable/index.mjs +63 -68
  118. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +27 -37
  119. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -19
  120. package/dist/components/BitzTable/Table/SortableRow.mjs +32 -34
  121. package/dist/components/BitzTable/Table/TdCell.mjs +14 -12
  122. package/dist/components/BitzTable/Table/index.mjs +418 -532
  123. package/dist/components/BitzTable/Table/useScrollConfig.mjs +18 -10
  124. package/dist/components/BitzTable/Table/utils.mjs +20 -21
  125. package/dist/components/BitzTable/TextOverflow/index.mjs +15 -14
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +0 -1
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +120 -119
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +114 -120
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +26 -37
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +340 -342
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +23 -33
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -30
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +168 -145
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +12 -9
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +29 -17
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +233 -170
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +51 -54
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +53 -53
  139. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -33
  140. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +52 -39
  141. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +1 -1
  142. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -38
  143. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +34 -20
  144. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +32 -44
  145. package/dist/components/BitzTable/ToolBar/style.mjs +59 -58
  146. package/dist/components/BitzTableOperations/index.mjs +8 -13
  147. package/dist/components/BitzTableSelect/Picker/index.mjs +4 -23
  148. package/dist/components/BitzTableSelect/Select/index.mjs +2 -48
  149. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +16 -22
  150. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +72 -156
  151. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +1 -43
  152. package/dist/components/BitzTableSelect/TableCell/index.mjs +24 -52
  153. package/dist/components/BitzTableSelect/TextBlock/index.mjs +10 -18
  154. package/dist/components/BitzTableSelect/index.mjs +5 -39
  155. package/dist/components/BitzTag/index.mjs +10 -2
  156. package/dist/components/BitzText/index.mjs +37 -42
  157. package/dist/components/BitzTheme/index.mjs +5 -1
  158. package/dist/components/BitzTimeline/index.mjs +1 -11
  159. package/dist/components/BitzTimer/Form.mjs +32 -38
  160. package/dist/components/BitzTimer/Timer.mjs +8 -23
  161. package/dist/components/BitzTimer/index.mjs +36 -35
  162. package/dist/components/BitzToast/Toast/index.mjs +24 -12
  163. package/dist/components/BitzToast/index.mjs +7 -1
  164. package/dist/components/BitzTooltip/index.mjs +35 -45
  165. package/dist/components/BitzTooltip/style.mjs +41 -38
  166. package/dist/components/BitzUeEditor/config.mjs +183 -185
  167. package/dist/components/BitzUeEditor/index.mjs +10 -2
  168. package/dist/components/BitzUpload/index.mjs +56 -67
  169. package/dist/components/BitzWebAppDrawer/index.mjs +4 -18
  170. package/dist/components/BitzWebAppModal/index.mjs +6 -1
  171. package/dist/hooks/use-event-listener.mjs +4 -5
  172. package/dist/hooks/use-lock-fn.mjs +10 -13
  173. package/dist/hooks/use-scroll-parent.mjs +4 -4
  174. package/dist/hooks/useEvent.mjs +4 -7
  175. package/dist/hooks/useMergedState.mjs +6 -1
  176. package/dist/node_modules/classnames/index.mjs +1 -1
  177. package/dist/node_modules/dayjs/locale/zh-cn.mjs +10 -10
  178. package/dist/node_modules/prop-types/index.mjs +1 -1
  179. package/dist/style.css +1 -1
  180. package/dist/utils/WithFluent.mjs +13 -9
  181. package/dist/utils/create.mjs +1 -7
  182. package/dist/utils/get-default-props.mjs +3 -1
  183. package/dist/utils/time.mjs +8 -8
  184. package/package.json +5 -5
  185. package/dist/_virtual/dayjs.min.mjs +0 -4
  186. package/dist/components/BitzTable/Select/index.d.ts +0 -3
  187. package/dist/components/BitzTable/Select/style.d.ts +0 -4
  188. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +0 -11
  189. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +0 -3
  190. package/dist/node_modules/dayjs/dayjs.min.mjs +0 -297
@@ -8,7 +8,11 @@ import A from "../../../node_modules/@better-scroll/wheel/dist/wheel.esm.mjs";
8
8
  import n from "./index.module.less.mjs";
9
9
  import { useImmer as y } from "../../../node_modules/use-immer/dist/use-immer.module.mjs";
10
10
  $.use(A);
11
- const { Search: G } = W, te = ({ ...e }) => {
11
+ const {
12
+ Search: G
13
+ } = W, te = ({
14
+ ...e
15
+ }) => {
12
16
  var C, g, k;
13
17
  const u = e.mode === "multiple" || e.mode === "tags";
14
18
  let b = [];
@@ -72,118 +76,64 @@ const { Search: G } = W, te = ({ ...e }) => {
72
76
  return u ? /* @__PURE__ */ a.jsxs("div", { className: n.textarea, onClick: () => x(!0), children: [
73
77
  /* @__PURE__ */ a.jsx("div", { children: d == null ? void 0 : d.map((l, t) => {
74
78
  var r;
75
- return /* @__PURE__ */ a.jsx(
76
- z,
77
- {
78
- bordered: !1,
79
- closable: !0,
80
- onClose: (s) => {
81
- s.preventDefault();
82
- const c = d.findIndex((o) => o === l);
83
- h((o) => {
84
- o.splice(c, 1);
85
- });
86
- },
87
- children: (r = i.find((s) => l === s.value)) == null ? void 0 : r.label
88
- },
89
- t
90
- );
79
+ return /* @__PURE__ */ a.jsx(z, { bordered: !1, closable: !0, onClose: (s) => {
80
+ s.preventDefault();
81
+ const c = d.findIndex((o) => o === l);
82
+ h((o) => {
83
+ o.splice(c, 1);
84
+ });
85
+ }, children: (r = i.find((s) => l === s.value)) == null ? void 0 : r.label }, t);
91
86
  }) }),
92
- /* @__PURE__ */ a.jsx(T, { style: { color: "#d9d9d9" } })
93
- ] }) : /* @__PURE__ */ a.jsx(
94
- W,
95
- {
96
- placeholder: e.placeholder,
97
- onClick: () => x(!0),
98
- value: d,
99
- suffix: /* @__PURE__ */ a.jsx(T, { style: { color: "#d9d9d9" } })
100
- }
101
- );
87
+ /* @__PURE__ */ a.jsx(T, { style: {
88
+ color: "#d9d9d9"
89
+ } })
90
+ ] }) : /* @__PURE__ */ a.jsx(W, { placeholder: e.placeholder, onClick: () => x(!0), value: d, suffix: /* @__PURE__ */ a.jsx(T, { style: {
91
+ color: "#d9d9d9"
92
+ } }) });
102
93
  }
103
94
  function F() {
104
- return e.showSearch ? /* @__PURE__ */ a.jsx("div", { className: n["search-input"], children: /* @__PURE__ */ a.jsx(
105
- G,
106
- {
107
- onKeyUp: (l) => {
108
- if (e.onSearch) {
109
- e.onSearch(l.currentTarget.value);
110
- return;
111
- }
112
- O(l.currentTarget.value);
113
- }
95
+ return e.showSearch ? /* @__PURE__ */ a.jsx("div", { className: n["search-input"], children: /* @__PURE__ */ a.jsx(G, { onKeyUp: (l) => {
96
+ if (e.onSearch) {
97
+ e.onSearch(l.currentTarget.value);
98
+ return;
114
99
  }
115
- ) }) : null;
100
+ O(l.currentTarget.value);
101
+ } }) }) : null;
116
102
  }
117
103
  function H() {
118
104
  return u ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
119
105
  /* @__PURE__ */ a.jsx("div", { className: n["select-label"], children: "已选择:" }),
120
- /* @__PURE__ */ a.jsx(q, { size: [0, "small"], wrap: !0, className: n["tag-list"], children: f.map((l, t) => /* @__PURE__ */ a.jsx(
121
- z,
122
- {
123
- bordered: !1,
124
- closable: !0,
125
- onClose: (r) => {
126
- r.preventDefault();
127
- const s = f.findIndex((c) => l.value === c.value);
128
- v((c) => {
129
- c.splice(s, 1);
130
- });
131
- },
132
- children: l.label
133
- },
134
- t
135
- )) })
106
+ /* @__PURE__ */ a.jsx(q, { size: [0, "small"], wrap: !0, className: n["tag-list"], children: f.map((l, t) => /* @__PURE__ */ a.jsx(z, { bordered: !1, closable: !0, onClose: (r) => {
107
+ r.preventDefault();
108
+ const s = f.findIndex((c) => l.value === c.value);
109
+ v((c) => {
110
+ c.splice(s, 1);
111
+ });
112
+ }, children: l.label }, t)) })
136
113
  ] }) : null;
137
114
  }
138
115
  function K() {
139
- return (S ? i.filter((t) => S(L, t)) : i).map((t, r) => /* @__PURE__ */ a.jsx(
140
- "li",
141
- {
142
- className: n["wheel-item"],
143
- onClick: () => {
144
- u && v((s) => {
145
- if (f.find((c) => c.value === t.value)) {
146
- const c = f.findIndex((o) => t.value === o.value);
147
- s.splice(c, 1);
148
- } else
149
- s.push(t);
150
- });
151
- },
152
- children: t.label
153
- },
154
- r
155
- ));
116
+ return (S ? i.filter((t) => S(L, t)) : i).map((t, r) => /* @__PURE__ */ a.jsx("li", { className: n["wheel-item"], onClick: () => {
117
+ u && v((s) => {
118
+ if (f.find((c) => c.value === t.value)) {
119
+ const c = f.findIndex((o) => t.value === o.value);
120
+ s.splice(c, 1);
121
+ } else
122
+ s.push(t);
123
+ });
124
+ }, children: t.label }, r));
156
125
  }
157
126
  return /* @__PURE__ */ a.jsxs("div", { className: `bitzSelectMobileBlock ${e.className}`, children: [
158
127
  R(),
159
- /* @__PURE__ */ a.jsx(
160
- U,
161
- {
162
- open: j,
163
- handleCancel: V,
164
- handleOk: M,
165
- height: e.drawerHeight || 273,
166
- children: /* @__PURE__ */ a.jsxs("div", { ref: I, className: n.bitzSelectWrapper, children: [
167
- F(),
168
- H(),
169
- /* @__PURE__ */ a.jsxs("div", { className: n["picker-content"], children: [
170
- /* @__PURE__ */ a.jsx(
171
- "div",
172
- {
173
- className: `${n["mask-top"]} ${n["border-bottom-1px"]}`
174
- }
175
- ),
176
- /* @__PURE__ */ a.jsx(
177
- "div",
178
- {
179
- className: `${n["mask-bottom"]} ${n["border-top-1px"]}`
180
- }
181
- ),
182
- /* @__PURE__ */ a.jsx("div", { className: n["wheel-wrapper"], children: /* @__PURE__ */ a.jsx("div", { className: n.wheel, children: /* @__PURE__ */ a.jsx("ul", { className: n["wheel-scroll"], children: K() }) }) })
183
- ] })
184
- ] })
185
- }
186
- )
128
+ /* @__PURE__ */ a.jsx(U, { open: j, handleCancel: V, handleOk: M, height: e.drawerHeight || 273, children: /* @__PURE__ */ a.jsxs("div", { ref: I, className: n.bitzSelectWrapper, children: [
129
+ F(),
130
+ H(),
131
+ /* @__PURE__ */ a.jsxs("div", { className: n["picker-content"], children: [
132
+ /* @__PURE__ */ a.jsx("div", { className: `${n["mask-top"]} ${n["border-bottom-1px"]}` }),
133
+ /* @__PURE__ */ a.jsx("div", { className: `${n["mask-bottom"]} ${n["border-top-1px"]}` }),
134
+ /* @__PURE__ */ a.jsx("div", { className: n["wheel-wrapper"], children: /* @__PURE__ */ a.jsx("div", { className: n.wheel, children: /* @__PURE__ */ a.jsx("ul", { className: n["wheel-scroll"], children: K() }) }) })
135
+ ] })
136
+ ] }) })
187
137
  ] });
188
138
  };
189
139
  export {
@@ -2,8 +2,16 @@ import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Select as s } from "antd";
3
3
  import { isMobile as m } from "../../node_modules/react-device-detect/dist/lib.mjs";
4
4
  import p from "./component/BitzSelectMobile.mjs";
5
- const x = ({ placeholder: r = "请选择", options: e = [], ...i }) => {
6
- const t = { placeholder: r, options: e, ...i };
5
+ const x = ({
6
+ placeholder: r = "请选择",
7
+ options: e = [],
8
+ ...i
9
+ }) => {
10
+ const t = {
11
+ placeholder: r,
12
+ options: e,
13
+ ...i
14
+ };
7
15
  return m ? /* @__PURE__ */ o.jsx(p, { ...t }) : /* @__PURE__ */ o.jsx(s, { ...t });
8
16
  };
9
17
  export {
@@ -1,36 +1,6 @@
1
1
  import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Skeleton as n } from "antd";
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
- );
3
+ const o = (t) => /* @__PURE__ */ e.jsx(n, { ...t }), r = (t) => /* @__PURE__ */ e.jsx(n.Button, { ...t }), s = (t) => /* @__PURE__ */ e.jsx(n.Avatar, { ...t }), a = (t) => /* @__PURE__ */ e.jsx(n.Input, { ...t }), u = (t) => /* @__PURE__ */ e.jsx(n.Image, { ...t }), l = (t) => /* @__PURE__ */ e.jsx(n.Node, { ...t });
34
4
  o.Button = r;
35
5
  o.Avatar = s;
36
6
  o.Input = a;
@@ -19,19 +19,13 @@ const k = r.forwardRef((t, o) => {
19
19
  b(e);
20
20
  }
21
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
- );
22
+ return /* @__PURE__ */ f.jsx("div", { ref: o, className: p("bitzTabbarBlock", {
23
+ bitzTabbarFixedBlock: s,
24
+ bitzTabbarBlockBorder: c,
25
+ bitzTabbarBlockBottomSafe: l
26
+ }), style: {
27
+ zIndex: n
28
+ }, children: r.Children.map(d, u) });
35
29
  });
36
30
  export {
37
31
  k as default
@@ -3,11 +3,23 @@ import { useMemo as c } from "react";
3
3
  import { theme as s, Badge as C } from "antd";
4
4
  import j from "../../assets/iconfont/index.mjs";
5
5
  import "./index.less.mjs";
6
- const y = ({ name: o, config: t, title: n, children: l, badgeProps: m, ...v }) => {
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]);
6
+ const y = ({
7
+ name: o,
8
+ config: t,
9
+ title: n,
10
+ children: l,
11
+ badgeProps: m,
12
+ ...v
13
+ }) => {
14
+ const {
15
+ onClick: I,
16
+ currentName: e
17
+ } = 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
18
  return /* @__PURE__ */ r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
9
19
  /* @__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 })
20
+ /* @__PURE__ */ r.jsx("div", { className: "tabbarItemText", style: {
21
+ color: u
22
+ }, children: n || l })
11
23
  ] });
12
24
  };
13
25
  export {
@@ -14,94 +14,49 @@ const G = ({
14
14
  actions: m,
15
15
  children: E
16
16
  }) => {
17
- const { blockCls: x, addBtnClassName: y, btnClassName: p } = k(C), w = N(() => [
18
- {
19
- key: "download",
20
- label: "Excel模板下载"
21
- // icon: (
22
- // <CloudDownloadOutlined style={{ fontSize: 14 }} />
23
- // ),
24
- },
25
- {
26
- key: "import",
27
- label: "Excel数据导入"
28
- // icon: (
29
- // <CloudUploadOutlined style={{ fontSize: 14 }} />
30
- // ),
31
- },
32
- ...(r == null ? void 0 : r.otherMenu) ?? []
33
- ], [r]), d = N(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ? /* @__PURE__ */ s.jsx(
34
- i,
35
- {
36
- type: "primary",
37
- icon: /* @__PURE__ */ s.jsx(c, {}),
38
- className: h(y, t.className),
39
- ...a(t, "text", "type", "className", "children"),
40
- children: t == null ? void 0 : t.text
41
- },
42
- e
43
- ) : t.type === "secondary" ? /* @__PURE__ */ s.jsx(
44
- i,
45
- {
46
- type: "text",
47
- className: h(p, t.className),
48
- ...a(t, "text", "type", "className", "children"),
49
- children: t == null ? void 0 : t.text
50
- },
51
- e
52
- ) : /* @__PURE__ */ s.jsx(
53
- g,
54
- {
55
- getPopupContainer: (o) => {
56
- var j, u;
57
- return (u = (j = o.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
58
- },
59
- ...a(t, "text", "className", "children"),
60
- children: /* @__PURE__ */ s.jsx(
61
- i,
62
- {
63
- className: h(p, t.className),
64
- type: "text",
65
- children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
66
- !t.text || typeof t.text == "string" ? /* @__PURE__ */ s.jsx("span", { children: t.text }) : t.text,
67
- /* @__PURE__ */ s.jsx(f, {})
68
- ] })
69
- }
70
- )
71
- },
72
- e
73
- )), [m]);
74
- return /* @__PURE__ */ s.jsxs(l.Compact, { className: x, style: { height: "100%" }, children: [
75
- (n == null ? void 0 : n.show) !== !1 && /* @__PURE__ */ s.jsx(
76
- i,
77
- {
78
- type: "primary",
79
- icon: /* @__PURE__ */ s.jsx(c, {}),
80
- className: y,
81
- ...a(n, "text", "show", "type", "className", "children"),
82
- children: n == null ? void 0 : n.text
83
- }
84
- ),
17
+ const {
18
+ blockCls: x,
19
+ addBtnClassName: y,
20
+ btnClassName: p
21
+ } = k(C), w = N(() => [{
22
+ key: "download",
23
+ label: "Excel模板下载"
24
+ // icon: (
25
+ // <CloudDownloadOutlined style={{ fontSize: 14 }} />
26
+ // ),
27
+ }, {
28
+ key: "import",
29
+ label: "Excel数据导入"
30
+ // icon: (
31
+ // <CloudUploadOutlined style={{ fontSize: 14 }} />
32
+ // ),
33
+ }, ...(r == null ? void 0 : r.otherMenu) ?? []], [r]), d = N(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ? /* @__PURE__ */ s.jsx(i, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: h(y, t.className), ...a(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : t.type === "secondary" ? /* @__PURE__ */ s.jsx(i, { type: "text", className: h(p, t.className), ...a(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : /* @__PURE__ */ s.jsx(g, { getPopupContainer: (o) => {
34
+ var j, u;
35
+ return (u = (j = o.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
36
+ }, ...a(t, "text", "className", "children"), children: /* @__PURE__ */ s.jsx(i, { className: h(p, t.className), type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
37
+ !t.text || typeof t.text == "string" ? /* @__PURE__ */ s.jsx("span", { children: t.text }) : t.text,
38
+ /* @__PURE__ */ s.jsx(f, {})
39
+ ] }) }) }, e)), [m]);
40
+ return /* @__PURE__ */ s.jsxs(l.Compact, { className: x, style: {
41
+ height: "100%"
42
+ }, children: [
43
+ (n == null ? void 0 : n.show) !== !1 && /* @__PURE__ */ s.jsx(i, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: y, ...a(n, "text", "show", "type", "className", "children"), children: n == null ? void 0 : n.text }),
85
44
  m ? d : E,
86
- (r == null ? void 0 : r.show) !== !1 && /* @__PURE__ */ s.jsx(
87
- g,
88
- {
89
- menu: { items: w, onClick: ({ key: t }) => {
90
- var e;
91
- return (e = r == null ? void 0 : r.onClick) == null ? void 0 : e.call(r, t);
92
- } },
93
- trigger: (r == null ? void 0 : r.trigger) || ["click"],
94
- getPopupContainer: (t) => {
95
- var e, o;
96
- return (o = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : o.parentElement;
97
- },
98
- ...a(r, "text", "show", "menu", "trigger", "children"),
99
- children: /* @__PURE__ */ s.jsx(i, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
100
- /* @__PURE__ */ s.jsx("span", { children: (r == null ? void 0 : r.text) ?? "Excel文档导入" }),
101
- /* @__PURE__ */ s.jsx(f, {})
102
- ] }) })
45
+ (r == null ? void 0 : r.show) !== !1 && /* @__PURE__ */ s.jsx(g, { menu: {
46
+ items: w,
47
+ onClick: ({
48
+ key: t
49
+ }) => {
50
+ var e;
51
+ return (e = r == null ? void 0 : r.onClick) == null ? void 0 : e.call(r, t);
103
52
  }
104
- )
53
+ }, trigger: (r == null ? void 0 : r.trigger) || ["click"], getPopupContainer: (t) => {
54
+ var e, o;
55
+ return (o = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : o.parentElement;
56
+ }, ...a(r, "text", "show", "menu", "trigger", "children"), children: /* @__PURE__ */ s.jsx(i, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
57
+ /* @__PURE__ */ s.jsx("span", { children: (r == null ? void 0 : r.text) ?? "Excel文档导入" }),
58
+ /* @__PURE__ */ s.jsx(f, {})
59
+ ] }) }) })
105
60
  ] });
106
61
  };
107
62
  export {
@@ -10,7 +10,10 @@ const z = ({
10
10
  type: r,
11
11
  ...i
12
12
  }) => {
13
- const { addBtnClassName: m, btnClassName: a } = B(), u = s(() => {
13
+ const {
14
+ addBtnClassName: m,
15
+ btnClassName: a
16
+ } = B(), u = s(() => {
14
17
  if (n)
15
18
  return n;
16
19
  if (r === "primary")
@@ -18,81 +18,76 @@ import { BitzTableContext as I } from "../Store/index.mjs";
18
18
  import x from "../../../node_modules/classnames/index.mjs";
19
19
  import M from "../../BitzTheme/index.mjs";
20
20
  const tt = (l) => {
21
- const { theme: y, hashId: n, token: i } = M.useToken(), { tableSize: s } = w(I), v = C(() => l ?? s ?? "lg", [l, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "secondaryBtn", D = (o, m, t, e) => {
21
+ const {
22
+ theme: y,
23
+ hashId: n,
24
+ token: i
25
+ } = M.useToken(), {
26
+ tableSize: s
27
+ } = w(I), v = C(() => l ?? s ?? "lg", [l, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "secondaryBtn", D = (o, m, t, e) => {
22
28
  var d, $, T, S, f, z, g, u, B, h;
23
- return [
24
- {
25
- [`.${o} .${m}`]: {
26
- height: "100%",
27
- borderRadius: 0,
28
- paddingBlock: 0,
29
- borderColor: "transparent",
30
- ".ant-btn-icon .anticon": {
31
- verticalAlign: "-0.14em"
32
- },
33
- ".ant-btn-icon > svg": {
34
- transform: "translateY(0.25em)"
35
- }
36
- }
37
- },
38
- {
39
- [`.${o} .xl${t}`]: {
40
- fontSize: ($ = (d = e.Table) == null ? void 0 : d.xlTable) == null ? void 0 : $.fontSize
41
- }
42
- },
43
- {
44
- [`.${o} .lg${t}`]: {
45
- fontSize: (S = (T = e.Table) == null ? void 0 : T.lgTable) == null ? void 0 : S.fontSize
29
+ return [{
30
+ [`.${o} .${m}`]: {
31
+ height: "100%",
32
+ borderRadius: 0,
33
+ paddingBlock: 0,
34
+ borderColor: "transparent",
35
+ ".ant-btn-icon .anticon": {
36
+ verticalAlign: "-0.14em"
37
+ },
38
+ ".ant-btn-icon > svg": {
39
+ transform: "translateY(0.25em)"
46
40
  }
41
+ }
42
+ }, {
43
+ [`.${o} .xl${t}`]: {
44
+ fontSize: ($ = (d = e.Table) == null ? void 0 : d.xlTable) == null ? void 0 : $.fontSize
45
+ }
46
+ }, {
47
+ [`.${o} .lg${t}`]: {
48
+ fontSize: (S = (T = e.Table) == null ? void 0 : T.lgTable) == null ? void 0 : S.fontSize
49
+ }
50
+ }, {
51
+ [`.${o} .md${t}`]: {
52
+ fontSize: (z = (f = e.Table) == null ? void 0 : f.mdTable) == null ? void 0 : z.fontSize
53
+ }
54
+ }, {
55
+ [`.${o} .sm${t}`]: {
56
+ fontSize: (u = (g = e.Table) == null ? void 0 : g.smTable) == null ? void 0 : u.fontSize
57
+ }
58
+ }, {
59
+ [`.${o} .xs${t}`]: {
60
+ fontSize: (h = (B = e.Table) == null ? void 0 : B.xsTable) == null ? void 0 : h.fontSize
61
+ }
62
+ }];
63
+ }, A = (o, m, t) => [{
64
+ [`.${o} .${m}`]: {
65
+ "&:hover": {
66
+ color: `${t.colorText} !important`
47
67
  },
48
- {
49
- [`.${o} .md${t}`]: {
50
- fontSize: (z = (f = e.Table) == null ? void 0 : f.mdTable) == null ? void 0 : z.fontSize
51
- }
68
+ "&:focus": {
69
+ color: `${t.colorText} !important`
52
70
  },
53
- {
54
- [`.${o} .sm${t}`]: {
55
- fontSize: (u = (g = e.Table) == null ? void 0 : g.smTable) == null ? void 0 : u.fontSize
56
- }
71
+ "&:disabled:hover": {
72
+ color: `${t.colorTextDisabled} !important`
57
73
  },
58
- {
59
- [`.${o} .xs${t}`]: {
60
- fontSize: (h = (B = e.Table) == null ? void 0 : B.xsTable) == null ? void 0 : h.fontSize
61
- }
62
- }
63
- ];
64
- }, A = (o, m, t) => [
65
- {
66
- [`.${o} .${m}`]: {
67
- "&:hover": {
68
- color: `${t.colorText} !important`
69
- },
70
- "&:focus": {
71
- color: `${t.colorText} !important`
72
- },
73
- "&:disabled:hover": {
74
- color: `${t.colorTextDisabled} !important`
75
- },
76
- "&:disabled:focus": {
77
- color: `${t.colorTextDisabled} !important`
78
- }
74
+ "&:disabled:focus": {
75
+ color: `${t.colorTextDisabled} !important`
79
76
  }
80
77
  }
81
- ];
82
- G(
83
- {
84
- theme: y,
85
- token: i,
86
- hashId: n,
87
- path: [r]
88
- },
89
- () => [
90
- D(r, a, c, i),
91
- A(r, p, i)
92
- ]
93
- );
78
+ }];
79
+ G({
80
+ theme: y,
81
+ token: i,
82
+ hashId: n,
83
+ path: [r]
84
+ }, () => [D(r, a, c, i), A(r, p, i)]);
94
85
  const b = `${v}${c}`, N = x(a, b, n), R = x(a, p, b, n);
95
- return { blockCls: r, addBtnClassName: N, btnClassName: R };
86
+ return {
87
+ blockCls: r,
88
+ addBtnClassName: N,
89
+ btnClassName: R
90
+ };
96
91
  };
97
92
  export {
98
93
  tt as default