bitz-react-admin-ui 2.2.8 → 2.2.9
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/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +121 -89
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +100 -52
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +395 -187
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,47 +1,134 @@
|
|
|
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 m, 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 g from "../BitzDrawer/index.mjs";
|
|
7
|
+
import u from "../BitzButton/index.mjs";
|
|
8
|
+
import A from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs";
|
|
9
|
+
import z from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs";
|
|
10
|
+
const R = ({ 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), [p, x] = m("全部");
|
|
12
|
+
function f(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
|
-
|
|
15
|
+
function j(e) {
|
|
16
|
+
return e.length ? e == null ? void 0 : e.map((i) => /* @__PURE__ */ s.jsxs(
|
|
17
|
+
"div",
|
|
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 = () => {
|
|
19
64
|
}
|
|
20
|
-
|
|
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
|
-
} }) => {
|
|
65
|
+
}) => {
|
|
30
66
|
const i = l.map((c) => ({
|
|
31
67
|
...c,
|
|
32
|
-
children: s.jsx(
|
|
33
|
-
})), [h, o] =
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
68
|
+
children: /* @__PURE__ */ s.jsx(R, { list: t, onSelect: p, onClickItem: f })
|
|
69
|
+
})), [h, o] = m(!1);
|
|
70
|
+
return /* @__PURE__ */ s.jsxs("div", { className: r.BitzAdressBook, children: [
|
|
71
|
+
/* @__PURE__ */ s.jsxs("div", { className: r.filter, children: [
|
|
72
|
+
/* @__PURE__ */ s.jsxs("div", { className: r.input, children: [
|
|
73
|
+
/* @__PURE__ */ s.jsx(A, { className: r.icon }),
|
|
74
|
+
/* @__PURE__ */ s.jsx(
|
|
75
|
+
"input",
|
|
76
|
+
{
|
|
77
|
+
placeholder: "姓名",
|
|
78
|
+
type: "text",
|
|
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
|
+
] });
|
|
43
130
|
};
|
|
44
131
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
132
|
+
R as AdressBook,
|
|
133
|
+
P as default
|
|
47
134
|
};
|
|
@@ -1,9 +1,23 @@
|
|
|
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
|
-
|
|
4
|
+
const p = ({
|
|
5
|
+
children: e,
|
|
6
|
+
title: i = "律智荟",
|
|
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
|
+
] });
|
|
7
21
|
export {
|
|
8
|
-
|
|
22
|
+
p as default
|
|
9
23
|
};
|
|
@@ -1,25 +1,37 @@
|
|
|
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 o } from "react";
|
|
3
|
+
import { isMobile as T } 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 b = ({ 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] = o(!1), [u, h] = o(0), [f, e] = o(0), m = (t) => {
|
|
9
|
+
const n = t.changedTouches[0].clientY;
|
|
10
|
+
h(n);
|
|
11
|
+
}, l = (t) => {
|
|
12
|
+
const p = t.changedTouches[0].clientY - u;
|
|
13
|
+
e(p);
|
|
14
|
+
}, d = () => {
|
|
15
|
+
T && (f > 400 && (s(!0), setTimeout(() => {
|
|
16
16
|
r(), s(!1);
|
|
17
17
|
}, 2e3)), e(0));
|
|
18
18
|
};
|
|
19
|
-
return i.jsxs(
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
return /* @__PURE__ */ i.jsxs(
|
|
20
|
+
"div",
|
|
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
|
+
);
|
|
22
34
|
};
|
|
23
35
|
export {
|
|
24
|
-
|
|
36
|
+
b as default
|
|
25
37
|
};
|
|
@@ -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(), f = L(), { direction: i, 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(f.current, {
|
|
10
|
+
scrollX: i === "horizental",
|
|
11
|
+
scrollY: i === "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
|
-
})), g.jsx("div", { className: "scroll_container", ref:
|
|
55
|
+
})), /* @__PURE__ */ g.jsx("div", { className: "scroll_container", ref: f, children: u.children });
|
|
56
56
|
});
|
|
57
57
|
b.defaultProps = {
|
|
58
58
|
direction: "vertical",
|
|
@@ -2,15 +2,29 @@ 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 ? 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(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
return o.danger ? /* @__PURE__ */ e.jsx(l, { danger: !0, ...r, children: r.children }) : f ? d === "default" ? /* @__PURE__ */ e.jsx(l, { style: { borderColor: "#ff8f1f", color: "#ff8f1f" }, ...r, children: r.children }) : d === "dashed" ? /* @__PURE__ */ e.jsx(
|
|
6
|
+
l,
|
|
7
|
+
{
|
|
8
|
+
style: {
|
|
9
|
+
borderColor: "#ff8f1f",
|
|
10
|
+
borderWidth: "dashed",
|
|
11
|
+
color: "#ff8f1f"
|
|
12
|
+
},
|
|
13
|
+
...r,
|
|
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 });
|
|
14
28
|
};
|
|
15
29
|
export {
|
|
16
30
|
c as default
|
|
@@ -16,25 +16,58 @@ 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]), n.jsx("div", { ref: f, children:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
19
|
+
}, [l]), /* @__PURE__ */ n.jsx("div", { ref: f, children: /* @__PURE__ */ n.jsx(
|
|
20
|
+
k,
|
|
21
|
+
{
|
|
22
|
+
className: "BitzCalendarBlock",
|
|
23
|
+
fullscreen: !1,
|
|
24
|
+
headerRender: m.headerRender ? m.headerRender : ({ value: t, type: r, onChange: s, onTypeChange: u }) => {
|
|
25
|
+
const o = [];
|
|
26
|
+
let d = t.clone();
|
|
27
|
+
const z = t.localeData(), x = [];
|
|
28
|
+
for (let e = 0; e < 12; e++)
|
|
29
|
+
d = d.month(e), x.push(z.monthsShort(d));
|
|
30
|
+
for (let e = 0; e < 12; e++)
|
|
31
|
+
o.push(
|
|
32
|
+
/* @__PURE__ */ n.jsx(a.Option, { value: e, className: "month-item", children: x[e] }, e)
|
|
33
|
+
);
|
|
34
|
+
const h = t.year(), S = t.month(), j = [];
|
|
35
|
+
for (let e = h - 10; e < h + 10; e += 1)
|
|
36
|
+
j.push(
|
|
37
|
+
/* @__PURE__ */ n.jsx(a.Option, { value: e, className: "year-item", children: e }, e)
|
|
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
|
+
) });
|
|
38
71
|
};
|
|
39
72
|
export {
|
|
40
73
|
A as default
|
|
@@ -1,50 +1,88 @@
|
|
|
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 h } from "react";
|
|
3
|
+
import { Input as N, Tabs as g, Radio as z } from "antd";
|
|
4
|
+
import { useImmer as B } from "../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
5
|
+
import { BitzPickDrawer as K } from "../BitzDrawer/index.mjs";
|
|
6
|
+
import O 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] = h(((f = t.defaultValue) == null ? void 0 : f.join(" / ")) || ""), [j, r] = h(!1), [o, b] = B([{ ...d, children: t.options }]), [u, i] = h(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 l = o.slice(1), a = l.map((c) => ({
|
|
14
14
|
label: c.label,
|
|
15
15
|
value: c.value
|
|
16
|
-
})),
|
|
17
|
-
(s = t.onChange) == null || s.call(t,
|
|
18
|
-
}, C = (
|
|
16
|
+
})), e = l.map((c) => c.key);
|
|
17
|
+
(s = t.onChange) == null || s.call(t, e, a), r(!1), x(e.join(" / "));
|
|
18
|
+
}, C = (l) => {
|
|
19
19
|
b((a) => {
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
const c =
|
|
20
|
+
const e = o.at(-1), s = a.at(-1);
|
|
21
|
+
if (e) {
|
|
22
|
+
const c = e.children, p = e.label;
|
|
23
23
|
if (c != null && c.find((I) => I.label === p)) {
|
|
24
|
-
s.label =
|
|
24
|
+
s.label = l.label, s.key = l.label, i(l.label);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
a.push({
|
|
29
|
-
key:
|
|
30
|
-
label:
|
|
31
|
-
value:
|
|
32
|
-
children:
|
|
33
|
-
}), i(
|
|
29
|
+
key: l.label,
|
|
30
|
+
label: l.label,
|
|
31
|
+
value: l.label,
|
|
32
|
+
children: l.children ? l.children : s.children
|
|
33
|
+
}), i(l.label);
|
|
34
34
|
});
|
|
35
|
-
}, y = (
|
|
36
|
-
i(
|
|
37
|
-
const a = o.slice(0, o.findIndex((
|
|
35
|
+
}, y = (l) => {
|
|
36
|
+
i(l);
|
|
37
|
+
const a = o.slice(0, o.findIndex((e) => e.label === l) + 1);
|
|
38
38
|
b(a);
|
|
39
39
|
};
|
|
40
|
-
return n.jsxs("div", { className: "bitzCascaderMobileBlock", children: [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "bitzCascaderMobileBlock", children: [
|
|
41
|
+
/* @__PURE__ */ n.jsx(
|
|
42
|
+
N,
|
|
43
|
+
{
|
|
44
|
+
placeholder: t.placeholder,
|
|
45
|
+
onClick: () => r(!0),
|
|
46
|
+
value: v,
|
|
47
|
+
suffix: /* @__PURE__ */ n.jsx(O, {})
|
|
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
|
+
] });
|
|
48
86
|
};
|
|
49
87
|
export {
|
|
50
88
|
V as default
|
|
@@ -2,9 +2,13 @@ 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 = ({
|
|
5
|
+
const x = ({
|
|
6
|
+
placeholder: t = "",
|
|
7
|
+
options: s = [],
|
|
8
|
+
...i
|
|
9
|
+
}) => {
|
|
6
10
|
const r = { placeholder: t, options: s, ...i };
|
|
7
|
-
return a ? o.jsx(m, { ...r }) : o.jsx(e, { ...r });
|
|
11
|
+
return a ? /* @__PURE__ */ o.jsx(m, { ...r }) : /* @__PURE__ */ o.jsx(e, { ...r });
|
|
8
12
|
};
|
|
9
13
|
export {
|
|
10
14
|
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 i 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
|
-
} }) => o.jsx("div", { className: "bitzCollapseBlock", onClick:
|
|
5
|
+
const d = ({ isCollapse: l, onClick: s = () => {
|
|
6
|
+
} }) => /* @__PURE__ */ o.jsx("div", { className: "bitzCollapseBlock", onClick: s, children: l ? /* @__PURE__ */ o.jsx(i, { id: "isCollapse" }) : /* @__PURE__ */ o.jsx(e, { id: "isCollapse" }) });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
d as default
|
|
9
9
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { ConfigProvider as m } from "antd";
|
|
3
3
|
import { useState as f, useMemo as u } from "react";
|
|
4
|
-
import { BitzConfigContext as
|
|
5
|
-
import
|
|
6
|
-
const j = ({
|
|
7
|
-
|
|
4
|
+
import { BitzConfigContext as p } from "./context.mjs";
|
|
5
|
+
import a from "../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
|
|
6
|
+
const j = ({
|
|
7
|
+
children: r,
|
|
8
|
+
context: t,
|
|
9
|
+
...s
|
|
10
|
+
}) => {
|
|
11
|
+
const [e, i] = f("current"), n = u(() => a(t, {
|
|
8
12
|
Table: {
|
|
9
|
-
stylesScope:
|
|
10
|
-
setStylesScope:
|
|
13
|
+
stylesScope: e,
|
|
14
|
+
setStylesScope: i
|
|
11
15
|
}
|
|
12
|
-
}), [
|
|
13
|
-
return o.jsx(m, { ...
|
|
16
|
+
}), [t, e]);
|
|
17
|
+
return /* @__PURE__ */ o.jsx(m, { ...s, children: /* @__PURE__ */ o.jsx(p.Provider, { value: n, children: r }) });
|
|
14
18
|
};
|
|
15
19
|
export {
|
|
16
20
|
j as default
|
|
@@ -16,7 +16,30 @@ const _ = (m) => {
|
|
|
16
16
|
}, y = () => {
|
|
17
17
|
r == null || r(), o.resolve("cancel"), o.hide();
|
|
18
18
|
};
|
|
19
|
-
return
|
|
19
|
+
return /* @__PURE__ */ e.jsx(
|
|
20
|
+
g,
|
|
21
|
+
{
|
|
22
|
+
open: a.open,
|
|
23
|
+
afterClose: a.afterClose,
|
|
24
|
+
className: "bitzConfirmModalBlock",
|
|
25
|
+
title: f || s("System_Tip", "提示"),
|
|
26
|
+
width: 400,
|
|
27
|
+
closeIcon: /* @__PURE__ */ e.jsx(N, {}),
|
|
28
|
+
onOk: k,
|
|
29
|
+
onCancel: y,
|
|
30
|
+
confirmLoading: h,
|
|
31
|
+
okText: s("System_Deter", "确定"),
|
|
32
|
+
okType: p || "primary",
|
|
33
|
+
okButtonProps: { danger: !0, ...d },
|
|
34
|
+
cancelText: s("System_Cancel", "取消"),
|
|
35
|
+
...u,
|
|
36
|
+
style: { "--modalContent-colorBg": (i = n.Modal) == null ? void 0 : i.headerBg },
|
|
37
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "textBox", children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx("div", { className: "warnIcon", children: /* @__PURE__ */ e.jsx(M, { className: "icon", color: n.colorError, size: 20 }) }),
|
|
39
|
+
/* @__PURE__ */ e.jsx("div", { className: "modalText", children: x || s("System_CanUSure", "您确定要删除吗?") })
|
|
40
|
+
] })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
20
43
|
}, D = j(_);
|
|
21
44
|
export {
|
|
22
45
|
D as default
|