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,26 +1,71 @@
|
|
|
1
1
|
import { j as n } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Space as
|
|
4
|
-
import
|
|
5
|
-
import C from "../
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { memo as d, useContext as w, useMemo as m } from "react";
|
|
3
|
+
import { Space as g } from "antd";
|
|
4
|
+
import u from "../RefreshIcon/index.mjs";
|
|
5
|
+
import C from "../ColConfigIcon/index.mjs";
|
|
6
|
+
import x from "../FullscreenIcon/index.mjs";
|
|
7
|
+
import j from "../ExportIcon/index.mjs";
|
|
8
|
+
import { BitzConfigContext as B } from "../../../BitzConfigProvider/context.mjs";
|
|
9
|
+
const z = ["export", "refresh", "fullscreen", "config"], E = ({
|
|
10
|
+
size: I,
|
|
11
|
+
tools: h,
|
|
12
|
+
toolsConfig: T,
|
|
13
|
+
exclude: e,
|
|
14
|
+
loading: i,
|
|
15
|
+
onExport: l,
|
|
16
|
+
onRefresh: c,
|
|
17
|
+
onColumnChange: p
|
|
18
|
+
}) => {
|
|
19
|
+
const { Table: r } = w(B), f = m(() => {
|
|
20
|
+
const s = h || (r == null ? void 0 : r.toolbar) || z;
|
|
21
|
+
return e != null && e.length ? s.filter((t) => !e.includes(t)) : s;
|
|
22
|
+
}, [r == null ? void 0 : r.toolbar, e]), o = m(() => {
|
|
23
|
+
const s = {
|
|
14
24
|
export: { order: 1, show: !1 },
|
|
15
25
|
refresh: { order: 2, show: !1 },
|
|
16
|
-
fullscreen: { order: 3, show: !1 }
|
|
26
|
+
fullscreen: { order: 3, show: !1 },
|
|
27
|
+
config: { order: 4, show: !1 }
|
|
17
28
|
};
|
|
18
|
-
return f.forEach((t,
|
|
19
|
-
|
|
20
|
-
}),
|
|
29
|
+
return f.forEach((t, a) => {
|
|
30
|
+
s[t].order = a + 1, s[t].show = f.includes(t);
|
|
31
|
+
}), s;
|
|
21
32
|
}, [f]);
|
|
22
|
-
return n.jsxs(
|
|
23
|
-
|
|
33
|
+
return /* @__PURE__ */ n.jsxs(g.Compact, { style: { height: "100%" }, children: [
|
|
34
|
+
/* @__PURE__ */ n.jsx(
|
|
35
|
+
j,
|
|
36
|
+
{
|
|
37
|
+
order: o.export.order,
|
|
38
|
+
show: o.export.show,
|
|
39
|
+
loading: i,
|
|
40
|
+
onClick: l
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ n.jsx(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
order: o.refresh.order,
|
|
47
|
+
show: o.refresh.show,
|
|
48
|
+
loading: i,
|
|
49
|
+
onClick: c
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ n.jsx(
|
|
53
|
+
x,
|
|
54
|
+
{
|
|
55
|
+
order: o.fullscreen.order,
|
|
56
|
+
show: o.fullscreen.show
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ n.jsx(
|
|
60
|
+
C,
|
|
61
|
+
{
|
|
62
|
+
order: o.config.order,
|
|
63
|
+
show: o.config.show,
|
|
64
|
+
onChange: p
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] });
|
|
68
|
+
}, A = d(E);
|
|
24
69
|
export {
|
|
25
|
-
|
|
70
|
+
A as default
|
|
26
71
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ExportIcon from './ExportIcon';
|
|
2
2
|
import RefreshIcon from './RefreshIcon';
|
|
3
|
+
import ColConfigIcon from './ColConfigIcon';
|
|
3
4
|
import { DensitySize } from '../Store';
|
|
4
5
|
import { MouseEventHandler } from 'react';
|
|
5
6
|
import FullscreenIcon from './FullscreenIcon';
|
|
@@ -51,6 +52,7 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableToolBarProps
|
|
|
51
52
|
ExportIcon: typeof ExportIcon;
|
|
52
53
|
RefreshIcon: typeof RefreshIcon;
|
|
53
54
|
FullscreenIcon: typeof FullscreenIcon;
|
|
55
|
+
ColConfigIcon: typeof ColConfigIcon;
|
|
54
56
|
};
|
|
55
57
|
declare const BitzTableToolBar: CompoundedComponent;
|
|
56
58
|
export default BitzTableToolBar;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import r from "./Wrapper/index.mjs";
|
|
2
2
|
import e from "./ExportIcon/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import n from "./RefreshIcon/index.mjs";
|
|
4
|
+
import l from "./ColConfigIcon/index.mjs";
|
|
5
|
+
import t from "./FullscreenIcon/index.mjs";
|
|
5
6
|
const o = r;
|
|
6
7
|
process.env.NODE_ENV !== "production" && (o.displayName = "BitzTableToolBar");
|
|
7
8
|
o.ExportIcon = e;
|
|
8
|
-
o.RefreshIcon =
|
|
9
|
-
o.FullscreenIcon =
|
|
9
|
+
o.RefreshIcon = n;
|
|
10
|
+
o.FullscreenIcon = t;
|
|
11
|
+
o.ColConfigIcon = l;
|
|
10
12
|
export {
|
|
11
13
|
o as default
|
|
12
14
|
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Space as p, Button as n } from "antd";
|
|
3
3
|
const m = ({ record: a = {}, operations: r = [], tableOperationEmit: s = () => {
|
|
4
|
-
}, ...l }) => t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: t.jsx(p, { children: r.map((e, i) =>
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
}, ...l }) => /* @__PURE__ */ t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: /* @__PURE__ */ t.jsx(p, { children: r.map((e, i) => /* @__PURE__ */ t.jsx(
|
|
5
|
+
n,
|
|
6
|
+
{
|
|
7
|
+
className: `${(e == null ? void 0 : e.className) || ""}`,
|
|
8
|
+
type: e.type == "edit" ? "primary" : "default",
|
|
9
|
+
danger: e.type == "delete",
|
|
10
|
+
onClick: () => {
|
|
11
|
+
s(e.type, a);
|
|
12
|
+
},
|
|
13
|
+
children: e.label
|
|
14
|
+
},
|
|
15
|
+
i
|
|
16
|
+
)) }) });
|
|
7
17
|
export {
|
|
8
18
|
m as default
|
|
9
19
|
};
|
|
@@ -3,21 +3,54 @@ import { useState as r, useEffect as j } from "react";
|
|
|
3
3
|
import { Select as b, Drawer as w, Input as S } from "antd";
|
|
4
4
|
import k from "../../BitzButton/index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const h = ({
|
|
7
|
+
value: s,
|
|
8
|
+
placeholder: a = "请选择",
|
|
9
|
+
fieldNames: p = {
|
|
10
|
+
label: "name",
|
|
11
|
+
value: "key"
|
|
12
|
+
},
|
|
13
|
+
onChange: t,
|
|
14
|
+
...y
|
|
15
|
+
}) => {
|
|
16
|
+
const [c, m] = r([]), [f, l] = r([]), [n, o] = r(!1), u = () => {
|
|
11
17
|
l([]), t == null || t([], []);
|
|
12
|
-
}, d = (x,
|
|
13
|
-
l(
|
|
18
|
+
}, d = (x, i) => {
|
|
19
|
+
l(i), t == null || t(x, i);
|
|
14
20
|
};
|
|
15
21
|
return j(() => {
|
|
16
22
|
if (s && !Array.isArray(s))
|
|
17
|
-
throw new Error(
|
|
23
|
+
throw new Error(
|
|
24
|
+
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
|
|
25
|
+
);
|
|
18
26
|
m(s ?? []);
|
|
19
|
-
}, [s]),
|
|
27
|
+
}, [s]), /* @__PURE__ */ e.jsxs("div", { children: [
|
|
28
|
+
/* @__PURE__ */ e.jsx(
|
|
29
|
+
b,
|
|
30
|
+
{
|
|
31
|
+
style: { width: "200px" },
|
|
32
|
+
allowClear: !0,
|
|
33
|
+
mode: "tags",
|
|
34
|
+
maxTagCount: "responsive",
|
|
35
|
+
value: c,
|
|
36
|
+
options: f,
|
|
37
|
+
fieldNames: p,
|
|
38
|
+
showSearch: !1,
|
|
39
|
+
open: !1,
|
|
40
|
+
placeholder: a,
|
|
41
|
+
popupClassName: "tableSelectPopupBlock",
|
|
42
|
+
dropdownRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
43
|
+
onClick: () => o(!0),
|
|
44
|
+
onClear: u,
|
|
45
|
+
onChange: d
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e.jsxs(w, { open: n, placement: "bottom", height: "100%", children: [
|
|
49
|
+
/* @__PURE__ */ e.jsx(S, {}),
|
|
50
|
+
/* @__PURE__ */ e.jsx(k, { onClick: () => o(!1), children: "关闭" })
|
|
51
|
+
] })
|
|
52
|
+
] });
|
|
20
53
|
};
|
|
21
54
|
export {
|
|
22
|
-
|
|
55
|
+
h as default
|
|
23
56
|
};
|
|
@@ -1,25 +1,91 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as i, useEffect as
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { j as S } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as i, useEffect as b } from "react";
|
|
3
|
+
import { Select as I } from "antd";
|
|
4
|
+
import J from "../SelectPopup/index.mjs";
|
|
5
|
+
function U({
|
|
6
|
+
value: l,
|
|
7
|
+
options: t,
|
|
8
|
+
columns: a,
|
|
9
|
+
tableData: n,
|
|
10
|
+
total: x,
|
|
11
|
+
loading: V,
|
|
12
|
+
loadingFailed: j,
|
|
13
|
+
loadAgain: w,
|
|
14
|
+
page: T,
|
|
15
|
+
onPageChange: k,
|
|
16
|
+
searchInput: y,
|
|
17
|
+
showToolTagSelect: E,
|
|
18
|
+
toolTags: A,
|
|
19
|
+
onToolTagChange: B,
|
|
20
|
+
lrLayout: D,
|
|
21
|
+
parentRender: P,
|
|
22
|
+
placeholder: d = "请选择",
|
|
23
|
+
fieldNames: p,
|
|
24
|
+
onChange: e,
|
|
25
|
+
...v
|
|
26
|
+
}) {
|
|
27
|
+
const [m, F] = i([]), [u, o] = i([]), [c, f] = i(!1), [N, O] = i(!1), $ = () => {
|
|
28
|
+
o([]), e == null || e([], []);
|
|
29
|
+
}, q = (s, r, H) => {
|
|
30
|
+
H === "confirm" ? f(!1) : (o([...r]), e == null || e([...s], [...r]));
|
|
31
|
+
}, z = (s, r) => {
|
|
32
|
+
o(r), e == null || e(s, r);
|
|
33
|
+
}, G = (s) => {
|
|
34
|
+
!c && s && f(!0), !N && !s && c && f(!1);
|
|
14
35
|
};
|
|
15
|
-
return
|
|
16
|
-
if (
|
|
17
|
-
throw new Error(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, [
|
|
36
|
+
return b(() => {
|
|
37
|
+
if (l && !Array.isArray(l))
|
|
38
|
+
throw new Error(
|
|
39
|
+
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${l}`
|
|
40
|
+
);
|
|
41
|
+
F(l ?? []);
|
|
42
|
+
}, [l]), b(() => {
|
|
43
|
+
t != null && t.length && o(t);
|
|
44
|
+
}, [t]), /* @__PURE__ */ S.jsx(
|
|
45
|
+
I,
|
|
46
|
+
{
|
|
47
|
+
allowClear: !0,
|
|
48
|
+
className: "tableSelectBlock",
|
|
49
|
+
mode: "multiple",
|
|
50
|
+
maxTagCount: "responsive",
|
|
51
|
+
value: m,
|
|
52
|
+
options: u,
|
|
53
|
+
fieldNames: p,
|
|
54
|
+
showSearch: !1,
|
|
55
|
+
open: c,
|
|
56
|
+
placeholder: d,
|
|
57
|
+
popupClassName: "tableSelectPopupBlock",
|
|
58
|
+
dropdownRender: () => /* @__PURE__ */ S.jsx(
|
|
59
|
+
J,
|
|
60
|
+
{
|
|
61
|
+
columns: a,
|
|
62
|
+
tableData: n,
|
|
63
|
+
total: x,
|
|
64
|
+
page: T,
|
|
65
|
+
onPageChange: k,
|
|
66
|
+
searchInput: y,
|
|
67
|
+
loading: V,
|
|
68
|
+
loadingFailed: j,
|
|
69
|
+
loadAgain: w,
|
|
70
|
+
keys: m,
|
|
71
|
+
rows: u,
|
|
72
|
+
fieldNames: p,
|
|
73
|
+
onChange: q,
|
|
74
|
+
onDropdownVisibleChange: O,
|
|
75
|
+
showToolTagSelect: E,
|
|
76
|
+
toolTags: A,
|
|
77
|
+
onToolTagChange: B,
|
|
78
|
+
lrLayout: D,
|
|
79
|
+
parentRender: P
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
onClear: $,
|
|
83
|
+
onDropdownVisibleChange: G,
|
|
84
|
+
onChange: z,
|
|
85
|
+
...v
|
|
86
|
+
}
|
|
87
|
+
);
|
|
22
88
|
}
|
|
23
89
|
export {
|
|
24
|
-
|
|
90
|
+
U as default
|
|
25
91
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import p from "../../BitzDescriptions/index.mjs";
|
|
3
|
+
import m from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
5
|
const b = (o, n, e) => {
|
|
6
|
-
const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
|
|
6
|
+
const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
|
|
7
7
|
...r,
|
|
8
8
|
width: "auto",
|
|
9
|
-
render: (t, c,
|
|
10
|
-
const
|
|
9
|
+
render: (t, c, g) => {
|
|
10
|
+
const f = (n == null ? void 0 : n.length) === 1 ? !1 : g + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
|
|
11
11
|
if (r != null && r.render) {
|
|
12
|
-
const s = r.render(t, c,
|
|
12
|
+
const s = r.render(t, c, g);
|
|
13
13
|
if (typeof s == "object")
|
|
14
14
|
return s;
|
|
15
|
-
if (["boolean", "number", "bigint", "string"].includes(
|
|
16
|
-
|
|
15
|
+
if (["boolean", "number", "bigint", "string"].includes(
|
|
16
|
+
typeof s
|
|
17
|
+
))
|
|
18
|
+
return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
|
|
17
19
|
}
|
|
18
|
-
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value: "-" }) : i.jsx(
|
|
20
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: "-" }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
|
|
19
21
|
}
|
|
20
22
|
}));
|
|
21
23
|
return [
|
|
@@ -36,8 +38,16 @@ const b = (o, n, e) => {
|
|
|
36
38
|
},
|
|
37
39
|
expandedRowRender: (e) => {
|
|
38
40
|
var r;
|
|
39
|
-
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
|
|
40
|
-
return i.jsx(
|
|
41
|
+
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
|
|
42
|
+
return /* @__PURE__ */ i.jsx(
|
|
43
|
+
p,
|
|
44
|
+
{
|
|
45
|
+
size: "small",
|
|
46
|
+
bordered: !0,
|
|
47
|
+
items: l,
|
|
48
|
+
column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 }
|
|
49
|
+
}
|
|
50
|
+
);
|
|
41
51
|
}
|
|
42
52
|
}
|
|
43
53
|
} : null, w = (o, n) => {
|