bitz-react-admin-ui 2.7.9 → 2.7.11
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 +4 -25
- package/dist/assets/iconfont/IconClose.mjs +3 -24
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
- package/dist/assets/iconfont/IconCuowu.mjs +2 -23
- package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
- package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
- package/dist/assets/iconfont/IconFabu.mjs +5 -35
- package/dist/assets/iconfont/IconFanhui.mjs +4 -25
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
- package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
- package/dist/assets/iconfont/IconIcon21.mjs +4 -25
- package/dist/assets/iconfont/IconJincoude.mjs +4 -25
- package/dist/assets/iconfont/IconJinggao.mjs +4 -25
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
- package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
- package/dist/assets/iconfont/IconMore.mjs +4 -41
- package/dist/assets/iconfont/IconShanchu.mjs +6 -27
- package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
- package/dist/assets/iconfont/IconSousuo.mjs +6 -27
- package/dist/assets/iconfont/IconTejincou.mjs +4 -25
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
- package/dist/assets/iconfont/IconTishi1.mjs +6 -27
- package/dist/assets/iconfont/IconTuodong.mjs +7 -28
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
- package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
- package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
- package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
- 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/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/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 +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 +15 -47
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
- 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.mjs +12 -80
- package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +44 -182
- 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 +4 -11
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +62 -103
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +73 -122
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
- package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.mjs +295 -544
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +31 -105
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +159 -346
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +38 -135
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +5 -18
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +49 -121
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +18 -62
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +16 -59
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +5 -20
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -46
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- 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 -90
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
- package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
- package/dist/components/BitzTableSelect/index.mjs +14 -65
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +14 -41
- package/dist/components/BitzText/utils.mjs +3 -3
- 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/BitzTooltip/index.mjs +20 -59
- package/dist/components/BitzTooltip/style.mjs +6 -9
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- 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/style.css +1 -1
- package/dist/utils/WithFluent.mjs +3 -9
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -7,63 +7,22 @@ import g from "../../BitzTheme/index.mjs";
|
|
|
7
7
|
import "./index.less.mjs";
|
|
8
8
|
import { tablePaddingInline as B } from "../../BitzConfigProvider/context.mjs";
|
|
9
9
|
import T from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
10
|
-
const { TextArea: I } = x,
|
|
10
|
+
const { TextArea: I } = x, w = ({ value: n, isLatterHalf: a = !1 }) => {
|
|
11
11
|
var r, c;
|
|
12
12
|
const { token: e } = g.useToken(), l = ((r = e.Table) == null ? void 0 : r.cellPaddingInline) ?? B, i = ((c = e == null ? void 0 : e.BitzTableSelect) == null ? void 0 : c.paddingBlock) ?? 10, m = p(() => ({
|
|
13
13
|
paddingBlock: i,
|
|
14
14
|
paddingInline: l
|
|
15
15
|
}), [e]), [d, t] = u(!1);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ o.jsxs(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
className: s(
|
|
29
|
-
"tipBlock",
|
|
30
|
-
a ? "toTop" : "toBottom",
|
|
31
|
-
d ? "show" : ""
|
|
32
|
-
),
|
|
33
|
-
style: {
|
|
34
|
-
paddingInlineStart: l - 2,
|
|
35
|
-
paddingInlineEnd: l - 4,
|
|
36
|
-
paddingBlock: i,
|
|
37
|
-
background: e.colorBgContainer
|
|
38
|
-
},
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ o.jsx(
|
|
41
|
-
T,
|
|
42
|
-
{
|
|
43
|
-
className: s("closeIcon", a ? "top" : "bottom"),
|
|
44
|
-
onClick: () => t(!1)
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ o.jsx(
|
|
48
|
-
I,
|
|
49
|
-
{
|
|
50
|
-
className: "tipText",
|
|
51
|
-
value: n,
|
|
52
|
-
autoSize: {
|
|
53
|
-
minRows: 1,
|
|
54
|
-
maxRows: 100
|
|
55
|
-
},
|
|
56
|
-
variant: "borderless",
|
|
57
|
-
readOnly: !0
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
);
|
|
16
|
+
return o.jsxs("div", { className: "cellBlock", style: m, onFocus: () => t(!0), onBlur: () => t(!1), children: [o.jsx(f, { className: s("cellText"), value: n }), o.jsxs("div", { className: s("tipBlock", a ? "toTop" : "toBottom", d ? "show" : ""), style: {
|
|
17
|
+
paddingInlineStart: l - 2,
|
|
18
|
+
paddingInlineEnd: l - 4,
|
|
19
|
+
paddingBlock: i,
|
|
20
|
+
background: e.colorBgContainer
|
|
21
|
+
}, children: [o.jsx(T, { className: s("closeIcon", a ? "top" : "bottom"), onClick: () => t(!1) }), o.jsx(I, { className: "tipText", value: n, autoSize: {
|
|
22
|
+
minRows: 1,
|
|
23
|
+
maxRows: 100
|
|
24
|
+
}, variant: "borderless", readOnly: !0 })] })] });
|
|
66
25
|
};
|
|
67
26
|
export {
|
|
68
|
-
|
|
27
|
+
w as default
|
|
69
28
|
};
|
|
@@ -1,43 +1,25 @@
|
|
|
1
1
|
import { j as m } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { theme as c, Input as p } from "antd";
|
|
3
3
|
import d from "../../../node_modules/classnames/index.mjs";
|
|
4
|
-
import { tablePaddingInline as
|
|
5
|
-
import { defaultValue as
|
|
4
|
+
import { tablePaddingInline as x } from "../../BitzConfigProvider/context.mjs";
|
|
5
|
+
import { defaultValue as f } from "../utils.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
|
-
const { TextArea: u } = p,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
bold: o,
|
|
11
|
-
value: e,
|
|
12
|
-
className: r
|
|
13
|
-
}) => {
|
|
14
|
-
var n;
|
|
15
|
-
const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? f, l = {
|
|
7
|
+
const { TextArea: u } = p, b = ({ maxRows: t = 1, minRows: n, bold: o, value: e, className: a }) => {
|
|
8
|
+
var s;
|
|
9
|
+
const { token: r } = c.useToken(), l = ((s = r.Table) == null ? void 0 : s.cellPaddingInline) ?? x, i = {
|
|
16
10
|
"--cell-text-maxRows": t,
|
|
17
11
|
...o && {
|
|
18
12
|
fontWeight: o
|
|
19
13
|
},
|
|
20
|
-
...e ===
|
|
21
|
-
paddingInline:
|
|
14
|
+
...e === f && {
|
|
15
|
+
paddingInline: l
|
|
22
16
|
}
|
|
23
17
|
};
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
title: e,
|
|
29
|
-
value: e,
|
|
30
|
-
readOnly: !0,
|
|
31
|
-
size: "small",
|
|
32
|
-
variant: "borderless",
|
|
33
|
-
autoSize: {
|
|
34
|
-
minRows: s ?? t,
|
|
35
|
-
maxRows: t
|
|
36
|
-
},
|
|
37
|
-
style: l
|
|
38
|
-
}
|
|
39
|
-
);
|
|
18
|
+
return m.jsx(u, { className: d("textBlock", a), title: e, value: e, readOnly: !0, size: "small", variant: "borderless", autoSize: {
|
|
19
|
+
minRows: n ?? t,
|
|
20
|
+
maxRows: t
|
|
21
|
+
}, style: i });
|
|
40
22
|
};
|
|
41
23
|
export {
|
|
42
|
-
|
|
24
|
+
b as default
|
|
43
25
|
};
|
|
@@ -1,70 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
1
|
+
import { j as n } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as f } from "react";
|
|
3
3
|
import { isMobile as A } from "../../node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
-
import
|
|
4
|
+
import E from "./Select/index.mjs";
|
|
5
5
|
import W from "./Picker/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
loadingFailed:
|
|
12
|
-
|
|
13
|
-
total:
|
|
14
|
-
|
|
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
|
-
) });
|
|
6
|
+
import y from "./SingleSelect/index.mjs";
|
|
7
|
+
function R({ columns: d, tableData: s, loading: u, loadingFailed: b, loadAgain: S, total: g, page: m, onPageChange: x, onSearch: j, showToolTagSelect: l = !1, placeholder: c = "请选择", mode: o, fieldNames: p, onChange: e, popupAppendWidth: t, ...r }) {
|
|
8
|
+
const F = f(() => r.lrLayout ? l ? 900 + (t || 0) : 830 + (t || 0) : l ? 750 + (t || 0) : 700 + (t || 0), [r.lrLayout, l, t]), M = (i, a) => {
|
|
9
|
+
o === "single" ? e == null || e(i == null ? void 0 : i[0], a == null ? void 0 : a[0]) : e == null || e(i, a);
|
|
10
|
+
}, h = f(() => o === "single" ? y : E, [o]);
|
|
11
|
+
return n.jsx(n.Fragment, { children: A ? n.jsx(W, { columns: [], tableData: [], loading: !1, loadingFailed: !1, loadAgain: function() {
|
|
12
|
+
throw new Error("Function not implemented.");
|
|
13
|
+
}, total: 0, page: m, onPageChange: function() {
|
|
14
|
+
throw new Error("Function not implemented.");
|
|
15
|
+
}, placeholder: c, fieldNames: p, ...r }) : n.jsx(h, { columns: d, tableData: s, loading: u, loadingFailed: b, loadAgain: S, total: g, page: m, onPageChange: x, onSearch: j, placeholder: c, fieldNames: p, onChange: M, popupMatchSelectWidth: F, showToolTagSelect: l, ...r }) });
|
|
67
16
|
}
|
|
68
17
|
export {
|
|
69
|
-
|
|
18
|
+
R as default
|
|
70
19
|
};
|
|
@@ -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
|
|
5
|
+
return 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 k from "../../node_modules/classnames/index.mjs";
|
|
3
|
+
import z 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,55 +9,28 @@ 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(), n = r(null), i = 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 = i.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 } = z({
|
|
21
21
|
copyConfig: { text: e }
|
|
22
22
|
}), o = T(() => m(e), [e]);
|
|
23
|
-
return
|
|
24
|
-
"
|
|
23
|
+
return t.jsx(R, { open: h, wrapper: n.current, tip: e, children: t.jsxs("div", { ref: n, onMouseOver: () => f(!0), onMouseOut: () => f(!1), style: { width: "100%", position: "relative", ...d }, className: k("bitzTextBlock", p), children: [t.jsx("span", { ref: i, className: "bitzTextContent", children: o ? e : O }), o && t.jsx("span", { ref: l, tabIndex: -1, "aria-hidden": "true", className: "bitzMeasureContent", children: e }), o && t.jsx("div", { className: "copyIcon", style: { color: s.colorPrimary }, children: x ? t.jsx(b, { style: {
|
|
24
|
+
fontSize: "inherit",
|
|
25
|
+
color: s.colorSuccess
|
|
26
|
+
} }) : t.jsx(
|
|
27
|
+
W,
|
|
25
28
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
]
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
onClick: y,
|
|
31
|
+
style: { fontSize: "inherit" }
|
|
59
32
|
}
|
|
60
|
-
) });
|
|
33
|
+
) })] }) });
|
|
61
34
|
};
|
|
62
35
|
export {
|
|
63
36
|
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 n from "../../node_modules/antd/es/theme/themes/default/index.mjs";
|
|
5
|
+
import { theme as f } 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 } = f.useToken();
|
|
9
9
|
return {
|
|
10
10
|
theme: e,
|
|
11
11
|
token: t,
|
|
12
12
|
hashId: o
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const g = {
|
|
16
16
|
/** Default seedToken */
|
|
17
17
|
defaultSeed: h.token,
|
|
18
18
|
useToken: a,
|
|
19
|
-
defaultAlgorithm:
|
|
19
|
+
defaultAlgorithm: n,
|
|
20
20
|
darkAlgorithm: i,
|
|
21
21
|
compactAlgorithm: r,
|
|
22
22
|
getDesignToken: m
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
g as default
|
|
26
26
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
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) =>
|
|
4
|
-
m,
|
|
5
|
-
{
|
|
6
|
-
...e
|
|
7
|
-
}
|
|
8
|
-
), r = (e) => /* @__PURE__ */ t.jsx(
|
|
9
|
-
m.Item,
|
|
10
|
-
{
|
|
11
|
-
...e
|
|
12
|
-
}
|
|
13
|
-
);
|
|
3
|
+
const i = (e) => t.jsx(m, { ...e }), r = (e) => t.jsx(m.Item, { ...e });
|
|
14
4
|
i.Item = r;
|
|
15
5
|
export {
|
|
16
6
|
i as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import n 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 h, Select as o, Space as d } from "antd";
|
|
5
|
+
const { Option: s } = o, m = [
|
|
6
6
|
{
|
|
7
7
|
label: "male",
|
|
8
8
|
value: "male"
|
|
@@ -15,37 +15,16 @@ const { Option: m } = n, p = [
|
|
|
15
15
|
label: "other",
|
|
16
16
|
value: "other"
|
|
17
17
|
}
|
|
18
|
-
],
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
], C = ({ finish: u, cancel: r }) => {
|
|
19
|
+
const p = (l) => {
|
|
20
|
+
u == null || u();
|
|
21
21
|
}, i = () => {
|
|
22
|
-
|
|
22
|
+
r == null || r();
|
|
23
23
|
};
|
|
24
|
-
return
|
|
25
|
-
|
|
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
|
-
);
|
|
24
|
+
return e.jsxs(a, { className: c.form, name: "basic", layout: "vertical", labelCol: { span: 24 }, wrapperCol: { span: 24 }, initialValues: { remember: !0 }, onFinish: p, autoComplete: "off", children: [e.jsx(a.Item, { label: "描述", name: "input1", children: e.jsx(h, {}) }), e.jsx(a.Item, { label: "关联案件", name: "select1", children: e.jsx(o, { placeholder: "请选择", onChange: () => {
|
|
25
|
+
}, allowClear: !0, children: m.map((l, t) => e.jsx(s, { value: l.value, children: l.label }, t)) }) }), e.jsx(a.Item, { label: "关联任务信息", name: "select2", children: e.jsx(o, { placeholder: "请选择", onChange: () => {
|
|
26
|
+
}, allowClear: !0, children: m.map((l, t) => e.jsx(s, { value: l.value, children: l.label }, t)) }) }), e.jsx(a.Item, { children: e.jsxs(d, { children: [e.jsx(n, { type: "primary", htmlType: "submit", children: "提交" }), e.jsx(n, { type: "default", onClick: i, children: "取消" })] }) })] });
|
|
48
27
|
};
|
|
49
28
|
export {
|
|
50
|
-
|
|
29
|
+
C as default
|
|
51
30
|
};
|
|
@@ -1,91 +1,53 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } 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 F from "../../node_modules/ahooks/es/useInterval/index.mjs";
|
|
5
|
+
import u from "../BitzButton/index.mjs";
|
|
6
|
+
import { Space as S } from "antd";
|
|
7
|
+
import { getLastTimeStr as k } from "../../utils/time.mjs";
|
|
8
|
+
import v from "./Form.mjs";
|
|
9
|
+
import D 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 M from "../../node_modules/@ant-design/icons/es/icons/EditOutlined.mjs";
|
|
12
|
+
import B from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
|
|
13
|
+
import g from "../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs";
|
|
14
|
+
function w(s) {
|
|
15
|
+
if (isNaN(s))
|
|
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(s / (1e3 * 3600 * 24));
|
|
18
|
+
s %= 1e3 * 3600 * 24;
|
|
19
|
+
const a = Math.floor(s / (1e3 * 3600));
|
|
20
|
+
s %= 1e3 * 3600;
|
|
21
|
+
const m = Math.floor(s / (1e3 * 60));
|
|
22
|
+
s %= 1e3 * 60;
|
|
23
|
+
const d = Math.floor(s / 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
|
-
|
|
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(() => {
|
|
26
|
+
const K = ({ option: s, pause: l, start: a, edit: m, remove: d }) => {
|
|
27
|
+
const [c, f] = j((s == null ? void 0 : s.duration) || 0), [i, h] = j(s != null && s.start ? 1e3 : void 0), [N, x] = j(!1);
|
|
28
|
+
F(() => {
|
|
35
29
|
f(c + 1e3);
|
|
36
|
-
},
|
|
30
|
+
}, i);
|
|
37
31
|
const y = () => {
|
|
38
|
-
h(void 0), l == null || l(
|
|
32
|
+
h(void 0), l == null || l(s == null ? void 0 : s.id);
|
|
39
33
|
}, $ = () => {
|
|
40
|
-
h(1e3), a == null || a(
|
|
34
|
+
h(1e3), a == null || a(s == null ? void 0 : s.id);
|
|
41
35
|
}, C = () => {
|
|
42
|
-
x(!0), m == null || m(
|
|
36
|
+
x(!0), m == null || m(s == null ? void 0 : s.id);
|
|
43
37
|
};
|
|
44
38
|
return t(() => {
|
|
45
|
-
h(
|
|
46
|
-
}, [
|
|
47
|
-
f((
|
|
48
|
-
}, [
|
|
49
|
-
x((
|
|
50
|
-
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
] });
|
|
39
|
+
h(s != null && s.start ? 1e3 : void 0);
|
|
40
|
+
}, [s == null ? void 0 : s.start]), t(() => {
|
|
41
|
+
f((s == null ? void 0 : s.duration) || 0);
|
|
42
|
+
}, [s == null ? void 0 : s.duration]), t(() => {
|
|
43
|
+
x((s == null ? void 0 : s.edit) || !1);
|
|
44
|
+
}, [s == null ? void 0 : s.edit]), e.jsxs("div", { className: r.timer, children: [e.jsx("div", { children: i === 1e3 ? e.jsx(D, { className: `${r.btn} ${r.pause}`, onClick: y }) : e.jsx(E, { className: r.btn, onClick: $ }) }), e.jsxs("div", { children: [e.jsxs("div", { className: r.flex, children: [e.jsx("span", { className: r.time, children: w(c) }), e.jsxs(S, { className: r.tools, children: [e.jsx(u, { shape: "circle", icon: e.jsx(M, {}), onClick: C }), e.jsx(u, { type: "primary", shape: "circle", icon: e.jsx(B, {}) }), e.jsx(u, { type: "primary", shape: "circle", danger: !0, icon: e.jsx(g, {}), onClick: () => {
|
|
45
|
+
d == null || d();
|
|
46
|
+
} })] })] }), e.jsxs("div", { className: r.desc, children: [e.jsx("span", { className: r["desc-title"], children: "测试案件00001" }), e.jsx("span", { className: r["desc-time"], children: k("normal", (/* @__PURE__ */ new Date()).toLocaleString(), !0) })] }), N && e.jsx(v, { finish: () => {
|
|
47
|
+
x(!1);
|
|
48
|
+
}, cancel: () => {
|
|
49
|
+
x(!1);
|
|
50
|
+
} })] })] });
|
|
89
51
|
};
|
|
90
52
|
export {
|
|
91
53
|
K as Timer
|