@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.
Files changed (145) hide show
  1. package/dist/212.js +129 -129
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +18718 -15882
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/dist/pro.min.js.LICENSE.txt +2 -0
  7. package/es/actions/dialog.js +4 -3
  8. package/es/actions/index.d.ts +13 -9
  9. package/es/actions/index.js +63 -18
  10. package/es/actions/index.scss +12 -1
  11. package/es/form/Components/SelectTable/index.d.ts +24 -0
  12. package/es/form/Components/SelectTable/index.js +135 -0
  13. package/es/form/Components/SelectTable/index.scss +28 -0
  14. package/es/form/Components/SelectTable/table.d.ts +6 -0
  15. package/es/form/Components/SelectTable/table.js +64 -0
  16. package/es/form/Filter/AdvancedFilter.js +1 -1
  17. package/es/form/Filter/Layout.d.ts +5 -0
  18. package/es/form/Filter/Layout.js +82 -0
  19. package/es/form/Filter/SimpleFilter.js +30 -6
  20. package/es/form/Filter/index2.d.ts +2 -1
  21. package/es/form/Filter/index2.js +97 -116
  22. package/es/form/Filter/index2.scss +16 -45
  23. package/es/form/Filter/layout.scss +36 -0
  24. package/es/form/Filter/useSpecialProps.d.ts +6 -0
  25. package/es/form/Filter/useSpecialProps.js +37 -0
  26. package/es/form/ProForm/customComponent.d.ts +3 -0
  27. package/es/form/ProForm/customComponent.js +20 -0
  28. package/es/form/ProForm/index.scss +5 -6
  29. package/es/form/ProForm/useFormDisplayValues.js +14 -24
  30. package/es/form/SchemaForm/adapterType.js +1 -0
  31. package/es/form/SchemaForm/index.js +8 -6
  32. package/es/form/SchemaForm/initializeDataSource.d.ts +1 -1
  33. package/es/form/SchemaForm/initializeDataSource.js +2 -2
  34. package/es/form/SchemaForm/initializeRequest.d.ts +1 -1
  35. package/es/form/SchemaForm/initializeRequest.js +2 -2
  36. package/es/form/SchemaForm/initializeRules.d.ts +1 -1
  37. package/es/form/SchemaForm/initializeRules.js +3 -3
  38. package/es/form/fieldTypeMap.js +2 -1
  39. package/es/form/index.d.ts +4 -2
  40. package/es/form/index.js +4 -2
  41. package/es/form/typing.d.ts +25 -1
  42. package/es/form/utils.d.ts +2 -2
  43. package/es/form/utils.js +2 -2
  44. package/es/index.d.ts +5 -2
  45. package/es/index.js +6 -3
  46. package/es/info/index.scss +1 -1
  47. package/es/nocode/pages/renderer.js +1 -1
  48. package/es/step/ProStepItem/components/HozStepItem/index.d.ts +5 -0
  49. package/es/step/ProStepItem/components/HozStepItem/index.js +235 -0
  50. package/es/step/ProStepItem/components/HozStepItem/index.scss +279 -0
  51. package/es/step/ProStepItem/components/VerStepItem/index.d.ts +5 -0
  52. package/es/step/ProStepItem/components/VerStepItem/index.js +295 -0
  53. package/es/step/ProStepItem/components/VerStepItem/index.scss +287 -0
  54. package/es/step/ProStepItem/index.d.ts +4 -0
  55. package/es/step/ProStepItem/index.js +57 -0
  56. package/es/step/index.d.ts +9 -0
  57. package/es/step/index.js +101 -0
  58. package/es/step/typing.d.ts +96 -0
  59. package/es/step/typing.js +1 -0
  60. package/es/table/components/Filter/index.js +2 -17
  61. package/es/table/components/Layout/index.js +63 -166
  62. package/es/table/components/Layout/index.scss +4 -3
  63. package/es/table/components/Pagination/index.d.ts +4 -1
  64. package/es/table/components/Pagination/index.js +105 -14
  65. package/es/table/components/Pagination/index.scss +33 -0
  66. package/es/table/components/ToolBar/FullScreenIcon.js +4 -9
  67. package/es/table/components/ToolBar/Fullscreen.js +21 -11
  68. package/es/table/index.js +77 -102
  69. package/es/table/index.scss +5 -5
  70. package/es/table/typing.d.ts +19 -10
  71. package/es/table/utils/columnRender.js +21 -3
  72. package/es/table/utils/index.d.ts +7 -0
  73. package/es/table/utils/index.js +36 -0
  74. package/es/utils/index.d.ts +1 -0
  75. package/es/utils/index.js +1 -0
  76. package/lib/actions/dialog.js +4 -3
  77. package/lib/actions/index.d.ts +13 -9
  78. package/lib/actions/index.js +63 -18
  79. package/lib/actions/index.scss +12 -1
  80. package/lib/form/Components/SelectTable/index.d.ts +24 -0
  81. package/lib/form/Components/SelectTable/index.js +157 -0
  82. package/lib/form/Components/SelectTable/index.scss +28 -0
  83. package/lib/form/Components/SelectTable/table.d.ts +6 -0
  84. package/lib/form/Components/SelectTable/table.js +76 -0
  85. package/lib/form/Filter/AdvancedFilter.js +1 -1
  86. package/lib/form/Filter/Layout.d.ts +5 -0
  87. package/lib/form/Filter/Layout.js +102 -0
  88. package/lib/form/Filter/SimpleFilter.js +29 -4
  89. package/lib/form/Filter/index2.d.ts +2 -1
  90. package/lib/form/Filter/index2.js +101 -114
  91. package/lib/form/Filter/index2.scss +16 -45
  92. package/lib/form/Filter/layout.scss +36 -0
  93. package/lib/form/Filter/useSpecialProps.d.ts +6 -0
  94. package/lib/form/Filter/useSpecialProps.js +46 -0
  95. package/lib/form/ProForm/customComponent.d.ts +3 -0
  96. package/lib/form/ProForm/customComponent.js +28 -0
  97. package/lib/form/ProForm/index.scss +5 -6
  98. package/lib/form/ProForm/useFormDisplayValues.js +17 -24
  99. package/lib/form/SchemaForm/adapterType.js +1 -0
  100. package/lib/form/SchemaForm/index.js +8 -6
  101. package/lib/form/SchemaForm/initializeDataSource.d.ts +1 -1
  102. package/lib/form/SchemaForm/initializeDataSource.js +2 -2
  103. package/lib/form/SchemaForm/initializeRequest.d.ts +1 -1
  104. package/lib/form/SchemaForm/initializeRequest.js +2 -2
  105. package/lib/form/SchemaForm/initializeRules.d.ts +1 -1
  106. package/lib/form/SchemaForm/initializeRules.js +3 -3
  107. package/lib/form/fieldTypeMap.js +2 -1
  108. package/lib/form/index.d.ts +4 -2
  109. package/lib/form/index.js +19 -1
  110. package/lib/form/typing.d.ts +25 -1
  111. package/lib/form/utils.d.ts +2 -2
  112. package/lib/form/utils.js +2 -2
  113. package/lib/index.d.ts +5 -2
  114. package/lib/index.js +35 -3
  115. package/lib/info/index.scss +1 -1
  116. package/lib/nocode/pages/renderer.js +1 -1
  117. package/lib/step/ProStepItem/components/HozStepItem/index.d.ts +5 -0
  118. package/lib/step/ProStepItem/components/HozStepItem/index.js +258 -0
  119. package/lib/step/ProStepItem/components/HozStepItem/index.scss +279 -0
  120. package/lib/step/ProStepItem/components/VerStepItem/index.d.ts +5 -0
  121. package/lib/step/ProStepItem/components/VerStepItem/index.js +315 -0
  122. package/lib/step/ProStepItem/components/VerStepItem/index.scss +287 -0
  123. package/lib/step/ProStepItem/index.d.ts +4 -0
  124. package/lib/step/ProStepItem/index.js +69 -0
  125. package/lib/step/index.d.ts +9 -0
  126. package/lib/step/index.js +124 -0
  127. package/lib/step/typing.d.ts +96 -0
  128. package/lib/step/typing.js +5 -0
  129. package/lib/table/components/Filter/index.js +2 -17
  130. package/lib/table/components/Layout/index.js +61 -166
  131. package/lib/table/components/Layout/index.scss +4 -3
  132. package/lib/table/components/Pagination/index.d.ts +4 -1
  133. package/lib/table/components/Pagination/index.js +104 -13
  134. package/lib/table/components/Pagination/index.scss +33 -0
  135. package/lib/table/components/ToolBar/FullScreenIcon.js +4 -9
  136. package/lib/table/components/ToolBar/Fullscreen.js +22 -11
  137. package/lib/table/index.js +74 -98
  138. package/lib/table/index.scss +5 -5
  139. package/lib/table/typing.d.ts +19 -10
  140. package/lib/table/utils/columnRender.js +21 -3
  141. package/lib/table/utils/index.d.ts +7 -0
  142. package/lib/table/utils/index.js +38 -0
  143. package/lib/utils/index.d.ts +1 -0
  144. package/lib/utils/index.js +13 -0
  145. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "type", "onPageSizeChange"];
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
- onChange = props.onChange,
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: 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 /*#__PURE__*/React.createElement(Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
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
- visible = _useState2[0],
31
- setVisible = _useState2[1];
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
- setFullscreen(state);
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$current, _actionRef$current$se, _actionRef$current2, _actionRef$current2$f;
16
+ var _actionRef$current2, _actionRef$current2$s, _actionRef$current3, _actionRef$current3$f;
14
17
 
15
- actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setFullScreenState) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, false);
16
- actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.fullScreen) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2);
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$current3, _actionRef$current3$s;
25
+ var _actionRef$current4, _actionRef$current4$s;
23
26
 
24
- actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$s = _actionRef$current3.setFullScreenState) === null || _actionRef$current3$s === void 0 ? void 0 : _actionRef$current3$s.call(_actionRef$current3, visible);
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$current4, _actionRef$current4$f;
70
+ var _actionRef$current5, _actionRef$current5$f;
61
71
 
62
- actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$f = _actionRef$current4.fullScreen) === null || _actionRef$current4$f === void 0 ? void 0 : _actionRef$current4$f.call(_actionRef$current4);
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;