@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
@@ -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", "type", "onPageSizeChange"];
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
- onChange = props.onChange,
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: 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 /*#__PURE__*/_react.default.createElement(_components.Pagination, _objectSpread(_objectSpread({}, commonPaginationProps), {}, {
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
- visible = _useState2[0],
48
- setVisible = _useState2[1];
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
- setFullscreen(state);
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$current, _actionRef$current$se, _actionRef$current2, _actionRef$current2$f;
32
+ var _actionRef$current2, _actionRef$current2$s, _actionRef$current3, _actionRef$current3$f;
30
33
 
31
- 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);
32
- 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);
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$current3, _actionRef$current3$s;
41
+ var _actionRef$current4, _actionRef$current4$s;
39
42
 
40
- 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);
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$current4, _actionRef$current4$f;
87
+ var _actionRef$current5, _actionRef$current5$f;
77
88
 
78
- 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);
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;