bitz-react-admin-ui 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- 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 +29 -29
- 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/BitzFluentInput/index.mjs +23 -4
- package/dist/components/BitzFluentSelect/index.mjs +24 -5
- 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 +29 -6
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- 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 +62 -14
- 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 +33 -5
- 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 +90 -16
- 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 +32 -14
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +68 -45
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -14
- package/dist/components/BitzTable/Table/index.mjs +305 -145
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +10 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +100 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +10 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +103 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +13 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +88 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +14 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +261 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +6 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +17 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.d.ts +8 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +13 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +10 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +163 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +11 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +44 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +249 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +64 -19
- package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/index.mjs +6 -4
- 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 +21 -11
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
- 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/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2179 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
- package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
- package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
- package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/lodash-es/_parent.mjs +8 -0
- package/dist/node_modules/lodash-es/isMap.mjs +8 -0
- package/dist/node_modules/lodash-es/isSet.mjs +8 -0
- package/dist/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/lodash-es/last.mjs +7 -0
- package/dist/node_modules/lodash-es/omit.mjs +24 -0
- package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/style.css +1 -1
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useRef as ee, useState as y, useMemo as g, useCallback as te, useEffect as re } from "react";
|
|
3
|
-
import { Row as m, Col as c, Space as k, Form as d, Select as
|
|
3
|
+
import { Row as m, Col as c, Space as k, Form as d, Select as M, Spin as oe, Typography as le, Flex as se, Empty as K } from "antd";
|
|
4
4
|
import ce from "../../BitzPagination/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as
|
|
5
|
+
import ie from "../../BitzTable/index.mjs";
|
|
6
|
+
import F from "../../BitzButton/index.mjs";
|
|
7
|
+
import { getColumns as ne, getExpandable as ae, getLayoutConfig as de } from "./getData.mjs";
|
|
8
8
|
import pe from "../TextBlock/index.mjs";
|
|
9
9
|
import ue from "../../../node_modules/ahooks/es/useSize/index.mjs";
|
|
10
10
|
import xe from "../../BitzTheme/index.mjs";
|
|
@@ -12,52 +12,222 @@ import me from "../../../node_modules/classnames/index.mjs";
|
|
|
12
12
|
import "./index.less.mjs";
|
|
13
13
|
import he from "../../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
14
14
|
import je from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
function Ce({
|
|
16
|
+
columns: T,
|
|
17
|
+
tableData: h,
|
|
18
|
+
total: N,
|
|
19
|
+
loading: i,
|
|
20
|
+
loadingFailed: p,
|
|
21
|
+
loadAgain: _,
|
|
22
|
+
page: w,
|
|
23
|
+
onPageChange: A,
|
|
24
|
+
searchInput: G,
|
|
25
|
+
showToolTagSelect: v,
|
|
26
|
+
toolTags: H,
|
|
27
|
+
onToolTagChange: j,
|
|
28
|
+
lrLayout: b,
|
|
29
|
+
parentRender: P,
|
|
30
|
+
keys: R,
|
|
31
|
+
rows: B,
|
|
32
|
+
fieldNames: l,
|
|
33
|
+
onChange: u,
|
|
34
|
+
onDropdownVisibleChange: x
|
|
35
|
+
}) {
|
|
36
|
+
var z, C;
|
|
37
|
+
const E = ee(null), f = ue(E), { token: t } = xe.useToken(), I = ((z = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : z.tableSpaceBetweenPage) ?? 10, [a, L] = y([]), [n, O] = y([]), [W, $] = y(void 0), q = (o, r) => {
|
|
38
|
+
$(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
|
|
19
39
|
x(!1);
|
|
20
40
|
}, 0));
|
|
21
|
-
},
|
|
41
|
+
}, J = g(() => ne(T, h, w), [T]), Q = {
|
|
22
42
|
selectedRowKeys: a,
|
|
23
43
|
preserveSelectedRowKeys: !0,
|
|
24
44
|
onChange(o, r) {
|
|
25
45
|
u(o, r);
|
|
26
46
|
}
|
|
27
|
-
},
|
|
47
|
+
}, U = te(() => ae(l.items, i), [l.items]), X = (o, r) => /* @__PURE__ */ e.jsxs("span", { style: { color: t.colorText }, children: [
|
|
48
|
+
o[0],
|
|
49
|
+
" ",
|
|
50
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }),
|
|
51
|
+
" ",
|
|
52
|
+
o[1]
|
|
53
|
+
] }), Y = () => {
|
|
28
54
|
const o = (r) => {
|
|
29
|
-
const
|
|
30
|
-
|
|
55
|
+
const D = n.findIndex(
|
|
56
|
+
(S) => S[l.value] === r[l.value]
|
|
57
|
+
), V = a.findIndex(
|
|
58
|
+
(S) => S === r[l.value]
|
|
59
|
+
);
|
|
60
|
+
n.splice(D, 1), a.splice(V, 1), u(a, n);
|
|
31
61
|
};
|
|
32
|
-
return e.jsxs(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
return /* @__PURE__ */ e.jsxs(
|
|
63
|
+
k,
|
|
64
|
+
{
|
|
65
|
+
direction: "vertical",
|
|
66
|
+
style: {
|
|
67
|
+
width: "calc(100% - 5px)",
|
|
68
|
+
paddingRight: 5,
|
|
69
|
+
maxHeight: n.length ? 220 : "auto",
|
|
70
|
+
overflow: "hidden auto"
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
n.map((r) => /* @__PURE__ */ e.jsxs(
|
|
74
|
+
se,
|
|
75
|
+
{
|
|
76
|
+
justify: "space-between",
|
|
77
|
+
style: {
|
|
78
|
+
padding: "4px 8px",
|
|
79
|
+
border: `1px solid ${t.colorBorder}`,
|
|
80
|
+
backgroundColor: "#f5f5f5",
|
|
81
|
+
borderRadius: t.borderRadiusSM,
|
|
82
|
+
overflow: "hidden"
|
|
83
|
+
},
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(pe, { value: r[l.label] }) }),
|
|
86
|
+
/* @__PURE__ */ e.jsx(
|
|
87
|
+
je,
|
|
88
|
+
{
|
|
89
|
+
style: {
|
|
90
|
+
color: t.colorError,
|
|
91
|
+
fontSize: 13,
|
|
92
|
+
cursor: "pointer"
|
|
93
|
+
},
|
|
94
|
+
onClick: () => o(r)
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
r[l.value]
|
|
100
|
+
)),
|
|
101
|
+
!n.length && /* @__PURE__ */ e.jsx(K, { image: K.PRESENTED_IMAGE_SIMPLE })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}, s = g(() => de(b, v), [b, v]), Z = g(() => me(
|
|
106
|
+
{ loadingTable: i },
|
|
107
|
+
{ loadingFailedTable: p },
|
|
108
|
+
"bitzSelectTable"
|
|
109
|
+
), [p, i]);
|
|
49
110
|
return re(() => {
|
|
50
|
-
|
|
51
|
-
}, [R,
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
111
|
+
L(R ?? []), O(B ?? []);
|
|
112
|
+
}, [R, B]), /* @__PURE__ */ e.jsxs(m, { gutter: s.gutter, children: [
|
|
113
|
+
/* @__PURE__ */ e.jsx(c, { span: s.left.span, children: b && P && P(I, f == null ? void 0 : f.height) }),
|
|
114
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.span, children: /* @__PURE__ */ e.jsxs(k, { direction: "vertical", size: I, style: { width: "100%" }, children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(d, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(m, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(c, { span: 24, children: /* @__PURE__ */ e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.search, children: /* @__PURE__ */ e.jsx(d.Item, { children: G }) }),
|
|
117
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.operation, children: /* @__PURE__ */ e.jsxs(m, { justify: "end", gutter: 8, children: [
|
|
118
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsx(
|
|
119
|
+
M,
|
|
120
|
+
{
|
|
121
|
+
allowClear: !0,
|
|
122
|
+
className: "tableSelectPopupToolTagSelect",
|
|
123
|
+
style: {
|
|
124
|
+
width: "100%",
|
|
125
|
+
"--toolTagSelect-color": i ? t.colorTextDisabled : t.colorText
|
|
126
|
+
},
|
|
127
|
+
placeholder: "常用标签",
|
|
128
|
+
showSearch: !1,
|
|
129
|
+
disabled: i,
|
|
130
|
+
options: H,
|
|
131
|
+
value: W,
|
|
132
|
+
onChange: q,
|
|
133
|
+
onDropdownVisibleChange: x
|
|
134
|
+
}
|
|
135
|
+
) }) }),
|
|
136
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.totalSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
137
|
+
/* @__PURE__ */ e.jsx(
|
|
138
|
+
M,
|
|
139
|
+
{
|
|
140
|
+
style: { width: "100%" },
|
|
141
|
+
mode: "multiple",
|
|
142
|
+
placeholder: "",
|
|
143
|
+
showSearch: !1,
|
|
144
|
+
options: n,
|
|
145
|
+
value: a,
|
|
146
|
+
fieldNames: l,
|
|
147
|
+
popupClassName: "tableSelectPopupTotalPopup",
|
|
148
|
+
dropdownRender: Y,
|
|
149
|
+
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
150
|
+
onDropdownVisibleChange: x
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: X(
|
|
154
|
+
["已选择", "条数据"],
|
|
155
|
+
a.length || 0
|
|
156
|
+
) })
|
|
157
|
+
] }) }) }),
|
|
158
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
|
|
159
|
+
F,
|
|
160
|
+
{
|
|
161
|
+
type: "primary",
|
|
162
|
+
danger: !0,
|
|
163
|
+
onClick: () => u([], [], "clear"),
|
|
164
|
+
children: "清空"
|
|
165
|
+
}
|
|
166
|
+
) }),
|
|
167
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
|
|
168
|
+
F,
|
|
169
|
+
{
|
|
170
|
+
type: "primary",
|
|
171
|
+
onClick: () => u([], [], "confirm"),
|
|
172
|
+
children: "确认"
|
|
173
|
+
}
|
|
174
|
+
) })
|
|
175
|
+
] }) })
|
|
176
|
+
] }) }) }) }),
|
|
177
|
+
/* @__PURE__ */ e.jsx(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
ref: E,
|
|
181
|
+
...p && {
|
|
182
|
+
className: "pointerMouse",
|
|
183
|
+
onClick: () => _()
|
|
184
|
+
},
|
|
185
|
+
children: /* @__PURE__ */ e.jsx(
|
|
186
|
+
oe,
|
|
187
|
+
{
|
|
188
|
+
spinning: p,
|
|
189
|
+
indicator: /* @__PURE__ */ e.jsx(he, {}),
|
|
190
|
+
tip: /* @__PURE__ */ e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
191
|
+
children: /* @__PURE__ */ e.jsx(
|
|
192
|
+
ie,
|
|
193
|
+
{
|
|
194
|
+
rowKey: l.value,
|
|
195
|
+
loading: i,
|
|
196
|
+
bordered: "row-column",
|
|
197
|
+
tableLayout: "fixed",
|
|
198
|
+
scroll: { x: 1, y: 400 },
|
|
199
|
+
showPagination: !1,
|
|
200
|
+
showTableTool: !1,
|
|
201
|
+
rowSelection: Q,
|
|
202
|
+
columns: J,
|
|
203
|
+
dataSource: h,
|
|
204
|
+
className: Z,
|
|
205
|
+
...U(),
|
|
206
|
+
style: {
|
|
207
|
+
"--tableBody-bootomBorderColor": ((C = t.Table) == null ? void 0 : C.borderColor) || t.colorBorderSecondary
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx(d.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
216
|
+
ce,
|
|
217
|
+
{
|
|
218
|
+
disabled: i,
|
|
219
|
+
className: "tableSelectPopupTablePagination",
|
|
220
|
+
size: "small",
|
|
221
|
+
enableControl: !0,
|
|
222
|
+
pagination: w,
|
|
223
|
+
total: N,
|
|
224
|
+
dataSource: h,
|
|
225
|
+
paginationEmit: A
|
|
226
|
+
}
|
|
227
|
+
) }) })
|
|
228
|
+
] }) })
|
|
229
|
+
] });
|
|
60
230
|
}
|
|
61
231
|
export {
|
|
62
|
-
|
|
232
|
+
Ce as default
|
|
63
233
|
};
|
|
@@ -10,14 +10,55 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
|
|
|
10
10
|
paddingBlock: 12,
|
|
11
11
|
paddingInline: 24
|
|
12
12
|
}), [n]), [r, o] = m(!1);
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
return /* @__PURE__ */ e.jsxs(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: "cellBlock",
|
|
17
|
+
style: a,
|
|
18
|
+
onFocus: () => o(!0),
|
|
19
|
+
onBlur: () => o(!1),
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ e.jsx(p, { className: s("cellText"), value: t }),
|
|
22
|
+
/* @__PURE__ */ e.jsxs(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: s(
|
|
26
|
+
"tipBlock",
|
|
27
|
+
l ? "toTop" : "toBottom",
|
|
28
|
+
r ? "show" : ""
|
|
29
|
+
),
|
|
30
|
+
style: {
|
|
31
|
+
paddingInlineStart: 24 - 2,
|
|
32
|
+
paddingInlineEnd: 24 - 4,
|
|
33
|
+
paddingBlock: 12
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ e.jsx(
|
|
37
|
+
u,
|
|
38
|
+
{
|
|
39
|
+
className: s("closeIcon", l ? "top" : "bottom"),
|
|
40
|
+
onClick: () => o(!1)
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e.jsx(
|
|
44
|
+
x,
|
|
45
|
+
{
|
|
46
|
+
className: "tipText",
|
|
47
|
+
value: t,
|
|
48
|
+
autoSize: {
|
|
49
|
+
minRows: 1,
|
|
50
|
+
maxRows: 100
|
|
51
|
+
},
|
|
52
|
+
variant: "borderless",
|
|
53
|
+
readOnly: !0
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
21
62
|
};
|
|
22
63
|
export {
|
|
23
64
|
g as default
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
1
|
+
import { j as i } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Input as l } from "antd";
|
|
3
|
+
import m from "../../../node_modules/classnames/index.mjs";
|
|
4
4
|
import "./index.less.mjs";
|
|
5
|
-
const { TextArea: n } =
|
|
5
|
+
const { TextArea: n } = l, u = ({
|
|
6
|
+
maxRows: t = 1,
|
|
7
|
+
minRows: o,
|
|
8
|
+
bold: e,
|
|
9
|
+
value: s,
|
|
10
|
+
className: r
|
|
11
|
+
}) => {
|
|
6
12
|
const a = {
|
|
7
13
|
"--cell-text-maxRows": t,
|
|
8
14
|
...e && {
|
|
9
15
|
fontWeight: e
|
|
10
16
|
}
|
|
11
17
|
};
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
return /* @__PURE__ */ i.jsx(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
className: m("textBlock", r),
|
|
22
|
+
title: s,
|
|
23
|
+
value: s,
|
|
24
|
+
readOnly: !0,
|
|
25
|
+
size: "small",
|
|
26
|
+
variant: "borderless",
|
|
27
|
+
autoSize: {
|
|
28
|
+
minRows: o ?? t,
|
|
29
|
+
maxRows: t
|
|
30
|
+
},
|
|
31
|
+
style: a
|
|
32
|
+
}
|
|
33
|
+
);
|
|
16
34
|
};
|
|
17
35
|
export {
|
|
18
|
-
|
|
36
|
+
u as default
|
|
19
37
|
};
|
|
@@ -1,16 +1,64 @@
|
|
|
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/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as j } from "react";
|
|
3
|
+
import { isMobile as F } from "../../node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import M from "./Select/index.mjs";
|
|
5
|
+
import d from "./Picker/index.mjs";
|
|
6
|
+
function z({
|
|
7
|
+
columns: l,
|
|
8
|
+
tableData: m,
|
|
9
|
+
loading: u,
|
|
10
|
+
loadingFailed: p,
|
|
11
|
+
loadAgain: c,
|
|
12
|
+
total: s,
|
|
13
|
+
page: i,
|
|
14
|
+
onPageChange: b,
|
|
15
|
+
onSearch: f,
|
|
16
|
+
showToolTagSelect: r = !1,
|
|
17
|
+
placeholder: o = "请选择",
|
|
18
|
+
fieldNames: a,
|
|
19
|
+
offsetWidth: n,
|
|
20
|
+
...e
|
|
21
|
+
}) {
|
|
22
|
+
const x = j(() => e.lrLayout ? r ? 900 + (n || 0) : 830 + (n || 0) : r ? 750 + (n || 0) : 700 + (n || 0), [e.lrLayout, r, n]);
|
|
23
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: F ? /* @__PURE__ */ t.jsx(
|
|
24
|
+
d,
|
|
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: i,
|
|
35
|
+
onPageChange: function() {
|
|
36
|
+
throw new Error("Function not implemented.");
|
|
37
|
+
},
|
|
38
|
+
placeholder: o,
|
|
39
|
+
fieldNames: a,
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
) : /* @__PURE__ */ t.jsx(
|
|
43
|
+
M,
|
|
44
|
+
{
|
|
45
|
+
columns: l,
|
|
46
|
+
tableData: m,
|
|
47
|
+
loading: u,
|
|
48
|
+
loadingFailed: p,
|
|
49
|
+
loadAgain: c,
|
|
50
|
+
total: s,
|
|
51
|
+
page: i,
|
|
52
|
+
onPageChange: b,
|
|
53
|
+
onSearch: f,
|
|
54
|
+
placeholder: o,
|
|
55
|
+
fieldNames: a,
|
|
56
|
+
popupMatchSelectWidth: x,
|
|
57
|
+
showToolTagSelect: r,
|
|
58
|
+
...e
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
13
61
|
}
|
|
14
62
|
export {
|
|
15
|
-
|
|
63
|
+
z as default
|
|
16
64
|
};
|
|
@@ -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,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
|
};
|