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,82 +1,260 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as se, useContext as
|
|
3
|
-
import { Row as b, Col as a, Space as
|
|
2
|
+
import { useRef as se, useContext as ce, useState as v, useMemo as B, useCallback as ne, useEffect as ie } from "react";
|
|
3
|
+
import { Row as b, Col as a, Space as F, Form as h, Select as G, Spin as ae, Typography as pe, Flex as ue, Empty as H } from "antd";
|
|
4
4
|
import de from "../../BitzPagination/index.mjs";
|
|
5
5
|
import xe from "../../BitzTable/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import L from "../../BitzButton/index.mjs";
|
|
7
7
|
import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Se from "../TextBlock/index.mjs";
|
|
9
|
+
import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
10
10
|
import be from "../../BitzTheme/index.mjs";
|
|
11
11
|
import ye from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
12
12
|
import { BitzConfigContext as we } from "../../BitzConfigProvider/context.mjs";
|
|
13
13
|
import "./index.less.mjs";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import Te from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
15
|
+
import ge from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
16
|
+
function He({
|
|
17
|
+
columns: P,
|
|
18
|
+
tableData: y,
|
|
19
|
+
total: O,
|
|
20
|
+
loading: p,
|
|
21
|
+
loadingFailed: j,
|
|
22
|
+
loadAgain: W,
|
|
23
|
+
page: z,
|
|
24
|
+
onPageChange: $,
|
|
25
|
+
searchInput: q,
|
|
26
|
+
showToolTagSelect: E,
|
|
27
|
+
toolTags: J,
|
|
28
|
+
onToolTagChange: w,
|
|
29
|
+
lrLayout: T,
|
|
30
|
+
parentRender: I,
|
|
31
|
+
keys: R,
|
|
32
|
+
rows: C,
|
|
33
|
+
fieldNames: t,
|
|
34
|
+
onChange: x,
|
|
35
|
+
onDropdownVisibleChange: S
|
|
36
|
+
}) {
|
|
37
|
+
var K, _, A;
|
|
38
|
+
const k = se(null), g = fe(k), { token: s } = be.useToken(), M = ((K = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, Q = ((_ = ce(we).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [c, U] = v([]), [r, X] = v([]), [Y, Z] = v(void 0), D = (l, o) => {
|
|
39
|
+
Z(l), w == null || w(l, o), l || (S(!0), setTimeout(() => {
|
|
40
|
+
S(!1);
|
|
21
41
|
}, 0));
|
|
22
|
-
}, V =
|
|
23
|
-
selectedRowKeys:
|
|
24
|
-
onSelect: (
|
|
25
|
-
if (
|
|
26
|
-
|
|
42
|
+
}, V = B(() => me(P, y, z), [P]), N = {
|
|
43
|
+
selectedRowKeys: c,
|
|
44
|
+
onSelect: (l, o) => {
|
|
45
|
+
if (o)
|
|
46
|
+
c.push(l[t.value]), r.push(l), x(c, r);
|
|
27
47
|
else {
|
|
28
|
-
const
|
|
29
|
-
|
|
48
|
+
const u = r.filter(
|
|
49
|
+
(d) => d[t.value] !== l[t.value]
|
|
50
|
+
);
|
|
51
|
+
x(
|
|
52
|
+
u.map((d) => d[t.value]),
|
|
53
|
+
u
|
|
54
|
+
);
|
|
30
55
|
}
|
|
31
56
|
},
|
|
32
|
-
onSelectAll: (
|
|
33
|
-
const d =
|
|
34
|
-
if (
|
|
35
|
-
const i =
|
|
36
|
-
x(i,
|
|
57
|
+
onSelectAll: (l, o, u) => {
|
|
58
|
+
const d = u.map((i) => i[t.value]);
|
|
59
|
+
if (l) {
|
|
60
|
+
const i = c.concat(d), f = r.concat(u);
|
|
61
|
+
x(i, f);
|
|
37
62
|
} else {
|
|
38
|
-
const i =
|
|
39
|
-
|
|
40
|
-
|
|
63
|
+
const i = c == null ? void 0 : c.filter((m) => !d.includes(m)), f = /* @__PURE__ */ new Map();
|
|
64
|
+
u.forEach((m) => {
|
|
65
|
+
f.set(m[t.value], m);
|
|
41
66
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
67
|
+
const oe = r == null ? void 0 : r.filter(
|
|
68
|
+
(m) => !f.has(m[t.value])
|
|
69
|
+
);
|
|
70
|
+
x(i, oe);
|
|
44
71
|
}
|
|
45
72
|
}
|
|
46
|
-
}, ee =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
73
|
+
}, ee = ne(() => he(t.items, p), [t.items, p]), te = (l, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
|
|
74
|
+
l[0],
|
|
75
|
+
" ",
|
|
76
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: o }),
|
|
77
|
+
" ",
|
|
78
|
+
l[1]
|
|
79
|
+
] }), re = () => {
|
|
80
|
+
const l = (o) => {
|
|
81
|
+
const u = r.findIndex(
|
|
82
|
+
(i) => i[t.value] === o[t.value]
|
|
83
|
+
), d = c.findIndex(
|
|
84
|
+
(i) => i === o[t.value]
|
|
85
|
+
);
|
|
86
|
+
r.splice(u, 1), c.splice(d, 1), x(c, r);
|
|
50
87
|
};
|
|
51
|
-
return e.jsxs(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
88
|
+
return /* @__PURE__ */ e.jsxs(
|
|
89
|
+
F,
|
|
90
|
+
{
|
|
91
|
+
direction: "vertical",
|
|
92
|
+
style: {
|
|
93
|
+
width: "calc(100% - 5px)",
|
|
94
|
+
paddingRight: 5,
|
|
95
|
+
maxHeight: r.length ? 220 : "auto",
|
|
96
|
+
overflow: "hidden auto"
|
|
97
|
+
},
|
|
98
|
+
children: [
|
|
99
|
+
r.map((o) => /* @__PURE__ */ e.jsxs(
|
|
100
|
+
ue,
|
|
101
|
+
{
|
|
102
|
+
justify: "space-between",
|
|
103
|
+
style: {
|
|
104
|
+
padding: "4px 8px",
|
|
105
|
+
border: `1px solid ${s.colorBorder}`,
|
|
106
|
+
backgroundColor: "#f5f5f5",
|
|
107
|
+
borderRadius: s.borderRadiusSM,
|
|
108
|
+
overflow: "hidden"
|
|
109
|
+
},
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: o[t.label] }) }),
|
|
112
|
+
/* @__PURE__ */ e.jsx(
|
|
113
|
+
ge,
|
|
114
|
+
{
|
|
115
|
+
style: {
|
|
116
|
+
color: s.colorError,
|
|
117
|
+
fontSize: 13,
|
|
118
|
+
cursor: "pointer"
|
|
119
|
+
},
|
|
120
|
+
onClick: () => l(o)
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
o[t.value]
|
|
126
|
+
)),
|
|
127
|
+
!r.length && /* @__PURE__ */ e.jsx(H, { image: H.PRESENTED_IMAGE_SIMPLE })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}, n = B(() => je(T, E), [T, E]), le = B(() => ye(
|
|
132
|
+
{ loadingTable: p },
|
|
133
|
+
{ loadingFailedTable: j },
|
|
134
|
+
"bitzSelectTable"
|
|
135
|
+
), [j, p]);
|
|
68
136
|
return ie(() => {
|
|
69
|
-
|
|
70
|
-
}, [R,
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
137
|
+
U(R ?? []), X(C ?? []);
|
|
138
|
+
}, [R, C]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
|
|
139
|
+
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && I && I(M, g == null ? void 0 : g.height) }),
|
|
140
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(h, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
|
|
142
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: q }) }),
|
|
143
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
|
|
144
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsx(
|
|
145
|
+
G,
|
|
146
|
+
{
|
|
147
|
+
allowClear: !0,
|
|
148
|
+
className: "tableSelectPopupToolTagSelect",
|
|
149
|
+
style: {
|
|
150
|
+
width: "100%",
|
|
151
|
+
"--toolTagSelect-color": p ? s.colorTextDisabled : s.colorText
|
|
152
|
+
},
|
|
153
|
+
placeholder: "常用标签",
|
|
154
|
+
showSearch: !1,
|
|
155
|
+
disabled: p,
|
|
156
|
+
options: J,
|
|
157
|
+
value: Y,
|
|
158
|
+
onChange: D,
|
|
159
|
+
onDropdownVisibleChange: S
|
|
160
|
+
}
|
|
161
|
+
) }) }),
|
|
162
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
163
|
+
/* @__PURE__ */ e.jsx(
|
|
164
|
+
G,
|
|
165
|
+
{
|
|
166
|
+
style: { width: "100%" },
|
|
167
|
+
mode: "multiple",
|
|
168
|
+
placeholder: "",
|
|
169
|
+
showSearch: !1,
|
|
170
|
+
options: r,
|
|
171
|
+
value: c,
|
|
172
|
+
fieldNames: t,
|
|
173
|
+
popupClassName: "tableSelectPopupTotalPopup",
|
|
174
|
+
dropdownRender: re,
|
|
175
|
+
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
176
|
+
onDropdownVisibleChange: S
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: te(
|
|
180
|
+
["已选择", "条数据"],
|
|
181
|
+
c.length || 0
|
|
182
|
+
) })
|
|
183
|
+
] }) }) }),
|
|
184
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
185
|
+
L,
|
|
186
|
+
{
|
|
187
|
+
type: "primary",
|
|
188
|
+
danger: !0,
|
|
189
|
+
onClick: () => x([], [], "clear"),
|
|
190
|
+
children: "清空"
|
|
191
|
+
}
|
|
192
|
+
) }),
|
|
193
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
194
|
+
L,
|
|
195
|
+
{
|
|
196
|
+
type: "primary",
|
|
197
|
+
onClick: () => x([], [], "confirm"),
|
|
198
|
+
children: "确认"
|
|
199
|
+
}
|
|
200
|
+
) })
|
|
201
|
+
] }) })
|
|
202
|
+
] }) }) }) }),
|
|
203
|
+
/* @__PURE__ */ e.jsx(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
ref: k,
|
|
207
|
+
...j && {
|
|
208
|
+
className: "pointerMouse",
|
|
209
|
+
onClick: () => W()
|
|
210
|
+
},
|
|
211
|
+
children: /* @__PURE__ */ e.jsx(
|
|
212
|
+
ae,
|
|
213
|
+
{
|
|
214
|
+
spinning: j,
|
|
215
|
+
indicator: /* @__PURE__ */ e.jsx(Te, {}),
|
|
216
|
+
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
217
|
+
children: /* @__PURE__ */ e.jsx(
|
|
218
|
+
xe,
|
|
219
|
+
{
|
|
220
|
+
size: Q,
|
|
221
|
+
rowKey: t.value,
|
|
222
|
+
loading: p,
|
|
223
|
+
bordered: "row-column",
|
|
224
|
+
tableLayout: "fixed",
|
|
225
|
+
scroll: { x: 1, y: 400 },
|
|
226
|
+
showPagination: !1,
|
|
227
|
+
showTableTool: !1,
|
|
228
|
+
rowSelection: N,
|
|
229
|
+
columns: V,
|
|
230
|
+
dataSource: y,
|
|
231
|
+
className: le,
|
|
232
|
+
...ee(),
|
|
233
|
+
style: {
|
|
234
|
+
"--tableBody-bootomBorderColor": ((A = s.Table) == null ? void 0 : A.borderColor) || s.colorBorderSecondary
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
/* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(h.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
243
|
+
de,
|
|
244
|
+
{
|
|
245
|
+
disabled: p,
|
|
246
|
+
className: "tableSelectPopupTablePagination",
|
|
247
|
+
size: "small",
|
|
248
|
+
enableControl: !0,
|
|
249
|
+
pagination: z,
|
|
250
|
+
total: O,
|
|
251
|
+
dataSource: y,
|
|
252
|
+
paginationEmit: $
|
|
253
|
+
}
|
|
254
|
+
) }) })
|
|
255
|
+
] }) })
|
|
256
|
+
] });
|
|
79
257
|
}
|
|
80
258
|
export {
|
|
81
|
-
|
|
259
|
+
He as default
|
|
82
260
|
};
|
|
@@ -12,14 +12,55 @@ const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
|
|
|
12
12
|
paddingBlock: a,
|
|
13
13
|
paddingInline: 24
|
|
14
14
|
}), [o]), [m, s] = p(!1);
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /* @__PURE__ */ e.jsxs(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: "cellBlock",
|
|
19
|
+
style: i,
|
|
20
|
+
onFocus: () => s(!0),
|
|
21
|
+
onBlur: () => s(!1),
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ e.jsx(u, { className: t("cellText"), value: l }),
|
|
24
|
+
/* @__PURE__ */ e.jsxs(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: t(
|
|
28
|
+
"tipBlock",
|
|
29
|
+
n ? "toTop" : "toBottom",
|
|
30
|
+
m ? "show" : ""
|
|
31
|
+
),
|
|
32
|
+
style: {
|
|
33
|
+
paddingInlineStart: 24 - 2,
|
|
34
|
+
paddingInlineEnd: 24 - 4,
|
|
35
|
+
paddingBlock: a
|
|
36
|
+
},
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx(
|
|
39
|
+
f,
|
|
40
|
+
{
|
|
41
|
+
className: t("closeIcon", n ? "top" : "bottom"),
|
|
42
|
+
onClick: () => s(!1)
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e.jsx(
|
|
46
|
+
B,
|
|
47
|
+
{
|
|
48
|
+
className: "tipText",
|
|
49
|
+
value: l,
|
|
50
|
+
autoSize: {
|
|
51
|
+
minRows: 1,
|
|
52
|
+
maxRows: 100
|
|
53
|
+
},
|
|
54
|
+
variant: "borderless",
|
|
55
|
+
readOnly: !0
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
23
64
|
};
|
|
24
65
|
export {
|
|
25
66
|
b as default
|
|
@@ -3,7 +3,13 @@ import { Input as l } from "antd";
|
|
|
3
3
|
import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
4
|
import { defaultValue as n } from "../index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const { TextArea: p } = l, j = ({
|
|
6
|
+
const { TextArea: p } = l, j = ({
|
|
7
|
+
maxRows: t = 1,
|
|
8
|
+
minRows: o,
|
|
9
|
+
bold: s,
|
|
10
|
+
value: e,
|
|
11
|
+
className: r
|
|
12
|
+
}) => {
|
|
7
13
|
const a = {
|
|
8
14
|
"--cell-text-maxRows": t,
|
|
9
15
|
...s && {
|
|
@@ -13,10 +19,22 @@ const { TextArea: p } = l, j = ({ maxRows: t = 1, minRows: o, bold: s, value: e,
|
|
|
13
19
|
paddingInline: 24
|
|
14
20
|
}
|
|
15
21
|
};
|
|
16
|
-
return i.jsx(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
return /* @__PURE__ */ i.jsx(
|
|
23
|
+
p,
|
|
24
|
+
{
|
|
25
|
+
className: m("textBlock", r),
|
|
26
|
+
title: e,
|
|
27
|
+
value: e,
|
|
28
|
+
readOnly: !0,
|
|
29
|
+
size: "small",
|
|
30
|
+
variant: "borderless",
|
|
31
|
+
autoSize: {
|
|
32
|
+
minRows: o ?? t,
|
|
33
|
+
maxRows: t
|
|
34
|
+
},
|
|
35
|
+
style: a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
20
38
|
};
|
|
21
39
|
export {
|
|
22
40
|
j as default
|
|
@@ -1,18 +1,66 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as j } from "react";
|
|
3
|
+
import { isMobile as d } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import F from "./Select/index.mjs";
|
|
5
|
+
import M from "./Picker/index.mjs";
|
|
6
|
+
function z({
|
|
7
|
+
columns: l,
|
|
8
|
+
tableData: u,
|
|
9
|
+
loading: m,
|
|
10
|
+
loadingFailed: c,
|
|
11
|
+
loadAgain: p,
|
|
12
|
+
total: s,
|
|
13
|
+
page: o,
|
|
14
|
+
onPageChange: f,
|
|
15
|
+
onSearch: b,
|
|
16
|
+
showToolTagSelect: e = !1,
|
|
17
|
+
placeholder: i = "请选择",
|
|
18
|
+
fieldNames: a,
|
|
19
|
+
offsetWidth: n,
|
|
20
|
+
...r
|
|
21
|
+
}) {
|
|
22
|
+
const x = j(() => r.lrLayout ? e ? 900 + (n || 0) : 830 + (n || 0) : e ? 750 + (n || 0) : 700 + (n || 0), [r.lrLayout, e, n]);
|
|
23
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: d ? /* @__PURE__ */ t.jsx(
|
|
24
|
+
M,
|
|
25
|
+
{
|
|
26
|
+
columns: [],
|
|
27
|
+
tableData: [],
|
|
28
|
+
loading: !1,
|
|
29
|
+
loadingFailed: !1,
|
|
30
|
+
loadAgain: function() {
|
|
31
|
+
throw new Error("Function not implemented.");
|
|
32
|
+
},
|
|
33
|
+
total: 0,
|
|
34
|
+
page: o,
|
|
35
|
+
onPageChange: function() {
|
|
36
|
+
throw new Error("Function not implemented.");
|
|
37
|
+
},
|
|
38
|
+
placeholder: i,
|
|
39
|
+
fieldNames: a,
|
|
40
|
+
...r
|
|
41
|
+
}
|
|
42
|
+
) : /* @__PURE__ */ t.jsx(
|
|
43
|
+
F,
|
|
44
|
+
{
|
|
45
|
+
columns: l,
|
|
46
|
+
tableData: u,
|
|
47
|
+
loading: m,
|
|
48
|
+
loadingFailed: c,
|
|
49
|
+
loadAgain: p,
|
|
50
|
+
total: s,
|
|
51
|
+
page: o,
|
|
52
|
+
onPageChange: f,
|
|
53
|
+
onSearch: b,
|
|
54
|
+
placeholder: i,
|
|
55
|
+
fieldNames: a,
|
|
56
|
+
popupMatchSelectWidth: x,
|
|
57
|
+
showToolTagSelect: e,
|
|
58
|
+
...r
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
13
61
|
}
|
|
14
62
|
const A = "-";
|
|
15
63
|
export {
|
|
16
|
-
|
|
64
|
+
z as default,
|
|
17
65
|
A as defaultValue
|
|
18
66
|
};
|
|
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
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,26 +1,26 @@
|
|
|
1
1
|
import m from "../../node_modules/.store/antd@5.16.2/node_modules/antd/es/theme/getDesignToken.mjs";
|
|
2
2
|
import r from "../../node_modules/.store/antd@5.16.2/node_modules/antd/es/theme/themes/compact/index.mjs";
|
|
3
3
|
import i from "../../node_modules/.store/antd@5.16.2/node_modules/antd/es/theme/themes/dark/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { theme as
|
|
4
|
+
import f from "../../node_modules/.store/antd@5.16.2/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/.store/antd@5.16.2/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/.store/react@18.2.0/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/.store/react@18.2.0/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
|
};
|