bitz-react-admin-ui 2.2.6 → 2.2.8
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.
- package/dist/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.d.ts +5 -1
- package/dist/components/BitzTable/Store/index.mjs +189 -199
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +76 -119
- package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +257 -446
- package/dist/components/BitzTable/Table/style.mjs +1 -11
- package/dist/components/BitzTable/Table/utils.d.ts +2 -2
- package/dist/components/BitzTable/Table/utils.mjs +30 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +147 -255
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTable/index.d.ts +3 -2
- package/dist/components/BitzTable/index.mjs +17 -15
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +12 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -42,47 +42,14 @@ const N = ({ tagData: h = [], changeEmit: c = () => {
|
|
|
42
42
|
borderStyle: "border",
|
|
43
43
|
cursor: "pointer"
|
|
44
44
|
};
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
style: b,
|
|
54
|
-
value: a,
|
|
55
|
-
onChange: A,
|
|
56
|
-
onBlur: E,
|
|
57
|
-
onPressEnter: E
|
|
58
|
-
},
|
|
59
|
-
o
|
|
60
|
-
);
|
|
61
|
-
const i = (e == null ? void 0 : e.length) > 20, S = /* @__PURE__ */ t.jsx(V, { closable: !0, style: { userSelect: "none" }, onClose: () => B(e), children: /* @__PURE__ */ t.jsx(
|
|
62
|
-
"span",
|
|
63
|
-
{
|
|
64
|
-
onDoubleClick: (F) => {
|
|
65
|
-
o !== 0 && (j(o), d(e), F.preventDefault());
|
|
66
|
-
},
|
|
67
|
-
children: i ? `${e.slice(0, 20)}...` : e
|
|
68
|
-
}
|
|
69
|
-
) }, e);
|
|
70
|
-
return i ? /* @__PURE__ */ t.jsx(O, { title: e, children: S }, e) : S;
|
|
71
|
-
}) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
72
|
-
p ? /* @__PURE__ */ t.jsx(
|
|
73
|
-
T,
|
|
74
|
-
{
|
|
75
|
-
ref: C,
|
|
76
|
-
type: "text",
|
|
77
|
-
size: "small",
|
|
78
|
-
style: b,
|
|
79
|
-
value: r,
|
|
80
|
-
onChange: R,
|
|
81
|
-
onBlur: y,
|
|
82
|
-
onPressEnter: y
|
|
83
|
-
}
|
|
84
|
-
) : /* @__PURE__ */ t.jsx(V, { style: w, icon: /* @__PURE__ */ t.jsx($, {}), onClick: P, children: k("System_Add", "添加") })
|
|
85
|
-
] });
|
|
45
|
+
return t.jsxs(M, { size: [0, 8], wrap: !0, children: [(n == null ? void 0 : n.length) > 0 ? t.jsx(t.Fragment, { children: n.map((e, o) => {
|
|
46
|
+
if (x === o)
|
|
47
|
+
return t.jsx(T, { ref: g, size: "small", style: b, value: a, onChange: A, onBlur: E, onPressEnter: E }, o);
|
|
48
|
+
const i = (e == null ? void 0 : e.length) > 20, S = t.jsx(V, { closable: !0, style: { userSelect: "none" }, onClose: () => B(e), children: t.jsx("span", { onDoubleClick: (F) => {
|
|
49
|
+
o !== 0 && (j(o), d(e), F.preventDefault());
|
|
50
|
+
}, children: i ? `${e.slice(0, 20)}...` : e }) }, e);
|
|
51
|
+
return i ? t.jsx(O, { title: e, children: S }, e) : S;
|
|
52
|
+
}) }) : t.jsx(t.Fragment, {}), p ? t.jsx(T, { ref: C, type: "text", size: "small", style: b, value: r, onChange: R, onBlur: y, onPressEnter: y }) : t.jsx(V, { style: w, icon: t.jsx($, {}), onClick: P, children: k("System_Add", "添加") })] });
|
|
86
53
|
};
|
|
87
54
|
export {
|
|
88
55
|
N as default
|
|
@@ -1,134 +1,47 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as j, useRef as v } from "react";
|
|
3
3
|
import { Tabs as N, Row as B, Space as y } from "antd";
|
|
4
4
|
import r from "./index.module.less.mjs";
|
|
5
5
|
import C from "../BitzEmpty/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
const d = ["全部", "0-9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], a = v(null), [
|
|
12
|
-
function
|
|
6
|
+
import A from "../BitzDrawer/index.mjs";
|
|
7
|
+
import m from "../BitzButton/index.mjs";
|
|
8
|
+
import g from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs";
|
|
9
|
+
import k from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs";
|
|
10
|
+
const z = ({ list: l, onSelect: t, onClickItem: n }) => {
|
|
11
|
+
const d = ["全部", "0-9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], a = v(null), [u, p] = j("全部");
|
|
12
|
+
function x(e) {
|
|
13
13
|
return /[\u4e00-\u9fa5]/.test(e) ? e == null ? void 0 : e.slice(1) : e == null ? void 0 : e.slice(0, 4);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return e.length ? e == null ? void 0 : e.map((i) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className: r.item,
|
|
20
|
-
onClick: () => {
|
|
21
|
-
n == null || n(i);
|
|
22
|
-
},
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ s.jsx("div", { className: r.avatar, children: f(i.name) }),
|
|
25
|
-
/* @__PURE__ */ s.jsxs("div", { className: r.info, children: [
|
|
26
|
-
/* @__PURE__ */ s.jsx("div", { className: r.name, children: i.name }),
|
|
27
|
-
/* @__PURE__ */ s.jsx("div", { className: r.phone, children: i.phone })
|
|
28
|
-
] })
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
i.id
|
|
32
|
-
)) : /* @__PURE__ */ s.jsx(C, { style: { marginTop: 100 } });
|
|
33
|
-
}
|
|
34
|
-
return /* @__PURE__ */ s.jsxs("div", { ref: a, className: r.container, children: [
|
|
35
|
-
/* @__PURE__ */ s.jsx("div", { className: r.main, children: j(l) }),
|
|
36
|
-
/* @__PURE__ */ s.jsx("div", { className: r.sidebar, children: d.map((e) => /* @__PURE__ */ s.jsx(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
className: `${r.item} ${p === e ? r.active : ""}`,
|
|
40
|
-
onClick: () => {
|
|
41
|
-
x(e), t == null || t(e);
|
|
42
|
-
},
|
|
43
|
-
children: e
|
|
44
|
-
},
|
|
45
|
-
e
|
|
46
|
-
)) })
|
|
47
|
-
] });
|
|
48
|
-
}, P = ({
|
|
49
|
-
tabs: l = [],
|
|
50
|
-
list: t = [],
|
|
51
|
-
filterChildren: n,
|
|
52
|
-
filterHeight: d = 240,
|
|
53
|
-
onSearch: a = () => {
|
|
54
|
-
},
|
|
55
|
-
onSelect: p = () => {
|
|
56
|
-
},
|
|
57
|
-
tabChange: x = () => {
|
|
58
|
-
},
|
|
59
|
-
onClickItem: f = () => {
|
|
60
|
-
},
|
|
61
|
-
onReset: j = () => {
|
|
62
|
-
},
|
|
63
|
-
onOk: e = () => {
|
|
15
|
+
function f(e) {
|
|
16
|
+
return e.length ? e == null ? void 0 : e.map((i) => s.jsxs("div", { className: r.item, onClick: () => {
|
|
17
|
+
n == null || n(i);
|
|
18
|
+
}, children: [s.jsx("div", { className: r.avatar, children: x(i.name) }), s.jsxs("div", { className: r.info, children: [s.jsx("div", { className: r.name, children: i.name }), s.jsx("div", { className: r.phone, children: i.phone })] })] }, i.id)) : s.jsx(C, { style: { marginTop: 100 } });
|
|
64
19
|
}
|
|
65
|
-
}) => {
|
|
20
|
+
return s.jsxs("div", { ref: a, className: r.container, children: [s.jsx("div", { className: r.main, children: f(l) }), s.jsx("div", { className: r.sidebar, children: d.map((e) => s.jsx("div", { className: `${r.item} ${u === e ? r.active : ""}`, onClick: () => {
|
|
21
|
+
p(e), t == null || t(e);
|
|
22
|
+
}, children: e }, e)) })] });
|
|
23
|
+
}, K = ({ tabs: l = [], list: t = [], filterChildren: n, filterHeight: d = 240, onSearch: a = () => {
|
|
24
|
+
}, onSelect: u = () => {
|
|
25
|
+
}, tabChange: p = () => {
|
|
26
|
+
}, onClickItem: x = () => {
|
|
27
|
+
}, onReset: f = () => {
|
|
28
|
+
}, onOk: e = () => {
|
|
29
|
+
} }) => {
|
|
66
30
|
const i = l.map((c) => ({
|
|
67
31
|
...c,
|
|
68
|
-
children:
|
|
69
|
-
})), [h, o] =
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
onKeyUp: (c) => {
|
|
80
|
-
c.code.toLowerCase() === "enter" && (a == null || a(c.currentTarget.value));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ s.jsx(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
className: r.filterIcon,
|
|
89
|
-
onClick: () => {
|
|
90
|
-
o(!0);
|
|
91
|
-
},
|
|
92
|
-
children: /* @__PURE__ */ s.jsx(z, {})
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
] }),
|
|
96
|
-
/* @__PURE__ */ s.jsx(N, { items: i, onChange: x, destroyInactiveTabPane: !0 }),
|
|
97
|
-
/* @__PURE__ */ s.jsx(
|
|
98
|
-
g,
|
|
99
|
-
{
|
|
100
|
-
title: "筛选",
|
|
101
|
-
height: d,
|
|
102
|
-
open: h,
|
|
103
|
-
placement: "bottom",
|
|
104
|
-
onClose: () => o(!1),
|
|
105
|
-
footer: /* @__PURE__ */ s.jsx(B, { justify: "center", children: /* @__PURE__ */ s.jsxs(y, { children: [
|
|
106
|
-
/* @__PURE__ */ s.jsx(
|
|
107
|
-
u,
|
|
108
|
-
{
|
|
109
|
-
onClick: () => {
|
|
110
|
-
j(), o(!1);
|
|
111
|
-
},
|
|
112
|
-
children: "重置"
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ s.jsx(
|
|
116
|
-
u,
|
|
117
|
-
{
|
|
118
|
-
type: "primary",
|
|
119
|
-
onClick: () => {
|
|
120
|
-
e(), o(!1);
|
|
121
|
-
},
|
|
122
|
-
children: "确认"
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }) }),
|
|
126
|
-
children: n
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
] });
|
|
32
|
+
children: s.jsx(z, { list: t, onSelect: u, onClickItem: x })
|
|
33
|
+
})), [h, o] = j(!1);
|
|
34
|
+
return s.jsxs("div", { className: r.BitzAdressBook, children: [s.jsxs("div", { className: r.filter, children: [s.jsxs("div", { className: r.input, children: [s.jsx(g, { className: r.icon }), s.jsx("input", { placeholder: "姓名", type: "text", onKeyUp: (c) => {
|
|
35
|
+
c.code.toLowerCase() === "enter" && (a == null || a(c.currentTarget.value));
|
|
36
|
+
} })] }), s.jsx("div", { className: r.filterIcon, onClick: () => {
|
|
37
|
+
o(!0);
|
|
38
|
+
}, children: s.jsx(k, {}) })] }), s.jsx(N, { items: i, onChange: p, destroyInactiveTabPane: !0 }), s.jsx(A, { title: "筛选", height: d, open: h, placement: "bottom", onClose: () => o(!1), footer: s.jsx(B, { justify: "center", children: s.jsxs(y, { children: [s.jsx(m, { onClick: () => {
|
|
39
|
+
f(), o(!1);
|
|
40
|
+
}, children: "重置" }), s.jsx(m, { type: "primary", onClick: () => {
|
|
41
|
+
e(), o(!1);
|
|
42
|
+
}, children: "确认" })] }) }), children: n })] });
|
|
130
43
|
};
|
|
131
44
|
export {
|
|
132
|
-
|
|
133
|
-
|
|
45
|
+
z as AdressBook,
|
|
46
|
+
K as default
|
|
134
47
|
};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import a from "../../assets/iconfont/index.mjs";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
backIcon: c = "fanhui",
|
|
8
|
-
mainIcon: o = "ic_fluent_home_regular",
|
|
9
|
-
onClickBack: r = () => {
|
|
10
|
-
},
|
|
11
|
-
onClickMain: n = () => {
|
|
12
|
-
}
|
|
13
|
-
}) => /* @__PURE__ */ s.jsxs("div", { className: "bitzAppPage", children: [
|
|
14
|
-
/* @__PURE__ */ s.jsxs("div", { className: "pageNavBar", children: [
|
|
15
|
-
/* @__PURE__ */ s.jsx("div", { className: "barLeft", onClick: r, children: /* @__PURE__ */ s.jsx(a, { className: "icon", color: "#333", size: 24, name: c }) }),
|
|
16
|
-
i,
|
|
17
|
-
/* @__PURE__ */ s.jsx("div", { className: "barRight", onClick: n, children: /* @__PURE__ */ s.jsx(a, { className: "icon", color: "#333", size: 24, name: o }) })
|
|
18
|
-
] }),
|
|
19
|
-
/* @__PURE__ */ s.jsx("div", { className: "pageContent", children: e })
|
|
20
|
-
] });
|
|
4
|
+
const d = ({ children: e, title: i = "律智荟", backIcon: c = "fanhui", mainIcon: r = "ic_fluent_home_regular", onClickBack: n = () => {
|
|
5
|
+
}, onClickMain: o = () => {
|
|
6
|
+
} }) => s.jsxs("div", { className: "bitzAppPage", children: [s.jsxs("div", { className: "pageNavBar", children: [s.jsx("div", { className: "barLeft", onClick: n, children: s.jsx(a, { className: "icon", color: "#333", size: 24, name: c }) }), i, s.jsx("div", { className: "barRight", onClick: o, children: s.jsx(a, { className: "icon", color: "#333", size: 24, name: r }) })] }), s.jsx("div", { className: "pageContent", children: e })] });
|
|
21
7
|
export {
|
|
22
|
-
|
|
8
|
+
d as default
|
|
23
9
|
};
|
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { isMobile as
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { isMobile as p } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
4
|
import P from "../BitzRefresh/index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const
|
|
6
|
+
const M = ({ children: c, pageRefeshEmit: r = () => {
|
|
7
7
|
} }) => {
|
|
8
|
-
const [a, s] =
|
|
9
|
-
const n =
|
|
10
|
-
|
|
11
|
-
}, l = (
|
|
12
|
-
const
|
|
13
|
-
e(
|
|
14
|
-
},
|
|
15
|
-
|
|
8
|
+
const [a, s] = t(!1), [h, u] = t(0), [f, e] = t(0), m = (o) => {
|
|
9
|
+
const n = o.changedTouches[0].clientY;
|
|
10
|
+
u(n);
|
|
11
|
+
}, l = (o) => {
|
|
12
|
+
const d = o.changedTouches[0].clientY - h;
|
|
13
|
+
e(d);
|
|
14
|
+
}, T = () => {
|
|
15
|
+
p && (f > 400 && (s(!0), setTimeout(() => {
|
|
16
16
|
r(), s(!1);
|
|
17
17
|
}, 2e3)), e(0));
|
|
18
18
|
};
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
className: "bitzPageBlock",
|
|
23
|
-
onTouchStart: m,
|
|
24
|
-
onTouchMove: l,
|
|
25
|
-
onTouchEnd: () => {
|
|
26
|
-
d();
|
|
27
|
-
},
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ i.jsx(P, { showRefresh: a }),
|
|
30
|
-
c
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
);
|
|
19
|
+
return i.jsxs("div", { className: "bitzPageBlock", onTouchStart: m, onTouchMove: l, onTouchEnd: () => {
|
|
20
|
+
T();
|
|
21
|
+
}, children: [i.jsx(P, { showRefresh: a }), c] });
|
|
34
22
|
};
|
|
35
23
|
export {
|
|
36
|
-
|
|
24
|
+
M as default
|
|
37
25
|
};
|
|
@@ -4,11 +4,11 @@ import l from "../../node_modules/.store/prop-types@15.8.1/node_modules/prop-typ
|
|
|
4
4
|
import x from "../../node_modules/.store/better-scroll@2.5.1/node_modules/better-scroll/dist/better-scroll.esm.mjs";
|
|
5
5
|
import { debounce as m } from "../../node_modules/.store/throttle-debounce@5.0.0/node_modules/throttle-debounce/esm/index.mjs";
|
|
6
6
|
const b = T((u, h) => {
|
|
7
|
-
const [o, s] = E(),
|
|
7
|
+
const [o, s] = E(), i = L(), { direction: f, click: w, refresh: D, pullUpLoading: y, pullDownLoading: P, bounceTop: S, bounceBottom: B } = u, { pullUp: n, pullDown: t, onScroll: c } = u, p = d(() => m(500, n), [n]), a = d(() => m(500, t), [t]);
|
|
8
8
|
return e(() => {
|
|
9
|
-
const r = new x(
|
|
10
|
-
scrollX:
|
|
11
|
-
scrollY:
|
|
9
|
+
const r = new x(i.current, {
|
|
10
|
+
scrollX: f === "horizental",
|
|
11
|
+
scrollY: f === "vertical",
|
|
12
12
|
probeType: 3,
|
|
13
13
|
click: w,
|
|
14
14
|
bounce: {
|
|
@@ -52,7 +52,7 @@ const b = T((u, h) => {
|
|
|
52
52
|
if (o)
|
|
53
53
|
return o;
|
|
54
54
|
}
|
|
55
|
-
})),
|
|
55
|
+
})), g.jsx("div", { className: "scroll_container", ref: i, children: u.children });
|
|
56
56
|
});
|
|
57
57
|
b.defaultProps = {
|
|
58
58
|
direction: "vertical",
|
|
@@ -2,29 +2,15 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { Button as l } from "antd";
|
|
3
3
|
const c = ({ type: d = "default", warning: f = !1, success: n = !1, ...o }) => {
|
|
4
4
|
const r = { type: d, ...o };
|
|
5
|
-
return o.danger ?
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children: r.children
|
|
15
|
-
}
|
|
16
|
-
) : d === "text" || d === "link" ? /* @__PURE__ */ e.jsx(l, { style: { color: "#ff8f1f" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { style: { backgroundColor: "#ff8f1f" }, ...r, children: r.children }) : n ? d === "default" ? /* @__PURE__ */ e.jsx(l, { style: { borderColor: "#00b578", color: "#00b578" }, ...r, children: r.children }) : d === "dashed" ? /* @__PURE__ */ e.jsx(
|
|
17
|
-
l,
|
|
18
|
-
{
|
|
19
|
-
style: {
|
|
20
|
-
borderColor: "#00b578",
|
|
21
|
-
borderWidth: "dashed",
|
|
22
|
-
color: "#00b578"
|
|
23
|
-
},
|
|
24
|
-
...r,
|
|
25
|
-
children: r.children
|
|
26
|
-
}
|
|
27
|
-
) : d === "text" || d === "link" ? /* @__PURE__ */ e.jsx(l, { style: { color: "#00b578" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { style: { backgroundColor: "#00b578" }, ...r, children: r.children }) : /* @__PURE__ */ e.jsx(l, { ...r, children: r.children });
|
|
5
|
+
return o.danger ? e.jsx(l, { danger: !0, ...r, children: r.children }) : f ? d === "default" ? e.jsx(l, { style: { borderColor: "#ff8f1f", color: "#ff8f1f" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
|
|
6
|
+
borderColor: "#ff8f1f",
|
|
7
|
+
borderWidth: "dashed",
|
|
8
|
+
color: "#ff8f1f"
|
|
9
|
+
}, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#ff8f1f" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#ff8f1f" }, ...r, children: r.children }) : n ? d === "default" ? e.jsx(l, { style: { borderColor: "#00b578", color: "#00b578" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
|
|
10
|
+
borderColor: "#00b578",
|
|
11
|
+
borderWidth: "dashed",
|
|
12
|
+
color: "#00b578"
|
|
13
|
+
}, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { ...r, children: r.children });
|
|
28
14
|
};
|
|
29
15
|
export {
|
|
30
16
|
c as default
|
|
@@ -16,58 +16,25 @@ const A = ({ fold: l = !1, ...g }) => {
|
|
|
16
16
|
l ? o.style.display = o === r ? "table-row" : "none" : o.style.display = "table-row";
|
|
17
17
|
});
|
|
18
18
|
}, 0);
|
|
19
|
-
}, [l]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
39
|
-
return /* @__PURE__ */ n.jsx("div", { style: { padding: 8 }, children: /* @__PURE__ */ n.jsxs(w, { gutter: 8, children: [
|
|
40
|
-
/* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsx(
|
|
41
|
-
a,
|
|
42
|
-
{
|
|
43
|
-
size: "small",
|
|
44
|
-
popupMatchSelectWidth: !1,
|
|
45
|
-
className: "my-year-select",
|
|
46
|
-
value: h,
|
|
47
|
-
onChange: (e) => {
|
|
48
|
-
const p = t.clone().year(e);
|
|
49
|
-
s(p);
|
|
50
|
-
},
|
|
51
|
-
children: j
|
|
52
|
-
}
|
|
53
|
-
) }),
|
|
54
|
-
/* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsx(
|
|
55
|
-
a,
|
|
56
|
-
{
|
|
57
|
-
size: "small",
|
|
58
|
-
popupMatchSelectWidth: !1,
|
|
59
|
-
value: S,
|
|
60
|
-
onChange: (e) => {
|
|
61
|
-
const p = t.clone().month(e);
|
|
62
|
-
s(p);
|
|
63
|
-
},
|
|
64
|
-
children: o
|
|
65
|
-
}
|
|
66
|
-
) })
|
|
67
|
-
] }) });
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
) });
|
|
19
|
+
}, [l]), n.jsx("div", { ref: f, children: n.jsx(k, { className: "BitzCalendarBlock", fullscreen: !1, headerRender: m.headerRender ? m.headerRender : ({ value: t, type: r, onChange: s, onTypeChange: u }) => {
|
|
20
|
+
const o = [];
|
|
21
|
+
let d = t.clone();
|
|
22
|
+
const z = t.localeData(), x = [];
|
|
23
|
+
for (let e = 0; e < 12; e++)
|
|
24
|
+
d = d.month(e), x.push(z.monthsShort(d));
|
|
25
|
+
for (let e = 0; e < 12; e++)
|
|
26
|
+
o.push(n.jsx(a.Option, { value: e, className: "month-item", children: x[e] }, e));
|
|
27
|
+
const h = t.year(), S = t.month(), j = [];
|
|
28
|
+
for (let e = h - 10; e < h + 10; e += 1)
|
|
29
|
+
j.push(n.jsx(a.Option, { value: e, className: "year-item", children: e }, e));
|
|
30
|
+
return n.jsx("div", { style: { padding: 8 }, children: n.jsxs(w, { gutter: 8, children: [n.jsx(y, { children: n.jsx(a, { size: "small", popupMatchSelectWidth: !1, className: "my-year-select", value: h, onChange: (e) => {
|
|
31
|
+
const p = t.clone().year(e);
|
|
32
|
+
s(p);
|
|
33
|
+
}, children: j }) }), n.jsx(y, { children: n.jsx(a, { size: "small", popupMatchSelectWidth: !1, value: S, onChange: (e) => {
|
|
34
|
+
const p = t.clone().month(e);
|
|
35
|
+
s(p);
|
|
36
|
+
}, children: o }) })] }) });
|
|
37
|
+
} }) });
|
|
71
38
|
};
|
|
72
39
|
export {
|
|
73
40
|
A as default
|
|
@@ -1,88 +1,50 @@
|
|
|
1
1
|
import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Input as
|
|
4
|
-
import { useImmer as
|
|
5
|
-
import { BitzPickDrawer as
|
|
6
|
-
import
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import { Input as K, Tabs as N, Radio as O } from "antd";
|
|
4
|
+
import { useImmer as g } from "../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
5
|
+
import { BitzPickDrawer as z } from "../BitzDrawer/index.mjs";
|
|
6
|
+
import B from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
|
|
7
7
|
const d = { label: "请选择", key: "", value: "" }, V = (t) => {
|
|
8
8
|
var f;
|
|
9
|
-
const [v, x] =
|
|
9
|
+
const [v, x] = u(((f = t.defaultValue) == null ? void 0 : f.join(" / ")) || ""), [j, r] = u(!1), [o, b] = g([{ ...d, children: t.options }]), [h, i] = u(d.label), m = () => {
|
|
10
10
|
r(!1), b([{ ...d, children: t.options }]), i(d.label);
|
|
11
11
|
}, k = () => {
|
|
12
12
|
var s;
|
|
13
|
-
const
|
|
13
|
+
const e = o.slice(1), a = e.map((c) => ({
|
|
14
14
|
label: c.label,
|
|
15
15
|
value: c.value
|
|
16
|
-
})),
|
|
17
|
-
(s = t.onChange) == null || s.call(t,
|
|
18
|
-
}, C = (
|
|
16
|
+
})), l = e.map((c) => c.key);
|
|
17
|
+
(s = t.onChange) == null || s.call(t, l, a), r(!1), x(l.join(" / "));
|
|
18
|
+
}, C = (e) => {
|
|
19
19
|
b((a) => {
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
const c =
|
|
20
|
+
const l = o.at(-1), s = a.at(-1);
|
|
21
|
+
if (l) {
|
|
22
|
+
const c = l.children, p = l.label;
|
|
23
23
|
if (c != null && c.find((I) => I.label === p)) {
|
|
24
|
-
s.label =
|
|
24
|
+
s.label = e.label, s.key = e.label, i(e.label);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
a.push({
|
|
29
|
-
key:
|
|
30
|
-
label:
|
|
31
|
-
value:
|
|
32
|
-
children:
|
|
33
|
-
}), i(
|
|
29
|
+
key: e.label,
|
|
30
|
+
label: e.label,
|
|
31
|
+
value: e.label,
|
|
32
|
+
children: e.children ? e.children : s.children
|
|
33
|
+
}), i(e.label);
|
|
34
34
|
});
|
|
35
|
-
}, y = (
|
|
36
|
-
i(
|
|
37
|
-
const a = o.slice(0, o.findIndex((
|
|
35
|
+
}, y = (e) => {
|
|
36
|
+
i(e);
|
|
37
|
+
const a = o.slice(0, o.findIndex((l) => l.label === e) + 1);
|
|
38
38
|
b(a);
|
|
39
39
|
};
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ n.jsx(
|
|
51
|
-
K,
|
|
52
|
-
{
|
|
53
|
-
open: j,
|
|
54
|
-
handleCancel: m,
|
|
55
|
-
handleOk: k,
|
|
56
|
-
children: /* @__PURE__ */ n.jsx(
|
|
57
|
-
g,
|
|
58
|
-
{
|
|
59
|
-
defaultActiveKey: u,
|
|
60
|
-
activeKey: u,
|
|
61
|
-
items: o.map((l) => {
|
|
62
|
-
var a;
|
|
63
|
-
return {
|
|
64
|
-
key: l.label,
|
|
65
|
-
label: l.label,
|
|
66
|
-
children: (a = l.children) == null ? void 0 : a.map((e, s) => /* @__PURE__ */ n.jsxs(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: "item",
|
|
70
|
-
onClick: () => C(e),
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ n.jsx("span", { children: e.label }),
|
|
73
|
-
/* @__PURE__ */ n.jsx("span", { children: e.label === u ? /* @__PURE__ */ n.jsx(z, { checked: !0 }) : "" })
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
s
|
|
77
|
-
))
|
|
78
|
-
};
|
|
79
|
-
}),
|
|
80
|
-
onChange: y
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] });
|
|
40
|
+
return n.jsxs("div", { className: "bitzCascaderMobileBlock", children: [n.jsx(K, { placeholder: t.placeholder, onClick: () => r(!0), value: v, suffix: n.jsx(B, {}) }), n.jsx(z, { open: j, handleCancel: m, handleOk: k, children: n.jsx(N, { defaultActiveKey: h, activeKey: h, items: o.map((e) => {
|
|
41
|
+
var a;
|
|
42
|
+
return {
|
|
43
|
+
key: e.label,
|
|
44
|
+
label: e.label,
|
|
45
|
+
children: (a = e.children) == null ? void 0 : a.map((l, s) => n.jsxs("div", { className: "item", onClick: () => C(l), children: [n.jsx("span", { children: l.label }), n.jsx("span", { children: l.label === h ? n.jsx(O, { checked: !0 }) : "" })] }, s))
|
|
46
|
+
};
|
|
47
|
+
}), onChange: y }) })] });
|
|
86
48
|
};
|
|
87
49
|
export {
|
|
88
50
|
V as default
|
|
@@ -2,13 +2,9 @@ import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { Cascader as e } from "antd";
|
|
3
3
|
import { isMobile as a } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
4
|
import m from "./BitzCascaderMobile.mjs";
|
|
5
|
-
const x = ({
|
|
6
|
-
placeholder: t = "",
|
|
7
|
-
options: s = [],
|
|
8
|
-
...i
|
|
9
|
-
}) => {
|
|
5
|
+
const x = ({ placeholder: t = "", options: s = [], ...i }) => {
|
|
10
6
|
const r = { placeholder: t, options: s, ...i };
|
|
11
|
-
return a ?
|
|
7
|
+
return a ? o.jsx(m, { ...r }) : o.jsx(e, { ...r });
|
|
12
8
|
};
|
|
13
9
|
export {
|
|
14
10
|
x as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import "./index.less.mjs";
|
|
3
|
-
import
|
|
3
|
+
import s from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs";
|
|
4
4
|
import e from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs";
|
|
5
|
-
const
|
|
6
|
-
} }) =>
|
|
5
|
+
const a = ({ isCollapse: l, onClick: i = () => {
|
|
6
|
+
} }) => o.jsx("div", { className: "bitzCollapseBlock", onClick: i, children: l ? o.jsx(s, { id: "isCollapse" }) : o.jsx(e, { id: "isCollapse" }) });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
a as default
|
|
9
9
|
};
|