bitz-react-admin-ui 2.7.5 → 2.7.7
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/index2.mjs +2 -2
- package/dist/_virtual/index3.mjs +2 -2
- package/dist/assets/iconfont/IconChenggong.mjs +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- 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/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/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- 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 +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- 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 +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +184 -55
- 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 +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +103 -62
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +122 -73
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +444 -211
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +325 -159
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- 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/BitzTooltip/index.mjs +59 -20
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- 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/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/react-is/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +9 -3
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,19 +1,70 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
1
|
+
import { j as m } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
3
|
import { isMobile as A } from "../../node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
-
import
|
|
4
|
+
import L from "./Select/index.mjs";
|
|
5
5
|
import W from "./Picker/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import z from "./SingleSelect/index.mjs";
|
|
7
|
+
function k({
|
|
8
|
+
columns: s,
|
|
9
|
+
tableData: a,
|
|
10
|
+
loading: b,
|
|
11
|
+
loadingFailed: d,
|
|
12
|
+
loadAgain: x,
|
|
13
|
+
total: j,
|
|
14
|
+
page: o,
|
|
15
|
+
onPageChange: F,
|
|
16
|
+
onSearch: M,
|
|
17
|
+
showToolTagSelect: e = !1,
|
|
18
|
+
placeholder: u = "请选择",
|
|
19
|
+
mode: f,
|
|
20
|
+
fieldNames: c,
|
|
21
|
+
onChange: t,
|
|
22
|
+
popupAppendWidth: r,
|
|
23
|
+
...i
|
|
24
|
+
}) {
|
|
25
|
+
const S = p(() => i.lrLayout ? e ? 900 + (r || 0) : 830 + (r || 0) : e ? 750 + (r || 0) : 700 + (r || 0), [i.lrLayout, e, r]), E = (l, n) => {
|
|
26
|
+
f === "single" ? t == null || t(l == null ? void 0 : l[0], n == null ? void 0 : n[0]) : t == null || t(l, n);
|
|
27
|
+
}, y = p(() => f === "single" ? z : L, [f]);
|
|
28
|
+
return /* @__PURE__ */ m.jsx(m.Fragment, { children: A ? /* @__PURE__ */ m.jsx(
|
|
29
|
+
W,
|
|
30
|
+
{
|
|
31
|
+
columns: [],
|
|
32
|
+
tableData: [],
|
|
33
|
+
loading: !1,
|
|
34
|
+
loadingFailed: !1,
|
|
35
|
+
loadAgain: function() {
|
|
36
|
+
throw new Error("Function not implemented.");
|
|
37
|
+
},
|
|
38
|
+
total: 0,
|
|
39
|
+
page: o,
|
|
40
|
+
onPageChange: function() {
|
|
41
|
+
throw new Error("Function not implemented.");
|
|
42
|
+
},
|
|
43
|
+
placeholder: u,
|
|
44
|
+
fieldNames: c,
|
|
45
|
+
...i
|
|
46
|
+
}
|
|
47
|
+
) : /* @__PURE__ */ m.jsx(
|
|
48
|
+
y,
|
|
49
|
+
{
|
|
50
|
+
columns: s,
|
|
51
|
+
tableData: a,
|
|
52
|
+
loading: b,
|
|
53
|
+
loadingFailed: d,
|
|
54
|
+
loadAgain: x,
|
|
55
|
+
total: j,
|
|
56
|
+
page: o,
|
|
57
|
+
onPageChange: F,
|
|
58
|
+
onSearch: M,
|
|
59
|
+
placeholder: u,
|
|
60
|
+
fieldNames: c,
|
|
61
|
+
onChange: E,
|
|
62
|
+
popupMatchSelectWidth: S,
|
|
63
|
+
showToolTagSelect: e,
|
|
64
|
+
...i
|
|
65
|
+
}
|
|
66
|
+
) });
|
|
16
67
|
}
|
|
17
68
|
export {
|
|
18
|
-
|
|
69
|
+
k as default
|
|
19
70
|
};
|
|
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
|
|
|
2
2
|
import { Tag as a } from "antd";
|
|
3
3
|
const p = ({ color: t = "default", closable: e = !1, ...o }) => {
|
|
4
4
|
const r = { color: t, closable: e, ...o };
|
|
5
|
-
return s.jsx(a, { ...r, children: r.children });
|
|
5
|
+
return /* @__PURE__ */ s.jsx(a, { ...r, children: r.children });
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
p as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import z from "../../node_modules/classnames/index.mjs";
|
|
3
|
+
import k from "../../node_modules/antd/es/typography/hooks/useCopyClick.mjs";
|
|
4
4
|
import { useRef as r, useState as N, useMemo as T } from "react";
|
|
5
5
|
import { theme as v } from "antd";
|
|
6
6
|
import { isNotFalsly as m, defaultValue as O } from "./utils.mjs";
|
|
@@ -9,28 +9,55 @@ import "./index.less.mjs";
|
|
|
9
9
|
import W from "../../node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs";
|
|
10
10
|
import b from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
|
|
11
11
|
const q = ({ text: e, className: p, style: d }) => {
|
|
12
|
-
const { token: s } = v.useToken(),
|
|
12
|
+
const { token: s } = v.useToken(), i = r(null), n = r(null), l = r(null), [h, c] = N(!1), f = (j) => {
|
|
13
13
|
var a, u;
|
|
14
14
|
if (m(e))
|
|
15
15
|
if (j) {
|
|
16
|
-
const C = (a =
|
|
16
|
+
const C = (a = n.current) == null ? void 0 : a.offsetWidth;
|
|
17
17
|
((u = l.current) == null ? void 0 : u.offsetWidth) > C && c(!0);
|
|
18
18
|
} else
|
|
19
19
|
c(!1);
|
|
20
|
-
}, { copied: x, onClick: y } =
|
|
20
|
+
}, { copied: x, onClick: y } = k({
|
|
21
21
|
copyConfig: { text: e }
|
|
22
22
|
}), o = T(() => m(e), [e]);
|
|
23
|
-
return t.jsx(R, { open: h, wrapper:
|
|
24
|
-
|
|
25
|
-
color: s.colorSuccess
|
|
26
|
-
} }) : t.jsx(
|
|
27
|
-
W,
|
|
23
|
+
return /* @__PURE__ */ t.jsx(R, { open: h, wrapper: i.current, tip: e, children: /* @__PURE__ */ t.jsxs(
|
|
24
|
+
"div",
|
|
28
25
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
ref: i,
|
|
27
|
+
onMouseOver: () => f(!0),
|
|
28
|
+
onMouseOut: () => f(!1),
|
|
29
|
+
style: { width: "100%", position: "relative", ...d },
|
|
30
|
+
className: z("bitzTextBlock", p),
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ t.jsx("span", { ref: n, className: "bitzTextContent", children: o ? e : O }),
|
|
33
|
+
o && /* @__PURE__ */ t.jsx(
|
|
34
|
+
"span",
|
|
35
|
+
{
|
|
36
|
+
ref: l,
|
|
37
|
+
tabIndex: -1,
|
|
38
|
+
"aria-hidden": "true",
|
|
39
|
+
className: "bitzMeasureContent",
|
|
40
|
+
children: e
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
o && /* @__PURE__ */ t.jsx("div", { className: "copyIcon", style: { color: s.colorPrimary }, children: x ? /* @__PURE__ */ t.jsx(
|
|
44
|
+
b,
|
|
45
|
+
{
|
|
46
|
+
style: {
|
|
47
|
+
fontSize: "inherit",
|
|
48
|
+
color: s.colorSuccess
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
) : /* @__PURE__ */ t.jsx(
|
|
52
|
+
W,
|
|
53
|
+
{
|
|
54
|
+
onClick: y,
|
|
55
|
+
style: { fontSize: "inherit" }
|
|
56
|
+
}
|
|
57
|
+
) })
|
|
58
|
+
]
|
|
32
59
|
}
|
|
33
|
-
) })
|
|
60
|
+
) });
|
|
34
61
|
};
|
|
35
62
|
export {
|
|
36
63
|
q as default
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import m from "../../node_modules/antd/es/theme/getDesignToken.mjs";
|
|
2
2
|
import r from "../../node_modules/antd/es/theme/themes/compact/index.mjs";
|
|
3
3
|
import i from "../../node_modules/antd/es/theme/themes/dark/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { theme as
|
|
4
|
+
import f from "../../node_modules/antd/es/theme/themes/default/index.mjs";
|
|
5
|
+
import { theme as n } from "antd";
|
|
6
6
|
import { defaultConfig as h } from "../../node_modules/antd/es/theme/context.mjs";
|
|
7
7
|
function a() {
|
|
8
|
-
const { theme: e, token: t, hashId: o } =
|
|
8
|
+
const { theme: e, token: t, hashId: o } = n.useToken();
|
|
9
9
|
return {
|
|
10
10
|
theme: e,
|
|
11
11
|
token: t,
|
|
12
12
|
hashId: o
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const k = {
|
|
16
16
|
/** Default seedToken */
|
|
17
17
|
defaultSeed: h.token,
|
|
18
18
|
useToken: a,
|
|
19
|
-
defaultAlgorithm:
|
|
19
|
+
defaultAlgorithm: f,
|
|
20
20
|
darkAlgorithm: i,
|
|
21
21
|
compactAlgorithm: r,
|
|
22
22
|
getDesignToken: m
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
k as default
|
|
26
26
|
};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Timeline as m } from "antd";
|
|
3
|
-
const i = (e) =>
|
|
3
|
+
const i = (e) => /* @__PURE__ */ t.jsx(
|
|
4
|
+
m,
|
|
5
|
+
{
|
|
6
|
+
...e
|
|
7
|
+
}
|
|
8
|
+
), r = (e) => /* @__PURE__ */ t.jsx(
|
|
9
|
+
m.Item,
|
|
10
|
+
{
|
|
11
|
+
...e
|
|
12
|
+
}
|
|
13
|
+
);
|
|
4
14
|
i.Item = r;
|
|
5
15
|
export {
|
|
6
16
|
i as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import s from "../BitzButton/index.mjs";
|
|
3
3
|
import c from "./index.module.less.mjs";
|
|
4
|
-
import { Form as a, Input as
|
|
5
|
-
const { Option:
|
|
4
|
+
import { Form as a, Input as d, Select as n, Space as h } from "antd";
|
|
5
|
+
const { Option: m } = n, p = [
|
|
6
6
|
{
|
|
7
7
|
label: "male",
|
|
8
8
|
value: "male"
|
|
@@ -15,16 +15,37 @@ const { Option: s } = o, m = [
|
|
|
15
15
|
label: "other",
|
|
16
16
|
value: "other"
|
|
17
17
|
}
|
|
18
|
-
],
|
|
19
|
-
const
|
|
20
|
-
u == null || u();
|
|
21
|
-
}, i = () => {
|
|
18
|
+
], v = ({ finish: r, cancel: t }) => {
|
|
19
|
+
const u = (l) => {
|
|
22
20
|
r == null || r();
|
|
21
|
+
}, i = () => {
|
|
22
|
+
t == null || t();
|
|
23
23
|
};
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
return /* @__PURE__ */ e.jsxs(
|
|
25
|
+
a,
|
|
26
|
+
{
|
|
27
|
+
className: c.form,
|
|
28
|
+
name: "basic",
|
|
29
|
+
layout: "vertical",
|
|
30
|
+
labelCol: { span: 24 },
|
|
31
|
+
wrapperCol: { span: 24 },
|
|
32
|
+
initialValues: { remember: !0 },
|
|
33
|
+
onFinish: u,
|
|
34
|
+
autoComplete: "off",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ e.jsx(a.Item, { label: "描述", name: "input1", children: /* @__PURE__ */ e.jsx(d, {}) }),
|
|
37
|
+
/* @__PURE__ */ e.jsx(a.Item, { label: "关联案件", name: "select1", children: /* @__PURE__ */ e.jsx(n, { placeholder: "请选择", onChange: () => {
|
|
38
|
+
}, allowClear: !0, children: p.map((l, o) => /* @__PURE__ */ e.jsx(m, { value: l.value, children: l.label }, o)) }) }),
|
|
39
|
+
/* @__PURE__ */ e.jsx(a.Item, { label: "关联任务信息", name: "select2", children: /* @__PURE__ */ e.jsx(n, { placeholder: "请选择", onChange: () => {
|
|
40
|
+
}, allowClear: !0, children: p.map((l, o) => /* @__PURE__ */ e.jsx(m, { value: l.value, children: l.label }, o)) }) }),
|
|
41
|
+
/* @__PURE__ */ e.jsx(a.Item, { children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
42
|
+
/* @__PURE__ */ e.jsx(s, { type: "primary", htmlType: "submit", children: "提交" }),
|
|
43
|
+
/* @__PURE__ */ e.jsx(s, { type: "default", onClick: i, children: "取消" })
|
|
44
|
+
] }) })
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
27
48
|
};
|
|
28
49
|
export {
|
|
29
|
-
|
|
50
|
+
v as default
|
|
30
51
|
};
|
|
@@ -1,53 +1,91 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import r from "./index.module.less.mjs";
|
|
3
3
|
import { useState as j, useEffect as t } from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { Space as
|
|
7
|
-
import { getLastTimeStr as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
4
|
+
import S from "../../node_modules/ahooks/es/useInterval/index.mjs";
|
|
5
|
+
import i from "../BitzButton/index.mjs";
|
|
6
|
+
import { Space as k } from "antd";
|
|
7
|
+
import { getLastTimeStr as v } from "../../utils/time.mjs";
|
|
8
|
+
import F from "./Form.mjs";
|
|
9
|
+
import M from "../../node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs";
|
|
10
10
|
import E from "../../node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
function
|
|
15
|
-
if (isNaN(
|
|
11
|
+
import g from "../../node_modules/@ant-design/icons/es/icons/EditOutlined.mjs";
|
|
12
|
+
import w from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
|
|
13
|
+
import D from "../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs";
|
|
14
|
+
function O(e) {
|
|
15
|
+
if (isNaN(e))
|
|
16
16
|
return "00:00:00";
|
|
17
|
-
const l = Math.floor(
|
|
18
|
-
|
|
19
|
-
const a = Math.floor(
|
|
20
|
-
|
|
21
|
-
const m = Math.floor(
|
|
22
|
-
|
|
23
|
-
const d = Math.floor(
|
|
17
|
+
const l = Math.floor(e / (1e3 * 3600 * 24));
|
|
18
|
+
e %= 1e3 * 3600 * 24;
|
|
19
|
+
const a = Math.floor(e / (1e3 * 3600));
|
|
20
|
+
e %= 1e3 * 3600;
|
|
21
|
+
const m = Math.floor(e / (1e3 * 60));
|
|
22
|
+
e %= 1e3 * 60;
|
|
23
|
+
const d = Math.floor(e / 1e3), c = (f) => f < 10 ? "0" + f : f;
|
|
24
24
|
return l <= 0 ? `${c(a)}:${c(m)}:${c(d)}` : `${l}.${c(a)}:${c(m)}:${c(d)}`;
|
|
25
25
|
}
|
|
26
|
-
const K = ({
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const K = ({
|
|
27
|
+
option: e,
|
|
28
|
+
pause: l,
|
|
29
|
+
start: a,
|
|
30
|
+
edit: m,
|
|
31
|
+
remove: d
|
|
32
|
+
}) => {
|
|
33
|
+
const [c, f] = j((e == null ? void 0 : e.duration) || 0), [u, h] = j(e != null && e.start ? 1e3 : void 0), [N, x] = j(!1);
|
|
34
|
+
S(() => {
|
|
29
35
|
f(c + 1e3);
|
|
30
|
-
},
|
|
36
|
+
}, u);
|
|
31
37
|
const y = () => {
|
|
32
|
-
h(void 0), l == null || l(
|
|
38
|
+
h(void 0), l == null || l(e == null ? void 0 : e.id);
|
|
33
39
|
}, $ = () => {
|
|
34
|
-
h(1e3), a == null || a(
|
|
40
|
+
h(1e3), a == null || a(e == null ? void 0 : e.id);
|
|
35
41
|
}, C = () => {
|
|
36
|
-
x(!0), m == null || m(
|
|
42
|
+
x(!0), m == null || m(e == null ? void 0 : e.id);
|
|
37
43
|
};
|
|
38
44
|
return t(() => {
|
|
39
|
-
h(
|
|
40
|
-
}, [
|
|
41
|
-
f((
|
|
42
|
-
}, [
|
|
43
|
-
x((
|
|
44
|
-
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
h(e != null && e.start ? 1e3 : void 0);
|
|
46
|
+
}, [e == null ? void 0 : e.start]), t(() => {
|
|
47
|
+
f((e == null ? void 0 : e.duration) || 0);
|
|
48
|
+
}, [e == null ? void 0 : e.duration]), t(() => {
|
|
49
|
+
x((e == null ? void 0 : e.edit) || !1);
|
|
50
|
+
}, [e == null ? void 0 : e.edit]), /* @__PURE__ */ s.jsxs("div", { className: r.timer, children: [
|
|
51
|
+
/* @__PURE__ */ s.jsx("div", { children: u === 1e3 ? /* @__PURE__ */ s.jsx(M, { className: `${r.btn} ${r.pause}`, onClick: y }) : /* @__PURE__ */ s.jsx(E, { className: r.btn, onClick: $ }) }),
|
|
52
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
53
|
+
/* @__PURE__ */ s.jsxs("div", { className: r.flex, children: [
|
|
54
|
+
/* @__PURE__ */ s.jsx("span", { className: r.time, children: O(c) }),
|
|
55
|
+
/* @__PURE__ */ s.jsxs(k, { className: r.tools, children: [
|
|
56
|
+
/* @__PURE__ */ s.jsx(i, { shape: "circle", icon: /* @__PURE__ */ s.jsx(g, {}), onClick: C }),
|
|
57
|
+
/* @__PURE__ */ s.jsx(i, { type: "primary", shape: "circle", icon: /* @__PURE__ */ s.jsx(w, {}) }),
|
|
58
|
+
/* @__PURE__ */ s.jsx(
|
|
59
|
+
i,
|
|
60
|
+
{
|
|
61
|
+
type: "primary",
|
|
62
|
+
shape: "circle",
|
|
63
|
+
danger: !0,
|
|
64
|
+
icon: /* @__PURE__ */ s.jsx(D, {}),
|
|
65
|
+
onClick: () => {
|
|
66
|
+
d == null || d();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ s.jsxs("div", { className: r.desc, children: [
|
|
73
|
+
/* @__PURE__ */ s.jsx("span", { className: r["desc-title"], children: "测试案件00001" }),
|
|
74
|
+
/* @__PURE__ */ s.jsx("span", { className: r["desc-time"], children: v("normal", (/* @__PURE__ */ new Date()).toLocaleString(), !0) })
|
|
75
|
+
] }),
|
|
76
|
+
N && /* @__PURE__ */ s.jsx(
|
|
77
|
+
F,
|
|
78
|
+
{
|
|
79
|
+
finish: () => {
|
|
80
|
+
x(!1);
|
|
81
|
+
},
|
|
82
|
+
cancel: () => {
|
|
83
|
+
x(!1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] })
|
|
88
|
+
] });
|
|
51
89
|
};
|
|
52
90
|
export {
|
|
53
91
|
K as Timer
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import t from "./index.module.less.mjs";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { App as C, Alert as
|
|
5
|
-
import { useImmer as
|
|
6
|
-
import { Timer as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const { Option:
|
|
3
|
+
import { useRef as N, useEffect as g } from "react";
|
|
4
|
+
import { App as C, Alert as w, Select as p, Tag as L } from "antd";
|
|
5
|
+
import { useImmer as T } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
|
|
6
|
+
import { Timer as y } from "./Timer.mjs";
|
|
7
|
+
import O from "../BitzEmpty/index.mjs";
|
|
8
|
+
import R from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs";
|
|
9
|
+
import S from "../../node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs";
|
|
10
|
+
import k from "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
11
|
+
import A from "../../node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
12
|
+
const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
13
13
|
} }) => {
|
|
14
|
-
const { modal:
|
|
14
|
+
const { modal: h } = C.useApp(), { confirm: u } = h, m = N(null), [l, o] = T([
|
|
15
15
|
{
|
|
16
16
|
id: 1,
|
|
17
17
|
start: !0,
|
|
@@ -28,52 +28,75 @@ const { Option: m } = f, G = ({ show: l = !0, hide: n = () => {
|
|
|
28
28
|
edit: !1
|
|
29
29
|
}
|
|
30
30
|
]);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
const
|
|
31
|
+
g(() => {
|
|
32
|
+
n ? x() : f();
|
|
33
|
+
}, [n]);
|
|
34
|
+
const x = () => {
|
|
35
35
|
var s;
|
|
36
|
-
(s =
|
|
37
|
-
},
|
|
36
|
+
(s = m.current) == null || s.classList.add(t.show);
|
|
37
|
+
}, f = () => {
|
|
38
38
|
var s;
|
|
39
|
-
(s =
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
s ===
|
|
43
|
-
|
|
44
|
-
}) :
|
|
45
|
-
|
|
39
|
+
(s = m.current) == null || s.classList.remove(t.show), c == null || c();
|
|
40
|
+
}, j = (s) => {
|
|
41
|
+
l.forEach((r, a) => {
|
|
42
|
+
s === r.id ? o((i) => {
|
|
43
|
+
i[a].start = !0;
|
|
44
|
+
}) : o((i) => {
|
|
45
|
+
i[a].start = !1;
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
s ===
|
|
51
|
-
|
|
52
|
-
}) :
|
|
53
|
-
|
|
48
|
+
}, v = (s) => {
|
|
49
|
+
l.forEach((r, a) => {
|
|
50
|
+
s === r.id ? o((i) => {
|
|
51
|
+
i[a].edit = !0;
|
|
52
|
+
}) : o((i) => {
|
|
53
|
+
i[a].edit = !1;
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}, E = (s) => {
|
|
57
|
-
|
|
57
|
+
u({
|
|
58
58
|
title: "温馨提醒",
|
|
59
|
-
icon: e.jsx(
|
|
59
|
+
icon: /* @__PURE__ */ e.jsx(S, {}),
|
|
60
60
|
content: "确定要删除吗?",
|
|
61
61
|
onOk() {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
o((r) => {
|
|
63
|
+
r.splice(s, 1);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
return e.jsxs("div", { className: `${t.container} ${
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${t.container} ${n ? t.show : ""}`, ref: m, children: [
|
|
69
|
+
/* @__PURE__ */ e.jsxs("div", { className: t.header, children: [
|
|
70
|
+
/* @__PURE__ */ e.jsx("h3", { children: "工作日志计时器" }),
|
|
71
|
+
/* @__PURE__ */ e.jsx(k, { className: t.close, onClick: f })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ e.jsx(w, { className: t.alert, message: "单计时器时长超出24小时部分无法计入日志!", type: "warning" }),
|
|
74
|
+
/* @__PURE__ */ e.jsxs(p, { showSearch: !0, placeholder: "任务检索关键字:通过任务穿件计时器", className: t.select, children: [
|
|
75
|
+
/* @__PURE__ */ e.jsx(d, { value: "male", children: "male" }),
|
|
76
|
+
/* @__PURE__ */ e.jsx(d, { value: "female", children: "female" }),
|
|
77
|
+
/* @__PURE__ */ e.jsx(d, { value: "other", children: "other" })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ e.jsxs("h4", { children: [
|
|
80
|
+
/* @__PURE__ */ e.jsx("span", { children: "运行中的计时器" }),
|
|
81
|
+
/* @__PURE__ */ e.jsx(L, { icon: /* @__PURE__ */ e.jsx(R, {}), color: "warning", className: t.tag, children: "只允许单个计时器开启计时" })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ e.jsx("div", { className: t.timerList, children: l.length ? l.map((s, r) => /* @__PURE__ */ e.jsx(y, { option: s, start: j, edit: v, remove: () => E(r) }, s.id)) : /* @__PURE__ */ e.jsx(O, { style: { marginTop: 50 } }) }),
|
|
84
|
+
/* @__PURE__ */ e.jsx(
|
|
85
|
+
A,
|
|
86
|
+
{
|
|
87
|
+
className: t.addbtn,
|
|
88
|
+
onClick: () => {
|
|
89
|
+
o((s) => {
|
|
90
|
+
s.unshift({
|
|
91
|
+
id: Math.random(),
|
|
92
|
+
start: !1,
|
|
93
|
+
edit: !1
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] });
|
|
77
100
|
};
|
|
78
101
|
export {
|
|
79
102
|
G as BitzTimer,
|