bitz-react-admin-ui 2.10.7-beta.2 → 2.10.7-beta.4
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 +5 -18
- package/dist/assets/iconfont/IconClose.mjs +5 -18
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +5 -18
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +5 -18
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +5 -18
- package/dist/assets/iconfont/IconCuowu.mjs +5 -18
- package/dist/assets/iconfont/IconDragOrder.mjs +5 -18
- package/dist/assets/iconfont/IconDuigoux.mjs +5 -18
- package/dist/assets/iconfont/IconFabu.mjs +8 -27
- package/dist/assets/iconfont/IconFanhui.mjs +5 -18
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -18
- package/dist/assets/iconfont/IconHangfengexian.mjs +9 -35
- package/dist/assets/iconfont/IconHangliefengexian.mjs +9 -35
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -18
- package/dist/assets/iconfont/IconIcon21.mjs +5 -18
- package/dist/assets/iconfont/IconJincoude.mjs +5 -18
- package/dist/assets/iconfont/IconJinggao.mjs +5 -18
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -18
- package/dist/assets/iconfont/IconLiefengexian.mjs +9 -35
- package/dist/assets/iconfont/IconMore.mjs +9 -34
- package/dist/assets/iconfont/IconShanchu.mjs +5 -18
- package/dist/assets/iconfont/IconShanchu1.mjs +8 -27
- package/dist/assets/iconfont/IconSousuo.mjs +5 -18
- package/dist/assets/iconfont/IconTejincou.mjs +5 -18
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -18
- package/dist/assets/iconfont/IconTishi1.mjs +5 -18
- package/dist/assets/iconfont/IconTuodong.mjs +5 -18
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +8 -29
- package/dist/assets/iconfont/IconWufengexian.mjs +5 -19
- package/dist/assets/iconfont/IconXinxitishi.mjs +5 -18
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +8 -28
- package/dist/assets/iconfont/IconZhongdengde.mjs +5 -18
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -18
- package/dist/assets/iconfont/index.mjs +4 -1
- package/dist/components/BitzAddTag/index.mjs +17 -38
- package/dist/components/BitzAddressBook/index.mjs +33 -81
- package/dist/components/BitzAppRefresh/index.mjs +11 -17
- package/dist/components/BitzBetterScroll/index.mjs +13 -1
- package/dist/components/BitzButton/index.mjs +33 -25
- package/dist/components/BitzCalendar/index.mjs +42 -60
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +25 -47
- package/dist/components/BitzCascader/index.mjs +5 -1
- package/dist/components/BitzCollapse/index.mjs +5 -2
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfirmModal/index.mjs +22 -25
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +14 -18
- package/dist/components/BitzEmpty/index.mjs +5 -1
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +14 -2
- package/dist/components/BitzFluentDatePicker/index.mjs +4 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +4 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +4 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +4 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +15 -15
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +4 -2
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +13 -24
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +10 -14
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +25 -46
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -17
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +19 -20
- package/dist/components/BitzFuiCalendar/index.mjs +3 -1
- package/dist/components/BitzFullScreen/index.mjs +40 -17
- package/dist/components/BitzHighlight/Child.mjs +12 -9
- package/dist/components/BitzHighlight/Highlight.mjs +10 -8
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +25 -22
- package/dist/components/BitzImage/index.mjs +5 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +29 -20
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +1 -15
- package/dist/components/BitzList/LoadMore.mjs +23 -22
- package/dist/components/BitzLoadMore/index.mjs +7 -13
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +12 -10
- package/dist/components/BitzMeetingTime/index.mjs +15 -4
- package/dist/components/BitzMobileLoading/index.mjs +3 -1
- package/dist/components/BitzModal/index.mjs +13 -20
- package/dist/components/BitzNoData/index.mjs +8 -1
- package/dist/components/BitzNoMore/index.mjs +4 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +32 -30
- package/dist/components/BitzPageContainer/index.mjs +21 -42
- package/dist/components/BitzPageHeader/index.mjs +14 -48
- package/dist/components/BitzPagination/index.mjs +9 -38
- package/dist/components/BitzPopover/index.mjs +8 -2
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +43 -45
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +23 -20
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +7 -1
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +3 -1
- package/dist/components/BitzQueryFilter/index.mjs +7 -39
- package/dist/components/BitzRefresh/index.mjs +13 -4
- package/dist/components/BitzRemark/index.mjs +6 -1
- package/dist/components/BitzSearch/index.mjs +12 -2
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +49 -99
- package/dist/components/BitzSelect/index.mjs +10 -2
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzTabbar/BitzTabbar.mjs +7 -13
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +15 -3
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +41 -86
- package/dist/components/BitzTable/ActionBar/Button.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +62 -67
- package/dist/components/BitzTable/ActionCol/index.mjs +65 -166
- package/dist/components/BitzTable/ActionCol/style.mjs +74 -88
- package/dist/components/BitzTable/Dropdown/index.mjs +15 -11
- package/dist/components/BitzTable/Dropdown/style.mjs +66 -70
- package/dist/components/BitzTable/SelectionBar/Button.mjs +22 -16
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +15 -13
- package/dist/components/BitzTable/SelectionBar/style.mjs +79 -96
- package/dist/components/BitzTable/Store/index.mjs +126 -152
- package/dist/components/BitzTable/Store/utils/index.mjs +11 -2
- package/dist/components/BitzTable/SubTable/index.mjs +63 -68
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +27 -37
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -19
- package/dist/components/BitzTable/Table/SortableRow.mjs +32 -34
- package/dist/components/BitzTable/Table/TdCell.mjs +14 -12
- package/dist/components/BitzTable/Table/index.mjs +418 -532
- package/dist/components/BitzTable/Table/useScrollConfig.mjs +18 -10
- package/dist/components/BitzTable/Table/utils.mjs +20 -21
- package/dist/components/BitzTable/TextOverflow/index.mjs +15 -14
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +0 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +120 -119
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +114 -120
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +26 -37
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +340 -342
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +23 -33
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -30
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +168 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +12 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +29 -17
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +233 -170
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +51 -54
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +53 -53
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -33
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +52 -39
- package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -38
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +34 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +32 -44
- package/dist/components/BitzTable/ToolBar/style.mjs +59 -58
- package/dist/components/BitzTableOperations/index.mjs +8 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +4 -23
- package/dist/components/BitzTableSelect/Select/index.mjs +2 -48
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +16 -22
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +72 -156
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +1 -43
- package/dist/components/BitzTableSelect/TableCell/index.mjs +24 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +10 -18
- package/dist/components/BitzTableSelect/index.mjs +5 -39
- package/dist/components/BitzTag/index.mjs +10 -2
- package/dist/components/BitzText/index.mjs +37 -42
- package/dist/components/BitzTheme/index.mjs +5 -1
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +32 -38
- package/dist/components/BitzTimer/Timer.mjs +8 -23
- package/dist/components/BitzTimer/index.mjs +36 -35
- package/dist/components/BitzToast/Toast/index.mjs +24 -12
- package/dist/components/BitzToast/index.mjs +7 -1
- package/dist/components/BitzTooltip/index.mjs +35 -45
- package/dist/components/BitzTooltip/style.mjs +41 -38
- package/dist/components/BitzUeEditor/config.mjs +183 -185
- package/dist/components/BitzUeEditor/index.mjs +10 -2
- package/dist/components/BitzUpload/index.mjs +56 -67
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -18
- package/dist/components/BitzWebAppModal/index.mjs +6 -1
- package/dist/hooks/use-event-listener.mjs +4 -5
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +4 -4
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +6 -1
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +10 -10
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +13 -9
- package/dist/utils/create.mjs +1 -7
- package/dist/utils/get-default-props.mjs +3 -1
- package/dist/utils/time.mjs +8 -8
- package/package.json +5 -5
- package/dist/_virtual/dayjs.min.mjs +0 -4
- package/dist/components/BitzTable/Select/index.d.ts +0 -3
- package/dist/components/BitzTable/Select/style.d.ts +0 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +0 -11
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +0 -3
- package/dist/node_modules/dayjs/dayjs.min.mjs +0 -297
|
@@ -1,36 +1,60 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { BitzConfigContext as
|
|
14
|
-
import { BitzTableContext as
|
|
2
|
+
import W from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
3
|
+
import E from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
4
|
+
import A from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
5
|
+
import J from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
6
|
+
import _ from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
7
|
+
import M from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
8
|
+
import O from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
9
|
+
import Q from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
10
|
+
import Z from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
11
|
+
import D from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
12
|
+
import K from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
13
|
+
import { BitzConfigContext as L } from "../../../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import { BitzTableContext as V } from "../../../Store/index.mjs";
|
|
15
15
|
import Y from "../../../../BitzTheme/index.mjs";
|
|
16
|
-
import { RedoOutlined as
|
|
17
|
-
import { Form as
|
|
18
|
-
import
|
|
19
|
-
import { forwardRef as
|
|
20
|
-
import { BitzToolBarContext as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
import { RedoOutlined as q } from "@ant-design/icons";
|
|
17
|
+
import { Form as n, Radio as u, Row as $, Col as S, Button as U } from "antd";
|
|
18
|
+
import X from "../../../../../node_modules/classnames/index.mjs";
|
|
19
|
+
import { forwardRef as ee, useRef as w, useEffect as j, useMemo as oe, useContext as b, useImperativeHandle as re, useState as le, memo as ie } from "react";
|
|
20
|
+
import { BitzToolBarContext as se } from "../../Wrapper/context.mjs";
|
|
21
|
+
import l from "./RadioCard.mjs";
|
|
22
|
+
import ne from "./ScopeSwitch.mjs";
|
|
23
|
+
import { useLingui as C } from "@lingui/react";
|
|
24
|
+
const te = ({
|
|
25
|
+
defaultSize: s,
|
|
26
|
+
items: f
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
_: x
|
|
30
|
+
} = C();
|
|
31
|
+
return f.map((o) => o.key === s ? {
|
|
32
|
+
...o,
|
|
33
|
+
label: x(
|
|
34
|
+
/*i18n*/
|
|
35
|
+
{
|
|
36
|
+
id: "liwwaI",
|
|
37
|
+
values: {
|
|
38
|
+
0: o.label
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
} : o);
|
|
43
|
+
}, ae = ee(({
|
|
44
|
+
display: s,
|
|
45
|
+
postHeight: f
|
|
46
|
+
}, x) => {
|
|
47
|
+
var z, v;
|
|
48
|
+
const {
|
|
49
|
+
_: o
|
|
50
|
+
} = C(), {
|
|
51
|
+
token: r
|
|
52
|
+
} = Y.useToken(), y = w(null);
|
|
53
|
+
j(() => {
|
|
54
|
+
var i;
|
|
55
|
+
f((i = y.current) == null ? void 0 : i.clientHeight);
|
|
32
56
|
}, []);
|
|
33
|
-
const
|
|
57
|
+
const R = oe(() => ({
|
|
34
58
|
display: "flex",
|
|
35
59
|
width: s ? "100%" : 0,
|
|
36
60
|
pointerEvents: s ? "auto" : "none",
|
|
@@ -41,160 +65,199 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
41
65
|
left: 0,
|
|
42
66
|
right: 0
|
|
43
67
|
}
|
|
44
|
-
}), [s]),
|
|
68
|
+
}), [s]), H = {
|
|
45
69
|
size: 26,
|
|
46
|
-
color:
|
|
47
|
-
}, [a] =
|
|
48
|
-
|
|
70
|
+
color: r.colorPrimary
|
|
71
|
+
}, [a] = n.useForm(), k = (z = b(L).Table) == null ? void 0 : z.stylesScope, {
|
|
72
|
+
defaultTableSize: B,
|
|
73
|
+
stylesConfig: g,
|
|
74
|
+
defaultTableStylesConfig: p
|
|
75
|
+
} = b(V), t = (v = b(se).config) == null ? void 0 : v.stylesConfig, c = (i, m) => {
|
|
76
|
+
var P, I;
|
|
49
77
|
let d = m;
|
|
50
|
-
return (
|
|
51
|
-
disabled: (I = t == null ? void 0 : t[
|
|
78
|
+
return (P = t == null ? void 0 : t[i]) != null && P.disabled && (d = X(m, "disabledControl")), {
|
|
79
|
+
disabled: (I = t == null ? void 0 : t[i]) == null ? void 0 : I.disabled,
|
|
52
80
|
className: d
|
|
53
81
|
};
|
|
54
82
|
};
|
|
55
|
-
|
|
83
|
+
j(() => {
|
|
56
84
|
a.setFieldsValue({
|
|
57
|
-
...
|
|
58
|
-
...
|
|
59
|
-
stylesScope:
|
|
85
|
+
...p,
|
|
86
|
+
...g,
|
|
87
|
+
stylesScope: k === "global"
|
|
60
88
|
});
|
|
61
|
-
}, [
|
|
62
|
-
const
|
|
89
|
+
}, [g, p]);
|
|
90
|
+
const F = () => {
|
|
63
91
|
a.setFieldsValue({
|
|
64
|
-
...
|
|
92
|
+
...p,
|
|
65
93
|
stylesScope: !1
|
|
66
94
|
});
|
|
67
|
-
},
|
|
68
|
-
defaultSize:
|
|
69
|
-
items: [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
95
|
+
}, G = te({
|
|
96
|
+
defaultSize: B,
|
|
97
|
+
items: [{
|
|
98
|
+
key: "xs",
|
|
99
|
+
label: o(
|
|
100
|
+
/*i18n*/
|
|
101
|
+
{
|
|
102
|
+
id: "iZ4WSd"
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
icon: _
|
|
106
|
+
}, {
|
|
107
|
+
key: "sm",
|
|
108
|
+
label: o(
|
|
109
|
+
/*i18n*/
|
|
110
|
+
{
|
|
111
|
+
id: "W1ol+r"
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
icon: A
|
|
115
|
+
}, {
|
|
116
|
+
key: "md",
|
|
117
|
+
label: o(
|
|
118
|
+
/*i18n*/
|
|
119
|
+
{
|
|
120
|
+
id: "iuR5P4"
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
icon: J
|
|
124
|
+
}, {
|
|
125
|
+
key: "lg",
|
|
126
|
+
label: o(
|
|
127
|
+
/*i18n*/
|
|
128
|
+
{
|
|
129
|
+
id: "kKoOyf"
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
icon: W
|
|
133
|
+
}, {
|
|
134
|
+
key: "xl",
|
|
135
|
+
label: o(
|
|
136
|
+
/*i18n*/
|
|
137
|
+
{
|
|
138
|
+
id: "6QWPkM"
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
icon: E
|
|
142
|
+
}]
|
|
143
|
+
});
|
|
144
|
+
re(x, () => ({
|
|
145
|
+
getFormInstance: () => a
|
|
146
|
+
}));
|
|
147
|
+
const h = w(null), [N, T] = le("auto");
|
|
148
|
+
return j(() => {
|
|
149
|
+
h && T(h.current.clientWidth + 10);
|
|
150
|
+
}, []), /* @__PURE__ */ e.jsx("div", { style: R, ref: y, children: /* @__PURE__ */ e.jsxs(n, { form: a, style: {
|
|
151
|
+
width: "100%"
|
|
152
|
+
}, labelCol: {
|
|
153
|
+
span: 3
|
|
154
|
+
}, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [
|
|
155
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: o(
|
|
156
|
+
/*i18n*/
|
|
75
157
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
158
|
+
id: "a4wCNJ"
|
|
159
|
+
}
|
|
160
|
+
), name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: G.map(({
|
|
161
|
+
key: i,
|
|
162
|
+
label: m,
|
|
163
|
+
icon: d
|
|
164
|
+
}) => /* @__PURE__ */ e.jsx(l, { label: m, value: i, children: /* @__PURE__ */ e.jsx(d, { ...H }) }, i)) }) }),
|
|
165
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: o(
|
|
166
|
+
/*i18n*/
|
|
80
167
|
{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
168
|
+
id: "/w3zDE"
|
|
169
|
+
}
|
|
170
|
+
), name: "bordered", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("bordered", "splitBorderRadioGroup"), children: [
|
|
171
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
172
|
+
/*i18n*/
|
|
173
|
+
{
|
|
174
|
+
id: "EseB3J"
|
|
175
|
+
}
|
|
176
|
+
), value: "hide", children: /* @__PURE__ */ e.jsx(M, { size: 26, color: r.colorPrimaryHover }) }),
|
|
177
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
178
|
+
/*i18n*/
|
|
179
|
+
{
|
|
180
|
+
id: "nnvA12"
|
|
181
|
+
}
|
|
182
|
+
), value: "row", children: /* @__PURE__ */ e.jsx(Q, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) }),
|
|
183
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
184
|
+
/*i18n*/
|
|
185
|
+
{
|
|
186
|
+
id: "iM6yAp"
|
|
187
|
+
}
|
|
188
|
+
), value: "column", children: /* @__PURE__ */ e.jsx(Z, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) }),
|
|
189
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
190
|
+
/*i18n*/
|
|
191
|
+
{
|
|
192
|
+
id: "PbzBaa"
|
|
193
|
+
}
|
|
194
|
+
), value: "row-column", children: /* @__PURE__ */ e.jsx(O, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) })
|
|
195
|
+
] }) }),
|
|
196
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: o(
|
|
197
|
+
/*i18n*/
|
|
85
198
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
199
|
+
id: "l5izxf"
|
|
200
|
+
}
|
|
201
|
+
), name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("zebra", "zebraRadioGroup"), children: [
|
|
202
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
203
|
+
/*i18n*/
|
|
204
|
+
{
|
|
205
|
+
id: "B0/8Pd"
|
|
206
|
+
}
|
|
207
|
+
), value: !0, children: /* @__PURE__ */ e.jsx(D, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary] }) }),
|
|
208
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
209
|
+
/*i18n*/
|
|
210
|
+
{
|
|
211
|
+
id: "lQCj9N"
|
|
212
|
+
}
|
|
213
|
+
), value: !1, children: /* @__PURE__ */ e.jsx(K, { size: 26, color: r.colorPrimaryHover }) })
|
|
214
|
+
] }) }),
|
|
215
|
+
/* @__PURE__ */ e.jsx(n.Item, { label: o(
|
|
216
|
+
/*i18n*/
|
|
90
217
|
{
|
|
91
|
-
|
|
92
|
-
label: "特宽松",
|
|
93
|
-
icon: N
|
|
218
|
+
id: "64GRJc"
|
|
94
219
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
color: [
|
|
137
|
-
o.colorPrimaryHover,
|
|
138
|
-
o.colorPrimary,
|
|
139
|
-
o.colorPrimary,
|
|
140
|
-
o.colorPrimaryHover
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
) }),
|
|
144
|
-
/* @__PURE__ */ e.jsx(r, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
|
|
145
|
-
$,
|
|
146
|
-
{
|
|
147
|
-
size: 26,
|
|
148
|
-
color: [
|
|
149
|
-
o.colorPrimaryHover,
|
|
150
|
-
o.colorPrimary,
|
|
151
|
-
o.colorPrimary,
|
|
152
|
-
o.colorPrimaryHover
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
) })
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
) }),
|
|
159
|
-
/* @__PURE__ */ e.jsx(i.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("zebra", "zebraRadioGroup"), children: [
|
|
160
|
-
/* @__PURE__ */ e.jsx(r, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
|
|
161
|
-
K,
|
|
162
|
-
{
|
|
163
|
-
size: 26,
|
|
164
|
-
color: [o.colorPrimaryHover, o.colorPrimary]
|
|
165
|
-
}
|
|
166
|
-
) }),
|
|
167
|
-
/* @__PURE__ */ e.jsx(r, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
|
|
168
|
-
L,
|
|
169
|
-
{
|
|
170
|
-
size: 26,
|
|
171
|
-
color: o.colorPrimaryHover
|
|
172
|
-
}
|
|
173
|
-
) })
|
|
174
|
-
] }) }),
|
|
175
|
-
/* @__PURE__ */ e.jsx(i.Item, { label: "分页设置", name: "pageSize", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("pageSize", "pageSizeGroup"), children: [
|
|
176
|
-
/* @__PURE__ */ e.jsx(r, { label: "10条", value: 10, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
177
|
-
/* @__PURE__ */ e.jsx(r, { label: "20条", value: 20, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
178
|
-
/* @__PURE__ */ e.jsx(r, { label: "50条", value: 50, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
179
|
-
/* @__PURE__ */ e.jsx(r, { label: "100条", value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
|
|
180
|
-
] }) }),
|
|
181
|
-
/* @__PURE__ */ e.jsxs(q, { gutter: 16, className: "scopeAndReset", children: [
|
|
182
|
-
/* @__PURE__ */ e.jsx(S, { ref: p, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(se, {}) }) }),
|
|
183
|
-
/* @__PURE__ */ e.jsx(S, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
|
|
184
|
-
Q,
|
|
185
|
-
{
|
|
186
|
-
type: "link",
|
|
187
|
-
icon: /* @__PURE__ */ e.jsx(Z, {}),
|
|
188
|
-
size: "small",
|
|
189
|
-
onClick: k,
|
|
190
|
-
children: "重置"
|
|
191
|
-
}
|
|
192
|
-
) })
|
|
193
|
-
] })
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
) });
|
|
197
|
-
}), Re = re(ne);
|
|
220
|
+
), name: "pageSize", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("pageSize", "pageSizeGroup"), children: [
|
|
221
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
222
|
+
/*i18n*/
|
|
223
|
+
{
|
|
224
|
+
id: "F/ysye"
|
|
225
|
+
}
|
|
226
|
+
), value: 10, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
227
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
228
|
+
/*i18n*/
|
|
229
|
+
{
|
|
230
|
+
id: "awEmig"
|
|
231
|
+
}
|
|
232
|
+
), value: 20, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
233
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
234
|
+
/*i18n*/
|
|
235
|
+
{
|
|
236
|
+
id: "NGYqZh"
|
|
237
|
+
}
|
|
238
|
+
), value: 50, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
|
|
239
|
+
/* @__PURE__ */ e.jsx(l, { label: o(
|
|
240
|
+
/*i18n*/
|
|
241
|
+
{
|
|
242
|
+
id: "RQryOB"
|
|
243
|
+
}
|
|
244
|
+
), value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
|
|
245
|
+
] }) }),
|
|
246
|
+
/* @__PURE__ */ e.jsxs($, { gutter: 16, className: "scopeAndReset", children: [
|
|
247
|
+
/* @__PURE__ */ e.jsx(S, { ref: h, style: {
|
|
248
|
+
width: N
|
|
249
|
+
}, className: "scope", children: /* @__PURE__ */ e.jsx(n.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(ne, {}) }) }),
|
|
250
|
+
/* @__PURE__ */ e.jsx(S, { style: {
|
|
251
|
+
alignSelf: "flex-end"
|
|
252
|
+
}, className: "reset", children: /* @__PURE__ */ e.jsx(U, { type: "link", icon: /* @__PURE__ */ e.jsx(q, {}), size: "small", onClick: F, children: o(
|
|
253
|
+
/*i18n*/
|
|
254
|
+
{
|
|
255
|
+
id: "3mjHNG"
|
|
256
|
+
}
|
|
257
|
+
) }) })
|
|
258
|
+
] })
|
|
259
|
+
] }) });
|
|
260
|
+
}), Fe = ie(ae);
|
|
198
261
|
export {
|
|
199
|
-
|
|
262
|
+
Fe as default
|
|
200
263
|
};
|
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { theme as z, Popconfirm as I, Statistic as
|
|
2
|
+
import { useRef as S, useContext as w, useState as b, useEffect as R, useMemo as k } from "react";
|
|
3
|
+
import { theme as z, Popconfirm as I, Statistic as N } from "antd";
|
|
4
4
|
import { SettingOutlined as B } from "@ant-design/icons";
|
|
5
|
-
import
|
|
5
|
+
import q from "./ColumnConfigModal.mjs";
|
|
6
6
|
import E from "../style.mjs";
|
|
7
7
|
import M from "../../../BitzButton/index.mjs";
|
|
8
8
|
import { BitzTableContext as O } from "../../Store/index.mjs";
|
|
9
9
|
import { css as T } from "../../../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import { useLingui as _ } from "@lingui/react";
|
|
11
|
+
const J = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
_: i
|
|
14
|
+
} = _(), a = i(
|
|
15
|
+
/*i18n*/
|
|
16
|
+
{
|
|
17
|
+
id: "8e00XN"
|
|
18
|
+
}
|
|
19
|
+
), {
|
|
20
|
+
order: u,
|
|
21
|
+
show: d = !0,
|
|
22
|
+
icon: p = /* @__PURE__ */ t.jsx(B, {})
|
|
23
|
+
} = e, {
|
|
24
|
+
token: x
|
|
25
|
+
} = z.useToken(), s = S(), {
|
|
26
|
+
fullscreen: l,
|
|
13
27
|
isSaving: n,
|
|
14
28
|
countdown: o,
|
|
15
|
-
cancelAutoSave:
|
|
16
|
-
immediateSave:
|
|
17
|
-
setCountdown:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
cancelAutoSave: C,
|
|
30
|
+
immediateSave: c,
|
|
31
|
+
setCountdown: g
|
|
32
|
+
} = w(O), {
|
|
33
|
+
toolbarItemClassName: h
|
|
34
|
+
} = E(), [j, m] = b(!1);
|
|
35
|
+
R(() => (n && o > 0 ? s.current = setInterval(() => {
|
|
36
|
+
g((r) => r - 1);
|
|
37
|
+
}, 1e3) : clearInterval(s.current), o === 0 && n && c(), () => clearInterval(s.current)), [n, o]);
|
|
38
|
+
const v = k(() => l ? !1 : void 0, [l]), y = T`
|
|
23
39
|
.ant-statistic {
|
|
24
40
|
display: inline-block;
|
|
25
41
|
}
|
|
26
42
|
.ant-statistic-content {
|
|
27
|
-
font-size: ${
|
|
43
|
+
font-size: ${x.fontSize}px;
|
|
28
44
|
}
|
|
29
45
|
.ant-statistic-content-value-int {
|
|
30
46
|
font-weight: 600;
|
|
@@ -43,48 +59,29 @@ const f = "表格设置", K = (e) => {
|
|
|
43
59
|
}
|
|
44
60
|
}
|
|
45
61
|
`;
|
|
46
|
-
return
|
|
47
|
-
/* @__PURE__ */ t.jsx(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var c;
|
|
54
|
-
return (c = e.onChange) == null ? void 0 : c.call(e, ...i);
|
|
55
|
-
},
|
|
56
|
-
getContainer: j,
|
|
57
|
-
close: () => l(!1)
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ t.jsx(
|
|
61
|
-
I,
|
|
62
|
+
return d ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ t.jsx(q, { open: j, title: a, onChange: async (...r) => {
|
|
64
|
+
var f;
|
|
65
|
+
return (f = e.onChange) == null ? void 0 : f.call(e, ...r);
|
|
66
|
+
}, getContainer: v, close: () => m(!1) }),
|
|
67
|
+
/* @__PURE__ */ t.jsx(I, { placement: "topRight", title: i(
|
|
68
|
+
/*i18n*/
|
|
62
69
|
{
|
|
63
|
-
|
|
64
|
-
title: "是否保存列宽设置",
|
|
65
|
-
open: n,
|
|
66
|
-
description: /* @__PURE__ */ t.jsxs("span", { children: [
|
|
67
|
-
/* @__PURE__ */ t.jsx(R, { value: o, suffix: "秒" }),
|
|
68
|
-
"后将自动保存"
|
|
69
|
-
] }),
|
|
70
|
-
onConfirm: a,
|
|
71
|
-
onCancel: x,
|
|
72
|
-
overlayClassName: v,
|
|
73
|
-
children: /* @__PURE__ */ t.jsx(
|
|
74
|
-
M,
|
|
75
|
-
{
|
|
76
|
-
type: "text",
|
|
77
|
-
className: g,
|
|
78
|
-
onClick: () => l(!0),
|
|
79
|
-
icon: d,
|
|
80
|
-
style: { order: m },
|
|
81
|
-
children: f
|
|
82
|
-
}
|
|
83
|
-
)
|
|
70
|
+
id: "2elRSm"
|
|
84
71
|
}
|
|
85
|
-
)
|
|
72
|
+
), open: n, description: /* @__PURE__ */ t.jsxs("span", { children: [
|
|
73
|
+
/* @__PURE__ */ t.jsx(N, { value: o, suffix: i(
|
|
74
|
+
/*i18n*/
|
|
75
|
+
{
|
|
76
|
+
id: "wqqZo1"
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
79
|
+
"后将自动保存"
|
|
80
|
+
] }), onConfirm: c, onCancel: C, overlayClassName: y, children: /* @__PURE__ */ t.jsx(M, { type: "text", className: h, onClick: () => m(!0), icon: p, style: {
|
|
81
|
+
order: u
|
|
82
|
+
}, children: a }) })
|
|
86
83
|
] }) : null;
|
|
87
84
|
};
|
|
88
85
|
export {
|
|
89
|
-
|
|
86
|
+
J as default
|
|
90
87
|
};
|