@teamix/pro 1.2.22 → 1.2.27
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/212.js +129 -129
- package/dist/pro.css +1 -1
- package/dist/pro.js +18718 -15882
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +2 -0
- package/es/actions/dialog.js +4 -3
- package/es/actions/index.d.ts +13 -9
- package/es/actions/index.js +63 -18
- package/es/actions/index.scss +12 -1
- package/es/form/Components/SelectTable/index.d.ts +24 -0
- package/es/form/Components/SelectTable/index.js +135 -0
- package/es/form/Components/SelectTable/index.scss +28 -0
- package/es/form/Components/SelectTable/table.d.ts +6 -0
- package/es/form/Components/SelectTable/table.js +64 -0
- package/es/form/Filter/AdvancedFilter.js +1 -1
- package/es/form/Filter/Layout.d.ts +5 -0
- package/es/form/Filter/Layout.js +82 -0
- package/es/form/Filter/SimpleFilter.js +30 -6
- package/es/form/Filter/index2.d.ts +2 -1
- package/es/form/Filter/index2.js +97 -116
- package/es/form/Filter/index2.scss +16 -45
- package/es/form/Filter/layout.scss +36 -0
- package/es/form/Filter/useSpecialProps.d.ts +6 -0
- package/es/form/Filter/useSpecialProps.js +37 -0
- package/es/form/ProForm/customComponent.d.ts +3 -0
- package/es/form/ProForm/customComponent.js +20 -0
- package/es/form/ProForm/index.scss +5 -6
- package/es/form/ProForm/useFormDisplayValues.js +14 -24
- package/es/form/SchemaForm/adapterType.js +1 -0
- package/es/form/SchemaForm/index.js +8 -6
- package/es/form/SchemaForm/initializeDataSource.d.ts +1 -1
- package/es/form/SchemaForm/initializeDataSource.js +2 -2
- package/es/form/SchemaForm/initializeRequest.d.ts +1 -1
- package/es/form/SchemaForm/initializeRequest.js +2 -2
- package/es/form/SchemaForm/initializeRules.d.ts +1 -1
- package/es/form/SchemaForm/initializeRules.js +3 -3
- package/es/form/fieldTypeMap.js +2 -1
- package/es/form/index.d.ts +4 -2
- package/es/form/index.js +4 -2
- package/es/form/typing.d.ts +25 -1
- package/es/form/utils.d.ts +2 -2
- package/es/form/utils.js +2 -2
- package/es/index.d.ts +5 -2
- package/es/index.js +6 -3
- package/es/info/index.scss +1 -1
- package/es/nocode/pages/renderer.js +1 -1
- package/es/step/ProStepItem/components/HozStepItem/index.d.ts +5 -0
- package/es/step/ProStepItem/components/HozStepItem/index.js +235 -0
- package/es/step/ProStepItem/components/HozStepItem/index.scss +279 -0
- package/es/step/ProStepItem/components/VerStepItem/index.d.ts +5 -0
- package/es/step/ProStepItem/components/VerStepItem/index.js +295 -0
- package/es/step/ProStepItem/components/VerStepItem/index.scss +287 -0
- package/es/step/ProStepItem/index.d.ts +4 -0
- package/es/step/ProStepItem/index.js +57 -0
- package/es/step/index.d.ts +9 -0
- package/es/step/index.js +101 -0
- package/es/step/typing.d.ts +96 -0
- package/es/step/typing.js +1 -0
- package/es/table/components/Filter/index.js +2 -17
- package/es/table/components/Layout/index.js +63 -166
- package/es/table/components/Layout/index.scss +4 -3
- package/es/table/components/Pagination/index.d.ts +4 -1
- package/es/table/components/Pagination/index.js +105 -14
- package/es/table/components/Pagination/index.scss +33 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +4 -9
- package/es/table/components/ToolBar/Fullscreen.js +21 -11
- package/es/table/index.js +77 -102
- package/es/table/index.scss +5 -5
- package/es/table/typing.d.ts +19 -10
- package/es/table/utils/columnRender.js +21 -3
- package/es/table/utils/index.d.ts +7 -0
- package/es/table/utils/index.js +36 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +1 -0
- package/lib/actions/dialog.js +4 -3
- package/lib/actions/index.d.ts +13 -9
- package/lib/actions/index.js +63 -18
- package/lib/actions/index.scss +12 -1
- package/lib/form/Components/SelectTable/index.d.ts +24 -0
- package/lib/form/Components/SelectTable/index.js +157 -0
- package/lib/form/Components/SelectTable/index.scss +28 -0
- package/lib/form/Components/SelectTable/table.d.ts +6 -0
- package/lib/form/Components/SelectTable/table.js +76 -0
- package/lib/form/Filter/AdvancedFilter.js +1 -1
- package/lib/form/Filter/Layout.d.ts +5 -0
- package/lib/form/Filter/Layout.js +102 -0
- package/lib/form/Filter/SimpleFilter.js +29 -4
- package/lib/form/Filter/index2.d.ts +2 -1
- package/lib/form/Filter/index2.js +101 -114
- package/lib/form/Filter/index2.scss +16 -45
- package/lib/form/Filter/layout.scss +36 -0
- package/lib/form/Filter/useSpecialProps.d.ts +6 -0
- package/lib/form/Filter/useSpecialProps.js +46 -0
- package/lib/form/ProForm/customComponent.d.ts +3 -0
- package/lib/form/ProForm/customComponent.js +28 -0
- package/lib/form/ProForm/index.scss +5 -6
- package/lib/form/ProForm/useFormDisplayValues.js +17 -24
- package/lib/form/SchemaForm/adapterType.js +1 -0
- package/lib/form/SchemaForm/index.js +8 -6
- package/lib/form/SchemaForm/initializeDataSource.d.ts +1 -1
- package/lib/form/SchemaForm/initializeDataSource.js +2 -2
- package/lib/form/SchemaForm/initializeRequest.d.ts +1 -1
- package/lib/form/SchemaForm/initializeRequest.js +2 -2
- package/lib/form/SchemaForm/initializeRules.d.ts +1 -1
- package/lib/form/SchemaForm/initializeRules.js +3 -3
- package/lib/form/fieldTypeMap.js +2 -1
- package/lib/form/index.d.ts +4 -2
- package/lib/form/index.js +19 -1
- package/lib/form/typing.d.ts +25 -1
- package/lib/form/utils.d.ts +2 -2
- package/lib/form/utils.js +2 -2
- package/lib/index.d.ts +5 -2
- package/lib/index.js +35 -3
- package/lib/info/index.scss +1 -1
- package/lib/nocode/pages/renderer.js +1 -1
- package/lib/step/ProStepItem/components/HozStepItem/index.d.ts +5 -0
- package/lib/step/ProStepItem/components/HozStepItem/index.js +258 -0
- package/lib/step/ProStepItem/components/HozStepItem/index.scss +279 -0
- package/lib/step/ProStepItem/components/VerStepItem/index.d.ts +5 -0
- package/lib/step/ProStepItem/components/VerStepItem/index.js +315 -0
- package/lib/step/ProStepItem/components/VerStepItem/index.scss +287 -0
- package/lib/step/ProStepItem/index.d.ts +4 -0
- package/lib/step/ProStepItem/index.js +69 -0
- package/lib/step/index.d.ts +9 -0
- package/lib/step/index.js +124 -0
- package/lib/step/typing.d.ts +96 -0
- package/lib/step/typing.js +5 -0
- package/lib/table/components/Filter/index.js +2 -17
- package/lib/table/components/Layout/index.js +61 -166
- package/lib/table/components/Layout/index.scss +4 -3
- package/lib/table/components/Pagination/index.d.ts +4 -1
- package/lib/table/components/Pagination/index.js +104 -13
- package/lib/table/components/Pagination/index.scss +33 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +4 -9
- package/lib/table/components/ToolBar/Fullscreen.js +22 -11
- package/lib/table/index.js +74 -98
- package/lib/table/index.scss +5 -5
- package/lib/table/typing.d.ts +19 -10
- package/lib/table/utils/columnRender.js +21 -3
- package/lib/table/utils/index.d.ts +7 -0
- package/lib/table/utils/index.js +38 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +13 -0
- package/package.json +4 -4
@@ -17,7 +17,7 @@ var _hooks = require("@teamix/hooks");
|
|
17
17
|
|
18
18
|
require("./index.scss");
|
19
19
|
|
20
|
-
var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "
|
20
|
+
var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "onPageSizeChange", "responsivePaginationType"];
|
21
21
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
23
23
|
|
@@ -49,15 +49,15 @@ var cls = (0, _utils.baseClass)('teamix-pro-pagination');
|
|
49
49
|
|
50
50
|
var _default = function _default(props) {
|
51
51
|
var className = props.className,
|
52
|
-
|
52
|
+
propsOnChange = props.onChange,
|
53
53
|
total = props.total,
|
54
54
|
totalRender = props.totalRender,
|
55
55
|
pageSize = props.pageSize,
|
56
56
|
current = props.current,
|
57
57
|
pageSizeList = props.pageSizeList,
|
58
58
|
pageSizeSelector = props.pageSizeSelector,
|
59
|
-
type = props.type,
|
60
59
|
onPageSizeChange = props.onPageSizeChange,
|
60
|
+
responsivePaginationType = props.responsivePaginationType,
|
61
61
|
otherProps = _objectWithoutProperties(props, _excluded);
|
62
62
|
|
63
63
|
var _useResponsiveProps = (0, _hooks.useResponsiveProps)([480, 590, 700], ['mini', 'small', 'simple', 'normal']),
|
@@ -69,17 +69,23 @@ var _default = function _default(props) {
|
|
69
69
|
visible = _useState2[0],
|
70
70
|
setVisible = _useState2[1];
|
71
71
|
|
72
|
+
var _useState3 = (0, _react.useState)(current),
|
73
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
74
|
+
currentPage = _useState4[0],
|
75
|
+
setCurrentPage = _useState4[1];
|
76
|
+
|
72
77
|
var commonPaginationProps = {
|
73
78
|
className: className,
|
74
|
-
onChange:
|
79
|
+
onChange: propsOnChange,
|
75
80
|
total: total,
|
76
81
|
pageSize: pageSize,
|
82
|
+
current: current,
|
77
83
|
shape: 'arrow-only',
|
78
84
|
pageSizeList: pageSizeList,
|
79
85
|
pageSizeSelector: pageSizeSelector,
|
80
86
|
pageSizePosition: 'end',
|
81
87
|
onPageSizeChange: onPageSizeChange
|
82
|
-
};
|
88
|
+
}; // 自定义总数,用于 small、mini
|
83
89
|
|
84
90
|
var customTotalRender = function customTotalRender(total) {
|
85
91
|
return /*#__PURE__*/_react.default.createElement(_components.Balloon, {
|
@@ -112,13 +118,104 @@ var _default = function _default(props) {
|
|
112
118
|
},
|
113
119
|
onChange: function onChange(value) {
|
114
120
|
setVisible(false);
|
121
|
+
setCurrentPage(1);
|
115
122
|
onPageSizeChange === null || onPageSizeChange === void 0 ? void 0 : onPageSizeChange(value);
|
116
123
|
}
|
117
124
|
})));
|
125
|
+
}; // 获取页总数
|
126
|
+
|
127
|
+
|
128
|
+
function getTotalPage(total, currentPageSize) {
|
129
|
+
var totalPage = Math.ceil(total / currentPageSize);
|
130
|
+
return totalPage <= 0 ? 1 : totalPage;
|
131
|
+
} // 自定义翻页,用于 mini
|
132
|
+
|
133
|
+
|
134
|
+
var customJumpRender = function customJumpRender() {
|
135
|
+
var handleInputChange = function handleInputChange(value, e) {
|
136
|
+
setCurrentPage(value);
|
137
|
+
}; // 回车触发跳转
|
138
|
+
|
139
|
+
|
140
|
+
var handleJump = function handleJump(e) {
|
141
|
+
var totalPage = getTotalPage(total, pageSize);
|
142
|
+
var value = Number(currentPage);
|
143
|
+
|
144
|
+
if (isNaN(value)) {
|
145
|
+
value = '';
|
146
|
+
} else if (value < 1) {
|
147
|
+
value = 1;
|
148
|
+
} else if (value > totalPage) {
|
149
|
+
value = totalPage;
|
150
|
+
}
|
151
|
+
|
152
|
+
if (value && value !== current) {
|
153
|
+
setCurrentPage(value);
|
154
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(value, e);
|
155
|
+
}
|
156
|
+
};
|
157
|
+
|
158
|
+
var handlePrevClick = function handlePrevClick(e) {
|
159
|
+
setCurrentPage(currentPage - 1);
|
160
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(currentPage - 1, e);
|
161
|
+
};
|
162
|
+
|
163
|
+
var handleNextClick = function handleNextClick(e) {
|
164
|
+
setCurrentPage(currentPage + 1);
|
165
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(currentPage + 1, e);
|
166
|
+
};
|
167
|
+
|
168
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
169
|
+
className: cls('custom-jumper')
|
170
|
+
}, /*#__PURE__*/_react.default.createElement(_components.Button, {
|
171
|
+
className: "next-prev next-pagination-item",
|
172
|
+
onClick: handlePrevClick,
|
173
|
+
disabled: Number(currentPage) <= 1
|
174
|
+
}, /*#__PURE__*/_react.default.createElement(_components.Icon, {
|
175
|
+
size: "small",
|
176
|
+
type: "arrow-left"
|
177
|
+
})), /*#__PURE__*/_react.default.createElement(_components.Input, {
|
178
|
+
className: "jump-input",
|
179
|
+
value: currentPage,
|
180
|
+
onChange: handleInputChange,
|
181
|
+
onKeyDown: function onKeyDown(e) {
|
182
|
+
if (e.keyCode === 13) {
|
183
|
+
handleJump(e);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
187
|
+
className: "total"
|
188
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
189
|
+
style: {
|
190
|
+
marginRight: 4
|
191
|
+
}
|
192
|
+
}, "/"), getTotalPage(total, pageSize)), /*#__PURE__*/_react.default.createElement(_components.Button, {
|
193
|
+
className: "next-next next-pagination-item",
|
194
|
+
onClick: handleNextClick,
|
195
|
+
//@ts-ignore
|
196
|
+
disabled: total && Number(currentPage) >= getTotalPage(total, pageSize)
|
197
|
+
}, /*#__PURE__*/_react.default.createElement(_components.Icon, {
|
198
|
+
size: "small",
|
199
|
+
type: "arrow-right"
|
200
|
+
})));
|
201
|
+
};
|
202
|
+
|
203
|
+
var renderMiniPagination = function renderMiniPagination() {
|
204
|
+
if (total && pageSize) {
|
205
|
+
if (total / pageSize <= 2) {
|
206
|
+
return /*#__PURE__*/_react.default.createElement(_components.Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
|
207
|
+
type: "simple"
|
208
|
+
}, otherProps));
|
209
|
+
} else {
|
210
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
211
|
+
className: "".concat(cls('custom-mini-pagination'), " next-pagination")
|
212
|
+
}, customTotalRender(total), customJumpRender());
|
213
|
+
}
|
214
|
+
}
|
118
215
|
};
|
119
216
|
|
120
217
|
var renderPagination = function renderPagination() {
|
121
|
-
switch (responsiveProps) {
|
218
|
+
switch (responsivePaginationType || responsiveProps) {
|
122
219
|
case 'normal':
|
123
220
|
return /*#__PURE__*/_react.default.createElement(_components.Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
|
124
221
|
totalRender: function totalRender(total) {
|
@@ -148,13 +245,7 @@ var _default = function _default(props) {
|
|
148
245
|
}, otherProps));
|
149
246
|
|
150
247
|
case 'mini':
|
151
|
-
return
|
152
|
-
pageSizeSelector: false,
|
153
|
-
totalRender: function totalRender(total) {
|
154
|
-
return customTotalRender(total);
|
155
|
-
},
|
156
|
-
type: "simple"
|
157
|
-
}, otherProps));
|
248
|
+
return renderMiniPagination();
|
158
249
|
|
159
250
|
default:
|
160
251
|
return /*#__PURE__*/_react.default.createElement(_components.Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), otherProps));
|
@@ -1,6 +1,11 @@
|
|
1
1
|
$prefix: 'teamix-pro-pagination';
|
2
2
|
|
3
3
|
.#{$prefix} {
|
4
|
+
&-wrapper {
|
5
|
+
display: flex;
|
6
|
+
justify-content: flex-end;
|
7
|
+
width: 100%;
|
8
|
+
}
|
4
9
|
&-custom-total {
|
5
10
|
&-content {
|
6
11
|
display: flex;
|
@@ -13,6 +18,34 @@ $prefix: 'teamix-pro-pagination';
|
|
13
18
|
}
|
14
19
|
}
|
15
20
|
}
|
21
|
+
&-custom-mini-pagination {
|
22
|
+
display: flex;
|
23
|
+
align-items: center;
|
24
|
+
}
|
25
|
+
&-custom-jumper {
|
26
|
+
display: flex;
|
27
|
+
align-items: center;
|
28
|
+
.jump-input {
|
29
|
+
width: 36px;
|
30
|
+
input {
|
31
|
+
padding: 0 3px;
|
32
|
+
text-align: center;
|
33
|
+
line-height: 30px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.total {
|
37
|
+
margin-left: 8px;
|
38
|
+
margin-right: 4px;
|
39
|
+
color: var(--color-text1-2);
|
40
|
+
}
|
41
|
+
.next-prev {
|
42
|
+
margin-left: 8px;
|
43
|
+
margin-right: 4px;
|
44
|
+
}
|
45
|
+
.next-pagination-item:disabled i {
|
46
|
+
color: var(--btn-pure-normal-color-disabled, #CCCCCC) !important;
|
47
|
+
}
|
48
|
+
}
|
16
49
|
&-custom-page-size-selector.next-select-trigger {
|
17
50
|
min-width: 56px;
|
18
51
|
.next-select-inner {
|
@@ -44,17 +44,11 @@ var FullScreenIcon = function FullScreenIcon(props) {
|
|
44
44
|
|
45
45
|
var _useState = (0, _react.useState)(false),
|
46
46
|
_useState2 = _slicedToArray(_useState, 2),
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
var _useState3 = (0, _react.useState)(false),
|
51
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
52
|
-
fullscreen = _useState4[0],
|
53
|
-
setFullscreen = _useState4[1]; // 点击全屏
|
47
|
+
fullscreen = _useState2[0],
|
48
|
+
setFullscreen = _useState2[1]; // 点击全屏
|
54
49
|
|
55
50
|
|
56
51
|
var allScreenHandle = function allScreenHandle() {
|
57
|
-
setVisible(false);
|
58
52
|
setTimeout(function () {
|
59
53
|
var _actionRef$current, _actionRef$current$fu;
|
60
54
|
|
@@ -72,7 +66,8 @@ var FullScreenIcon = function FullScreenIcon(props) {
|
|
72
66
|
}, []); // 监听全屏变化
|
73
67
|
|
74
68
|
(_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$o = _actionRef$current3.on) === null || _actionRef$current3$o === void 0 ? void 0 : _actionRef$current3$o.call(_actionRef$current3, function (state) {
|
75
|
-
|
69
|
+
// console.log('dataFilterForm', actionRef.current?.dataFilterForm);
|
70
|
+
setFullscreen(state); // actionRef.current?.dataFilterForm?.setValues(formValues);
|
76
71
|
}, 'fullScreenState', 'fullscreenIcon');
|
77
72
|
return /*#__PURE__*/_react.default.createElement(_components.Button, {
|
78
73
|
iconSize: "small",
|
@@ -23,28 +23,38 @@ var FullScreen = function FullScreen(props) {
|
|
23
23
|
var children = props.children,
|
24
24
|
visible = props.visible,
|
25
25
|
actionRef = props.actionRef;
|
26
|
+
var _actionRef$current = actionRef.current,
|
27
|
+
normalDataFilterForm = _actionRef$current.normalDataFilterForm,
|
28
|
+
fullscreenDataFilterForm = _actionRef$current.fullscreenDataFilterForm;
|
26
29
|
|
27
30
|
function closeByESC(e) {
|
28
31
|
if (visible && e.code === 'Escape') {
|
29
|
-
var _actionRef$
|
32
|
+
var _actionRef$current2, _actionRef$current2$s, _actionRef$current3, _actionRef$current3$f;
|
30
33
|
|
31
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
32
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
34
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$s = _actionRef$current2.setFullScreenState) === null || _actionRef$current2$s === void 0 ? void 0 : _actionRef$current2$s.call(_actionRef$current2, false);
|
35
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$f = _actionRef$current3.fullScreen) === null || _actionRef$current3$f === void 0 ? void 0 : _actionRef$current3$f.call(_actionRef$current3);
|
33
36
|
}
|
34
37
|
} // 监听esc按钮
|
35
38
|
|
36
39
|
|
37
40
|
(0, _react.useEffect)(function () {
|
38
|
-
var _actionRef$
|
41
|
+
var _actionRef$current4, _actionRef$current4$s;
|
39
42
|
|
40
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
43
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$s = _actionRef$current4.setFullScreenState) === null || _actionRef$current4$s === void 0 ? void 0 : _actionRef$current4$s.call(_actionRef$current4, visible);
|
41
44
|
window.addEventListener('keydown', closeByESC);
|
42
45
|
return function () {
|
43
46
|
window.removeEventListener('keydown', closeByESC);
|
44
47
|
};
|
45
|
-
}, [visible]);
|
48
|
+
}, [visible]);
|
49
|
+
|
50
|
+
var afterClose = function afterClose() {
|
51
|
+
normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.setValues(fullscreenDataFilterForm.values);
|
52
|
+
}; // 全屏开启之后
|
53
|
+
|
46
54
|
|
47
55
|
var afterOpen = function afterOpen() {
|
56
|
+
fullscreenDataFilterForm.setValues(normalDataFilterForm.values);
|
57
|
+
|
48
58
|
_components.Message.show({
|
49
59
|
type: 'notice',
|
50
60
|
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, (0, _utils.getMessage)('press')), /*#__PURE__*/_react.default.createElement("span", {
|
@@ -56,13 +66,15 @@ var FullScreen = function FullScreen(props) {
|
|
56
66
|
});
|
57
67
|
};
|
58
68
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, /*#__PURE__*/_react.default.createElement(_components.Overlay, {
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children(false), /*#__PURE__*/_react.default.createElement(_components.Overlay, {
|
60
70
|
canCloseByOutSideClick: false,
|
61
71
|
align: "cc cc",
|
62
72
|
cache: true,
|
63
73
|
v2: false,
|
64
74
|
disableScroll: true,
|
65
75
|
shouldUpdatePosition: true,
|
76
|
+
afterClose: afterClose,
|
77
|
+
afterOpen: afterOpen,
|
66
78
|
animation: {
|
67
79
|
in: 'fadeIn',
|
68
80
|
out: 'fadeOut'
|
@@ -71,15 +83,14 @@ var FullScreen = function FullScreen(props) {
|
|
71
83
|
wrapperStyle: {
|
72
84
|
zIndex: 999
|
73
85
|
},
|
74
|
-
afterOpen: afterOpen,
|
75
86
|
onRequestClose: function onRequestClose() {
|
76
|
-
var _actionRef$
|
87
|
+
var _actionRef$current5, _actionRef$current5$f;
|
77
88
|
|
78
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
89
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : (_actionRef$current5$f = _actionRef$current5.fullScreen) === null || _actionRef$current5$f === void 0 ? void 0 : _actionRef$current5$f.call(_actionRef$current5);
|
79
90
|
}
|
80
91
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
81
92
|
className: "teamix-pro-table-full-screen"
|
82
|
-
}, children)));
|
93
|
+
}, children(true))));
|
83
94
|
};
|
84
95
|
|
85
96
|
var _default = FullScreen;
|