bitz-react-admin-ui 2.1.0 → 2.1.2
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 +14 -13
- 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/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.mjs +82 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -11
- 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 +52 -9
- package/dist/components/BitzTable/ToolBar/index.d.ts +2 -2
- package/dist/components/BitzTable/index.d.ts +2 -2
- package/dist/components/BitzTable/index.mjs +2 -2
- 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/style.css +1 -1
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { j as o } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import "../../../../../assets/iconfont/IconMore.mjs";
|
|
3
3
|
import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
4
|
+
import H from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
5
|
+
import C from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
6
|
+
import S from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
7
|
+
import k from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
8
|
+
import w from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
9
|
+
import T from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
10
|
+
import R from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
11
|
+
import B from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
12
|
+
import G from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
13
|
+
import F from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
14
|
+
import N from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
15
15
|
import "../../../../../assets/iconfont/IconZhongzhi.mjs";
|
|
16
16
|
import "../../../../../assets/iconfont/IconGaojisousuo.mjs";
|
|
17
17
|
import "../../../../../assets/iconfont/IconSousuo.mjs";
|
|
@@ -28,88 +28,145 @@ import "../../../../../assets/iconfont/IconFabu.mjs";
|
|
|
28
28
|
import "../../../../../assets/iconfont/IconShanchu1.mjs";
|
|
29
29
|
import "../../../../../assets/iconfont/IconShanchu.mjs";
|
|
30
30
|
import "../../../../../assets/iconfont/IconTuodong.mjs";
|
|
31
|
-
import { BitzConfigContext as
|
|
32
|
-
import { BitzTableContext as
|
|
33
|
-
import
|
|
34
|
-
import { Form as t, Radio as
|
|
35
|
-
import
|
|
36
|
-
import { forwardRef as J, useMemo as K, useContext as
|
|
31
|
+
import { BitzConfigContext as W } from "../../../../BitzConfigProvider/context.mjs";
|
|
32
|
+
import { BitzTableContext as E } from "../../../Store/index.mjs";
|
|
33
|
+
import $ from "../../../../BitzTheme/index.mjs";
|
|
34
|
+
import { Form as t, Radio as d, Checkbox as A } from "antd";
|
|
35
|
+
import D from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
36
|
+
import { forwardRef as J, useMemo as K, useContext as u, useEffect as L, useImperativeHandle as M, memo as V } from "react";
|
|
37
37
|
import { BitzToolBarContext as Y } from "../../Wrapper/context.mjs";
|
|
38
38
|
import l from "./RadioCard.mjs";
|
|
39
39
|
const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
|
|
40
40
|
...e,
|
|
41
41
|
label: `${e.label}(默认)`
|
|
42
|
-
} : e), q = J(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
} : e), q = J(
|
|
43
|
+
({ display: s }, m) => {
|
|
44
|
+
var x, b, f;
|
|
45
|
+
const { token: e } = $.useToken(), j = K(() => ({
|
|
46
|
+
width: "100%",
|
|
47
|
+
...{ display: s ? "flex" : "none" }
|
|
48
|
+
}), [s]), z = {
|
|
49
|
+
size: 26,
|
|
50
|
+
color: e.colorPrimary
|
|
51
|
+
}, [c] = t.useForm(), g = (x = u(W).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: P, stylesConfig: I } = u(E), r = (b = u(Y).config) == null ? void 0 : b.stylesConfig, p = (i, n) => {
|
|
52
|
+
var y, h;
|
|
53
|
+
let a = n;
|
|
54
|
+
return (y = r == null ? void 0 : r[i]) != null && y.disabled && (a = D(n, "disabledControl")), {
|
|
55
|
+
disabled: (h = r == null ? void 0 : r[i]) == null ? void 0 : h.disabled,
|
|
56
|
+
className: a
|
|
57
|
+
};
|
|
56
58
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
L(() => {
|
|
60
|
+
c.setFieldsValue({
|
|
61
|
+
...I,
|
|
62
|
+
stylesScope: g === "global"
|
|
63
|
+
});
|
|
64
|
+
}, []);
|
|
65
|
+
const v = Z({
|
|
66
|
+
defaultSize: P,
|
|
67
|
+
items: [
|
|
68
|
+
{
|
|
69
|
+
key: "xs",
|
|
70
|
+
label: "特紧凑",
|
|
71
|
+
icon: w
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "sm",
|
|
75
|
+
label: "紧凑",
|
|
76
|
+
icon: S
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: "md",
|
|
80
|
+
label: "中等",
|
|
81
|
+
icon: k
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: "lg",
|
|
85
|
+
label: "宽松",
|
|
86
|
+
icon: H
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "xl",
|
|
90
|
+
label: "特宽松",
|
|
91
|
+
icon: C
|
|
92
|
+
}
|
|
93
|
+
]
|
|
62
94
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
95
|
+
return M(m, () => ({
|
|
96
|
+
getFormInstance: () => c
|
|
97
|
+
})), /* @__PURE__ */ o.jsxs(
|
|
98
|
+
t,
|
|
67
99
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
100
|
+
form: c,
|
|
101
|
+
style: j,
|
|
102
|
+
labelCol: { span: 3 },
|
|
103
|
+
labelAlign: "left",
|
|
104
|
+
colon: !1,
|
|
105
|
+
className: "stylesConfigFormContent",
|
|
106
|
+
layout: "inline",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "行高", name: "size", children: /* @__PURE__ */ o.jsx(d.Group, { ...p("size", "sizeRadioGroup"), children: v.map(({ key: i, label: n, icon: a }) => /* @__PURE__ */ o.jsx(l, { label: n, value: i, children: /* @__PURE__ */ o.jsx(a, { ...z }) }, i)) }) }),
|
|
109
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("bordered", "splitBorderRadioGroup"), children: [
|
|
110
|
+
/* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
|
|
111
|
+
/* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
|
|
112
|
+
B,
|
|
113
|
+
{
|
|
114
|
+
size: 26,
|
|
115
|
+
color: [
|
|
116
|
+
e.colorPrimaryHover,
|
|
117
|
+
e.colorPrimary,
|
|
118
|
+
e.colorPrimary,
|
|
119
|
+
e.colorPrimaryHover
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
) }),
|
|
123
|
+
/* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
|
|
124
|
+
G,
|
|
125
|
+
{
|
|
126
|
+
size: 26,
|
|
127
|
+
color: [
|
|
128
|
+
e.colorPrimaryHover,
|
|
129
|
+
e.colorPrimary,
|
|
130
|
+
e.colorPrimary,
|
|
131
|
+
e.colorPrimaryHover
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
) }),
|
|
135
|
+
/* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
|
|
136
|
+
R,
|
|
137
|
+
{
|
|
138
|
+
size: 26,
|
|
139
|
+
color: [
|
|
140
|
+
e.colorPrimaryHover,
|
|
141
|
+
e.colorPrimary,
|
|
142
|
+
e.colorPrimary,
|
|
143
|
+
e.colorPrimaryHover
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
) })
|
|
147
|
+
] }) }),
|
|
148
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("zebra", "zebraRadioGroup"), children: [
|
|
149
|
+
/* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
|
|
150
|
+
F,
|
|
151
|
+
{
|
|
152
|
+
size: 26,
|
|
153
|
+
color: [e.colorPrimaryHover, e.colorPrimary]
|
|
154
|
+
}
|
|
155
|
+
) }),
|
|
156
|
+
/* @__PURE__ */ o.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ o.jsx(
|
|
157
|
+
N,
|
|
158
|
+
{
|
|
159
|
+
size: 26,
|
|
160
|
+
color: e.colorPrimaryHover
|
|
161
|
+
}
|
|
162
|
+
) })
|
|
163
|
+
] }) }),
|
|
164
|
+
/* @__PURE__ */ o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: /* @__PURE__ */ o.jsx(A, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })
|
|
165
|
+
]
|
|
91
166
|
}
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
getFormInstance: () => c
|
|
96
|
-
})), o.jsxs(t, { form: c, style: j, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", layout: "inline", children: [o.jsx(t.Item, { label: "行高", name: "size", children: o.jsx(p.Group, { ...u("size", "sizeRadioGroup"), children: I.map(({ key: i, label: n, icon: a }) => o.jsx(l, { label: n, value: i, children: o.jsx(a, { ...z }) }, i)) }) }), o.jsx(t.Item, { label: "分割线", name: "bordered", children: o.jsxs(p.Group, { ...u("bordered", "splitBorderRadioGroup"), children: [o.jsx(l, { label: "无分割线", value: "hide", children: o.jsx(k, { size: 26, color: e.colorPrimaryHover }) }), o.jsx(l, { label: "行分割线", value: "row", children: o.jsx(w, { size: 26, color: [
|
|
97
|
-
e.colorPrimaryHover,
|
|
98
|
-
e.colorPrimary,
|
|
99
|
-
e.colorPrimary,
|
|
100
|
-
e.colorPrimaryHover
|
|
101
|
-
] }) }), o.jsx(l, { label: "列分割线", value: "column", children: o.jsx(T, { size: 26, color: [
|
|
102
|
-
e.colorPrimaryHover,
|
|
103
|
-
e.colorPrimary,
|
|
104
|
-
e.colorPrimary,
|
|
105
|
-
e.colorPrimaryHover
|
|
106
|
-
] }) }), o.jsx(l, { label: "行列分割线", value: "row-column", children: o.jsx(F, { size: 26, color: [
|
|
107
|
-
e.colorPrimaryHover,
|
|
108
|
-
e.colorPrimary,
|
|
109
|
-
e.colorPrimary,
|
|
110
|
-
e.colorPrimaryHover
|
|
111
|
-
] }) })] }) }), o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: o.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [o.jsx(l, { label: "有斑马纹", value: !0, children: o.jsx(R, { size: 26, color: [e.colorPrimaryHover, e.colorPrimary] }) }), o.jsx(l, { label: "无斑马纹", value: !1, children: o.jsx(G, { size: 26, color: e.colorPrimaryHover }) })] }) }), o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: o.jsx(D, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })] });
|
|
112
|
-
}), Ro = V(q);
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
), Fo = V(q);
|
|
113
170
|
export {
|
|
114
|
-
|
|
171
|
+
Fo as default
|
|
115
172
|
};
|
|
@@ -4,19 +4,40 @@ import { Tooltip as b } from "antd";
|
|
|
4
4
|
import { show as E } from "@ebay/nice-modal-react";
|
|
5
5
|
import B from "./ColumnConfigModal.mjs";
|
|
6
6
|
import p from "../style.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { BitzTableContext as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
const { order: a, show: u = !0, icon: f = e.jsx(
|
|
12
|
-
return j(() => (document == null || document.addEventListener("fullscreenchange", (
|
|
7
|
+
import v from "../../../BitzButton/index.mjs";
|
|
8
|
+
import { BitzTableContext as y } from "../../Store/index.mjs";
|
|
9
|
+
import z from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
|
|
10
|
+
const N = (n) => {
|
|
11
|
+
const { order: a, show: u = !0, icon: f = /* @__PURE__ */ e.jsx(z, {}) } = n, o = "表格设置", { toolbarItemClassName: d } = p(), { uuid: l } = g(y), [i, r] = x(!1), C = h(() => i ? !1 : void 0, [i]);
|
|
12
|
+
return j(() => (document == null || document.addEventListener("fullscreenchange", (s) => {
|
|
13
13
|
var t, m, c;
|
|
14
|
-
(t =
|
|
14
|
+
(t = s.target) != null && t.classList.contains("bitzTableBlock") && (r(!!document.fullscreenElement), (c = (m = document.fullscreenElement) == null ? void 0 : m.classList) != null && c.contains("bitzTableBlock") || r(!1));
|
|
15
15
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
16
|
-
})), []), u ? e.jsxs(e.Fragment, { children: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
})), []), u ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ e.jsx(
|
|
18
|
+
B,
|
|
19
|
+
{
|
|
20
|
+
id: `ColumnConfigModal-${l}`,
|
|
21
|
+
title: o,
|
|
22
|
+
onChange: async (s) => {
|
|
23
|
+
var t;
|
|
24
|
+
return (t = n.onChange) == null ? void 0 : t.call(n, s);
|
|
25
|
+
},
|
|
26
|
+
getContainer: C
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ e.jsx(b, { title: o, open: !1, children: /* @__PURE__ */ e.jsx(
|
|
30
|
+
v,
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
className: d,
|
|
34
|
+
onClick: () => E(`ColumnConfigModal-${l}`),
|
|
35
|
+
icon: f,
|
|
36
|
+
style: { order: a },
|
|
37
|
+
children: o
|
|
38
|
+
}
|
|
39
|
+
) })
|
|
40
|
+
] }) : null;
|
|
20
41
|
};
|
|
21
42
|
export {
|
|
22
43
|
N as default
|
|
@@ -1,18 +1,45 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
2
|
+
import { memo as u, useMemo as x } from "react";
|
|
3
3
|
import c from "../style.mjs";
|
|
4
4
|
import f from "../../../BitzButton/index.mjs";
|
|
5
5
|
import d from "../../../BitzConvert/index.mjs";
|
|
6
6
|
import j from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
7
|
-
const
|
|
7
|
+
const y = ({
|
|
8
|
+
show: r = !0,
|
|
9
|
+
order: s,
|
|
10
|
+
loading: m,
|
|
11
|
+
onClick: t,
|
|
12
|
+
icon: n = /* @__PURE__ */ e.jsx(j, {}),
|
|
13
|
+
menu: o,
|
|
14
|
+
tipText: i
|
|
15
|
+
}) => {
|
|
8
16
|
const { toolbarItemClassName: l } = c(), p = x(() => o || {
|
|
9
17
|
items: [
|
|
10
18
|
{ key: "excel", label: "导出查询结果为Excel" }
|
|
11
19
|
],
|
|
12
|
-
onClick: ({ key:
|
|
20
|
+
onClick: ({ key: a }) => t == null ? void 0 : t(a)
|
|
13
21
|
}, [o, t]);
|
|
14
|
-
return r ?
|
|
15
|
-
|
|
22
|
+
return r ? /* @__PURE__ */ e.jsx(
|
|
23
|
+
d.DropdownToButton,
|
|
24
|
+
{
|
|
25
|
+
menu: p,
|
|
26
|
+
trigger: ["click"],
|
|
27
|
+
showTootip: !1,
|
|
28
|
+
tipText: i || "导出",
|
|
29
|
+
children: /* @__PURE__ */ e.jsx(
|
|
30
|
+
f,
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
className: l,
|
|
34
|
+
disabled: m,
|
|
35
|
+
icon: n,
|
|
36
|
+
style: { order: s },
|
|
37
|
+
children: "下载"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
) : null;
|
|
42
|
+
}, g = u(y);
|
|
16
43
|
export {
|
|
17
|
-
|
|
44
|
+
g as default
|
|
18
45
|
};
|
|
@@ -8,13 +8,16 @@ import j from "../../../BitzToast/index.mjs";
|
|
|
8
8
|
import { findParentFirstNodeByClass as h } from "../../../../utils/findNode.mjs";
|
|
9
9
|
import z from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
10
10
|
import T from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
11
|
-
const g = ({
|
|
11
|
+
const g = ({
|
|
12
|
+
order: m,
|
|
13
|
+
show: u = !0
|
|
14
|
+
}) => {
|
|
12
15
|
const { toolbarItemClassName: a } = B(), [l, s] = p(!1), n = x(() => l ? {
|
|
13
16
|
title: "退出全屏",
|
|
14
|
-
icon: t.jsx(z, {})
|
|
17
|
+
icon: /* @__PURE__ */ t.jsx(z, {})
|
|
15
18
|
} : {
|
|
16
19
|
title: "全屏",
|
|
17
|
-
icon: t.jsx(T, {})
|
|
20
|
+
icon: /* @__PURE__ */ t.jsx(T, {})
|
|
18
21
|
}, [l]);
|
|
19
22
|
b(() => (document == null || document.addEventListener("fullscreenchange", (o) => {
|
|
20
23
|
var e, i, c;
|
|
@@ -26,7 +29,17 @@ const g = ({ order: m, show: u = !0 }) => {
|
|
|
26
29
|
const e = h(o.target, "bitzTableBlock");
|
|
27
30
|
l ? r.exit() : r.request(e);
|
|
28
31
|
};
|
|
29
|
-
return u ? t.jsx(E, { title: n.title, open: !1, children: t.jsx(
|
|
32
|
+
return u ? /* @__PURE__ */ t.jsx(E, { title: n.title, open: !1, children: /* @__PURE__ */ t.jsx(
|
|
33
|
+
F,
|
|
34
|
+
{
|
|
35
|
+
type: "text",
|
|
36
|
+
className: a,
|
|
37
|
+
onClick: f,
|
|
38
|
+
icon: n.icon,
|
|
39
|
+
style: { order: m },
|
|
40
|
+
children: n.title
|
|
41
|
+
}
|
|
42
|
+
) }) : null;
|
|
30
43
|
}, G = d(g);
|
|
31
44
|
export {
|
|
32
45
|
G as default
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { memo as i } from "react";
|
|
3
|
+
import { Tooltip as a } from "antd";
|
|
4
|
+
import c from "../style.mjs";
|
|
5
|
+
import p from "../../../BitzButton/index.mjs";
|
|
6
|
+
import f from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs";
|
|
7
|
+
const d = (t) => {
|
|
8
|
+
const {
|
|
9
|
+
loading: e,
|
|
10
|
+
onClick: r,
|
|
11
|
+
order: s,
|
|
12
|
+
show: l = !0,
|
|
13
|
+
icon: m = /* @__PURE__ */ o.jsx(f, {})
|
|
14
|
+
} = t, { toolbarItemClassName: n } = c();
|
|
15
|
+
return l ? /* @__PURE__ */ o.jsx(a, { title: "刷新", open: !1, children: /* @__PURE__ */ o.jsx(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
type: "text",
|
|
19
|
+
className: n,
|
|
20
|
+
disabled: e,
|
|
21
|
+
onClick: r,
|
|
22
|
+
icon: m,
|
|
23
|
+
style: { order: s },
|
|
24
|
+
children: "刷新"
|
|
25
|
+
}
|
|
26
|
+
) }) : null;
|
|
27
|
+
}, I = i(d);
|
|
11
28
|
export {
|
|
12
|
-
|
|
29
|
+
I as default
|
|
13
30
|
};
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import { j as s } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as w, useMemo as
|
|
3
|
-
import { Space as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { useContext as w, useMemo as h } from "react";
|
|
3
|
+
import { Space as u } from "antd";
|
|
4
|
+
import x from "../RefreshIcon/index.mjs";
|
|
5
|
+
import g from "../ColConfigIcon/index.mjs";
|
|
6
6
|
import C from "../FullscreenIcon/index.mjs";
|
|
7
7
|
import j from "../ExportIcon/index.mjs";
|
|
8
8
|
import { BitzConfigContext as B } from "../../../BitzConfigProvider/context.mjs";
|
|
9
9
|
import { BitzToolBarContext as z } from "./context.mjs";
|
|
10
|
-
const E = ["export", "refresh", "fullscreen", "config"], q = ({
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const E = ["export", "refresh", "fullscreen", "config"], q = ({
|
|
11
|
+
size: I,
|
|
12
|
+
tools: l,
|
|
13
|
+
toolsConfig: m,
|
|
14
|
+
exclude: t,
|
|
15
|
+
loading: i,
|
|
16
|
+
onExport: c,
|
|
17
|
+
onRefresh: p,
|
|
18
|
+
onColumnChange: d
|
|
19
|
+
}) => {
|
|
20
|
+
const { Table: r } = w(B), f = h(() => {
|
|
21
|
+
const e = l || (r == null ? void 0 : r.toolbar) || E;
|
|
13
22
|
return t != null && t.length ? e.filter((n) => !t.includes(n)) : e;
|
|
14
|
-
}, [r == null ? void 0 : r.toolbar, t]), o =
|
|
23
|
+
}, [r == null ? void 0 : r.toolbar, t]), o = h(() => {
|
|
15
24
|
const e = {
|
|
16
25
|
export: { order: 1, show: !1 },
|
|
17
26
|
refresh: { order: 2, show: !1 },
|
|
@@ -22,7 +31,41 @@ const E = ["export", "refresh", "fullscreen", "config"], q = ({ size: I, tools:
|
|
|
22
31
|
e[n].order = a + 1, e[n].show = f.includes(n);
|
|
23
32
|
}), e;
|
|
24
33
|
}, [f]);
|
|
25
|
-
return s.jsx(z.Provider, { value: m ?? {}, children: s.jsxs(
|
|
34
|
+
return /* @__PURE__ */ s.jsx(z.Provider, { value: m ?? {}, children: /* @__PURE__ */ s.jsxs(u.Compact, { style: { height: "100%" }, children: [
|
|
35
|
+
/* @__PURE__ */ s.jsx(
|
|
36
|
+
j,
|
|
37
|
+
{
|
|
38
|
+
order: o.export.order,
|
|
39
|
+
show: o.export.show,
|
|
40
|
+
loading: i,
|
|
41
|
+
onClick: c
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ s.jsx(
|
|
45
|
+
x,
|
|
46
|
+
{
|
|
47
|
+
order: o.refresh.order,
|
|
48
|
+
show: o.refresh.show,
|
|
49
|
+
loading: i,
|
|
50
|
+
onClick: p
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ s.jsx(
|
|
54
|
+
C,
|
|
55
|
+
{
|
|
56
|
+
order: o.fullscreen.order,
|
|
57
|
+
show: o.fullscreen.show
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ s.jsx(
|
|
61
|
+
g,
|
|
62
|
+
{
|
|
63
|
+
order: o.config.order,
|
|
64
|
+
show: o.config.show,
|
|
65
|
+
onChange: d
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] }) });
|
|
26
69
|
};
|
|
27
70
|
export {
|
|
28
71
|
q as default
|
|
@@ -56,5 +56,5 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableToolBarProps
|
|
|
56
56
|
FullscreenIcon: typeof FullscreenIcon;
|
|
57
57
|
ColConfigIcon: typeof ColConfigIcon;
|
|
58
58
|
};
|
|
59
|
-
declare const
|
|
60
|
-
export default
|
|
59
|
+
declare const Toolbar: CompoundedComponent;
|
|
60
|
+
export default Toolbar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BitzTableProps } from './Table';
|
|
2
2
|
import BitzTableProvider, { BitzTableContext, DensitySize as BitzTableSizeType, StylesStateType, ColumnStateType } from './Store';
|
|
3
3
|
import ActionBar from './ActionBar';
|
|
4
|
-
import
|
|
4
|
+
import Toolbar from './ToolBar';
|
|
5
5
|
import ActionCol from './ActionCol';
|
|
6
6
|
import SelectionBar from './SelectionBar';
|
|
7
7
|
import { ReactNode, Ref } from 'react';
|
|
@@ -61,7 +61,7 @@ interface BitzTableColumnGroupType<RecordType> extends Omit<BitzTableColumnType<
|
|
|
61
61
|
type BitzTableColumnsType<RecordType> = (BitzTableColumnType<RecordType> | BitzTableColumnGroupType<RecordType>)[];
|
|
62
62
|
type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableProps> & {
|
|
63
63
|
ActionBar: typeof ActionBar;
|
|
64
|
-
ToolBar: typeof
|
|
64
|
+
ToolBar: typeof Toolbar;
|
|
65
65
|
SelectionBar: typeof SelectionBar;
|
|
66
66
|
ActionCol: typeof ActionCol;
|
|
67
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "./Table/index.mjs";
|
|
2
|
-
import { BitzTableContext as
|
|
2
|
+
import { BitzTableContext as T, default as b } from "./Store/index.mjs";
|
|
3
3
|
import r from "./ActionBar/index.mjs";
|
|
4
4
|
import i from "./ToolBar/index.mjs";
|
|
5
5
|
import e from "./ActionCol/index.mjs";
|
|
@@ -11,7 +11,7 @@ o.ToolBar = i;
|
|
|
11
11
|
o.SelectionBar = a;
|
|
12
12
|
o.ActionCol = e;
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
T as BitzTableContext,
|
|
15
15
|
b as BitzTableProvider,
|
|
16
16
|
o as default
|
|
17
17
|
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/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
|
};
|