@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
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "
|
1
|
+
var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "onPageSizeChange", "responsivePaginationType"];
|
2
2
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
4
|
|
@@ -24,22 +24,22 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
24
24
|
|
25
25
|
// 自适应宽度的翻页器
|
26
26
|
import React, { useState } from 'react';
|
27
|
-
import { Pagination, Balloon, Select, Button } from '@alicloudfe/components';
|
27
|
+
import { Pagination, Balloon, Select, Button, Input, Icon } from '@alicloudfe/components';
|
28
28
|
import { getMessage, baseClass } from '@teamix/utils';
|
29
29
|
import { useResponsiveProps } from '@teamix/hooks';
|
30
30
|
import './index.scss';
|
31
31
|
var cls = baseClass('teamix-pro-pagination');
|
32
32
|
export default (function (props) {
|
33
33
|
var className = props.className,
|
34
|
-
|
34
|
+
propsOnChange = props.onChange,
|
35
35
|
total = props.total,
|
36
36
|
totalRender = props.totalRender,
|
37
37
|
pageSize = props.pageSize,
|
38
38
|
current = props.current,
|
39
39
|
pageSizeList = props.pageSizeList,
|
40
40
|
pageSizeSelector = props.pageSizeSelector,
|
41
|
-
type = props.type,
|
42
41
|
onPageSizeChange = props.onPageSizeChange,
|
42
|
+
responsivePaginationType = props.responsivePaginationType,
|
43
43
|
otherProps = _objectWithoutProperties(props, _excluded);
|
44
44
|
|
45
45
|
var _useResponsiveProps = useResponsiveProps([480, 590, 700], ['mini', 'small', 'simple', 'normal']),
|
@@ -51,17 +51,23 @@ export default (function (props) {
|
|
51
51
|
visible = _useState2[0],
|
52
52
|
setVisible = _useState2[1];
|
53
53
|
|
54
|
+
var _useState3 = useState(current),
|
55
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
56
|
+
currentPage = _useState4[0],
|
57
|
+
setCurrentPage = _useState4[1];
|
58
|
+
|
54
59
|
var commonPaginationProps = {
|
55
60
|
className: className,
|
56
|
-
onChange:
|
61
|
+
onChange: propsOnChange,
|
57
62
|
total: total,
|
58
63
|
pageSize: pageSize,
|
64
|
+
current: current,
|
59
65
|
shape: 'arrow-only',
|
60
66
|
pageSizeList: pageSizeList,
|
61
67
|
pageSizeSelector: pageSizeSelector,
|
62
68
|
pageSizePosition: 'end',
|
63
69
|
onPageSizeChange: onPageSizeChange
|
64
|
-
};
|
70
|
+
}; // 自定义总数,用于 small、mini
|
65
71
|
|
66
72
|
var customTotalRender = function customTotalRender(total) {
|
67
73
|
return /*#__PURE__*/React.createElement(Balloon, {
|
@@ -94,13 +100,104 @@ export default (function (props) {
|
|
94
100
|
},
|
95
101
|
onChange: function onChange(value) {
|
96
102
|
setVisible(false);
|
103
|
+
setCurrentPage(1);
|
97
104
|
onPageSizeChange === null || onPageSizeChange === void 0 ? void 0 : onPageSizeChange(value);
|
98
105
|
}
|
99
106
|
})));
|
107
|
+
}; // 获取页总数
|
108
|
+
|
109
|
+
|
110
|
+
function getTotalPage(total, currentPageSize) {
|
111
|
+
var totalPage = Math.ceil(total / currentPageSize);
|
112
|
+
return totalPage <= 0 ? 1 : totalPage;
|
113
|
+
} // 自定义翻页,用于 mini
|
114
|
+
|
115
|
+
|
116
|
+
var customJumpRender = function customJumpRender() {
|
117
|
+
var handleInputChange = function handleInputChange(value, e) {
|
118
|
+
setCurrentPage(value);
|
119
|
+
}; // 回车触发跳转
|
120
|
+
|
121
|
+
|
122
|
+
var handleJump = function handleJump(e) {
|
123
|
+
var totalPage = getTotalPage(total, pageSize);
|
124
|
+
var value = Number(currentPage);
|
125
|
+
|
126
|
+
if (isNaN(value)) {
|
127
|
+
value = '';
|
128
|
+
} else if (value < 1) {
|
129
|
+
value = 1;
|
130
|
+
} else if (value > totalPage) {
|
131
|
+
value = totalPage;
|
132
|
+
}
|
133
|
+
|
134
|
+
if (value && value !== current) {
|
135
|
+
setCurrentPage(value);
|
136
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(value, e);
|
137
|
+
}
|
138
|
+
};
|
139
|
+
|
140
|
+
var handlePrevClick = function handlePrevClick(e) {
|
141
|
+
setCurrentPage(currentPage - 1);
|
142
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(currentPage - 1, e);
|
143
|
+
};
|
144
|
+
|
145
|
+
var handleNextClick = function handleNextClick(e) {
|
146
|
+
setCurrentPage(currentPage + 1);
|
147
|
+
propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(currentPage + 1, e);
|
148
|
+
};
|
149
|
+
|
150
|
+
return /*#__PURE__*/React.createElement("div", {
|
151
|
+
className: cls('custom-jumper')
|
152
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
153
|
+
className: "next-prev next-pagination-item",
|
154
|
+
onClick: handlePrevClick,
|
155
|
+
disabled: Number(currentPage) <= 1
|
156
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
157
|
+
size: "small",
|
158
|
+
type: "arrow-left"
|
159
|
+
})), /*#__PURE__*/React.createElement(Input, {
|
160
|
+
className: "jump-input",
|
161
|
+
value: currentPage,
|
162
|
+
onChange: handleInputChange,
|
163
|
+
onKeyDown: function onKeyDown(e) {
|
164
|
+
if (e.keyCode === 13) {
|
165
|
+
handleJump(e);
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}), /*#__PURE__*/React.createElement("div", {
|
169
|
+
className: "total"
|
170
|
+
}, /*#__PURE__*/React.createElement("span", {
|
171
|
+
style: {
|
172
|
+
marginRight: 4
|
173
|
+
}
|
174
|
+
}, "/"), getTotalPage(total, pageSize)), /*#__PURE__*/React.createElement(Button, {
|
175
|
+
className: "next-next next-pagination-item",
|
176
|
+
onClick: handleNextClick,
|
177
|
+
//@ts-ignore
|
178
|
+
disabled: total && Number(currentPage) >= getTotalPage(total, pageSize)
|
179
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
180
|
+
size: "small",
|
181
|
+
type: "arrow-right"
|
182
|
+
})));
|
183
|
+
};
|
184
|
+
|
185
|
+
var renderMiniPagination = function renderMiniPagination() {
|
186
|
+
if (total && pageSize) {
|
187
|
+
if (total / pageSize <= 2) {
|
188
|
+
return /*#__PURE__*/React.createElement(Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
|
189
|
+
type: "simple"
|
190
|
+
}, otherProps));
|
191
|
+
} else {
|
192
|
+
return /*#__PURE__*/React.createElement("div", {
|
193
|
+
className: "".concat(cls('custom-mini-pagination'), " next-pagination")
|
194
|
+
}, customTotalRender(total), customJumpRender());
|
195
|
+
}
|
196
|
+
}
|
100
197
|
};
|
101
198
|
|
102
199
|
var renderPagination = function renderPagination() {
|
103
|
-
switch (responsiveProps) {
|
200
|
+
switch (responsivePaginationType || responsiveProps) {
|
104
201
|
case 'normal':
|
105
202
|
return /*#__PURE__*/React.createElement(Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
|
106
203
|
totalRender: function totalRender(total) {
|
@@ -130,13 +227,7 @@ export default (function (props) {
|
|
130
227
|
}, otherProps));
|
131
228
|
|
132
229
|
case 'mini':
|
133
|
-
return
|
134
|
-
pageSizeSelector: false,
|
135
|
-
totalRender: function totalRender(total) {
|
136
|
-
return customTotalRender(total);
|
137
|
-
},
|
138
|
-
type: "simple"
|
139
|
-
}, otherProps));
|
230
|
+
return renderMiniPagination();
|
140
231
|
|
141
232
|
default:
|
142
233
|
return /*#__PURE__*/React.createElement(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 {
|
@@ -27,17 +27,11 @@ var FullScreenIcon = function FullScreenIcon(props) {
|
|
27
27
|
|
28
28
|
var _useState = useState(false),
|
29
29
|
_useState2 = _slicedToArray(_useState, 2),
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
var _useState3 = useState(false),
|
34
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
35
|
-
fullscreen = _useState4[0],
|
36
|
-
setFullscreen = _useState4[1]; // 点击全屏
|
30
|
+
fullscreen = _useState2[0],
|
31
|
+
setFullscreen = _useState2[1]; // 点击全屏
|
37
32
|
|
38
33
|
|
39
34
|
var allScreenHandle = function allScreenHandle() {
|
40
|
-
setVisible(false);
|
41
35
|
setTimeout(function () {
|
42
36
|
var _actionRef$current, _actionRef$current$fu;
|
43
37
|
|
@@ -55,7 +49,8 @@ var FullScreenIcon = function FullScreenIcon(props) {
|
|
55
49
|
}, []); // 监听全屏变化
|
56
50
|
|
57
51
|
(_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) {
|
58
|
-
|
52
|
+
// console.log('dataFilterForm', actionRef.current?.dataFilterForm);
|
53
|
+
setFullscreen(state); // actionRef.current?.dataFilterForm?.setValues(formValues);
|
59
54
|
}, 'fullScreenState', 'fullscreenIcon');
|
60
55
|
return /*#__PURE__*/React.createElement(Button, {
|
61
56
|
iconSize: "small",
|
@@ -7,28 +7,37 @@ var FullScreen = function FullScreen(props) {
|
|
7
7
|
var children = props.children,
|
8
8
|
visible = props.visible,
|
9
9
|
actionRef = props.actionRef;
|
10
|
+
var _actionRef$current = actionRef.current,
|
11
|
+
normalDataFilterForm = _actionRef$current.normalDataFilterForm,
|
12
|
+
fullscreenDataFilterForm = _actionRef$current.fullscreenDataFilterForm;
|
10
13
|
|
11
14
|
function closeByESC(e) {
|
12
15
|
if (visible && e.code === 'Escape') {
|
13
|
-
var _actionRef$
|
16
|
+
var _actionRef$current2, _actionRef$current2$s, _actionRef$current3, _actionRef$current3$f;
|
14
17
|
|
15
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
16
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
18
|
+
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);
|
19
|
+
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);
|
17
20
|
}
|
18
21
|
} // 监听esc按钮
|
19
22
|
|
20
23
|
|
21
24
|
useEffect(function () {
|
22
|
-
var _actionRef$
|
25
|
+
var _actionRef$current4, _actionRef$current4$s;
|
23
26
|
|
24
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
27
|
+
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);
|
25
28
|
window.addEventListener('keydown', closeByESC);
|
26
29
|
return function () {
|
27
30
|
window.removeEventListener('keydown', closeByESC);
|
28
31
|
};
|
29
|
-
}, [visible]);
|
32
|
+
}, [visible]);
|
33
|
+
|
34
|
+
var afterClose = function afterClose() {
|
35
|
+
normalDataFilterForm === null || normalDataFilterForm === void 0 ? void 0 : normalDataFilterForm.setValues(fullscreenDataFilterForm.values);
|
36
|
+
}; // 全屏开启之后
|
37
|
+
|
30
38
|
|
31
39
|
var afterOpen = function afterOpen() {
|
40
|
+
fullscreenDataFilterForm.setValues(normalDataFilterForm.values);
|
32
41
|
Message.show({
|
33
42
|
type: 'notice',
|
34
43
|
content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, getMessage('press')), /*#__PURE__*/React.createElement("span", {
|
@@ -40,13 +49,15 @@ var FullScreen = function FullScreen(props) {
|
|
40
49
|
});
|
41
50
|
};
|
42
51
|
|
43
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, children, /*#__PURE__*/React.createElement(Overlay, {
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children(false), /*#__PURE__*/React.createElement(Overlay, {
|
44
53
|
canCloseByOutSideClick: false,
|
45
54
|
align: "cc cc",
|
46
55
|
cache: true,
|
47
56
|
v2: false,
|
48
57
|
disableScroll: true,
|
49
58
|
shouldUpdatePosition: true,
|
59
|
+
afterClose: afterClose,
|
60
|
+
afterOpen: afterOpen,
|
50
61
|
animation: {
|
51
62
|
in: 'fadeIn',
|
52
63
|
out: 'fadeOut'
|
@@ -55,15 +66,14 @@ var FullScreen = function FullScreen(props) {
|
|
55
66
|
wrapperStyle: {
|
56
67
|
zIndex: 999
|
57
68
|
},
|
58
|
-
afterOpen: afterOpen,
|
59
69
|
onRequestClose: function onRequestClose() {
|
60
|
-
var _actionRef$
|
70
|
+
var _actionRef$current5, _actionRef$current5$f;
|
61
71
|
|
62
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
72
|
+
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);
|
63
73
|
}
|
64
74
|
}, /*#__PURE__*/React.createElement("div", {
|
65
75
|
className: "teamix-pro-table-full-screen"
|
66
|
-
}, children)));
|
76
|
+
}, children(true))));
|
67
77
|
};
|
68
78
|
|
69
79
|
export default FullScreen;
|