@zat-design/sisyphus-react 3.13.0 → 3.13.1-beta.2

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.
@@ -1848,6 +1848,9 @@
1848
1848
  .pro-table .ant-table-cell-with-append > div {
1849
1849
  display: inline-block;
1850
1850
  }
1851
+ .pro-table .ant-table-content > table .ant-table-cell-fix-left-last:after {
1852
+ width: 8px;
1853
+ }
1851
1854
  .pro-table .ant-table-content > table .ant-table-summary {
1852
1855
  color: var(--zaui-text, #343434);
1853
1856
  font-weight: 600;
package/dist/less.esm.css CHANGED
@@ -1848,6 +1848,9 @@
1848
1848
  .pro-table .ant-table-cell-with-append > div {
1849
1849
  display: inline-block;
1850
1850
  }
1851
+ .pro-table .ant-table-content > table .ant-table-cell-fix-left-last:after {
1852
+ width: 8px;
1853
+ }
1851
1854
  .pro-table .ant-table-content > table .ant-table-summary {
1852
1855
  color: var(--zaui-text, #343434);
1853
1856
  font-weight: 600;
@@ -139,6 +139,8 @@ var ProCollapse = function ProCollapse(props) {
139
139
  var rect = proCollapseNoTitles[0].getBoundingClientRect();
140
140
  if ((rect === null || rect === void 0 ? void 0 : rect.height) < window.innerHeight - rect.top) {
141
141
  proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + 16, "px)");
142
+ } else {
143
+ proCollapseNoTitles[0].style.minHeight = 'auto';
142
144
  }
143
145
  if (proFooterNode) {
144
146
  proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + proFooterNode.offsetHeight + 16, "px)");
@@ -131,14 +131,10 @@ export function useStepTab() {
131
131
  setLoading(false);
132
132
  return _context.abrupt("return", false);
133
133
  case 13:
134
- _context.prev = 13;
135
- setLoading(false);
136
- return _context.finish(13);
137
- case 16:
138
134
  case "end":
139
135
  return _context.stop();
140
136
  }
141
- }, _callee, null, [[1, 9, 13, 16]]);
137
+ }, _callee, null, [[1, 9]]);
142
138
  }));
143
139
  }, []);
144
140
  // 注册步骤处理函数
@@ -251,7 +247,7 @@ export function useStepTab() {
251
247
  case 0:
252
248
  handler = handlesState[activeKey];
253
249
  if (!handler) {
254
- _context4.next = 14;
250
+ _context4.next = 15;
255
251
  break;
256
252
  }
257
253
  _context4.next = 4;
@@ -259,29 +255,33 @@ export function useStepTab() {
259
255
  case 4:
260
256
  result = _context4.sent;
261
257
  if (!(result && autoNext)) {
262
- _context4.next = 11;
258
+ _context4.next = 12;
263
259
  break;
264
260
  }
265
261
  // 只有当activeKey能转换为数字时才执行自动跳转
266
262
  currentKeyNum = Number(activeKey);
267
263
  if (isNaN(currentKeyNum)) {
268
- _context4.next = 11;
264
+ _context4.next = 12;
269
265
  break;
270
266
  }
271
- nextKey = String(currentKeyNum + 1); // 自动跳转到下一个tab
272
- _context4.next = 11;
273
- return setCheckActiveKey(nextKey);
274
- case 11:
267
+ nextKey = String(currentKeyNum + 1);
268
+ if (Number(nextKey) > queueSteps) {
269
+ nextKey = String(queueSteps);
270
+ }
271
+ // 自动跳转到下一个tab
272
+ _context4.next = 12;
273
+ return setCheckActiveKey(nextKey, false);
274
+ case 12:
275
275
  if (!(result === false)) {
276
- _context4.next = 13;
276
+ _context4.next = 14;
277
277
  break;
278
278
  }
279
279
  return _context4.abrupt("return", Promise.reject());
280
- case 13:
281
- return _context4.abrupt("return", result);
282
280
  case 14:
283
- return _context4.abrupt("return", Promise.resolve(true));
281
+ return _context4.abrupt("return", result);
284
282
  case 15:
283
+ return _context4.abrupt("return", Promise.resolve(true));
284
+ case 16:
285
285
  case "end":
286
286
  return _context4.stop();
287
287
  }
@@ -28,6 +28,9 @@
28
28
 
29
29
  .@{ant-prefix}-table-content {
30
30
  > table {
31
+ .@{ant-prefix}-table-cell-fix-left-last:after{
32
+ width: 8px;
33
+ }
31
34
  .@{ant-prefix}-table-summary {
32
35
  color: var(--zaui-text, #343434);
33
36
  font-weight: 600;
@@ -141,6 +141,8 @@ var ProCollapse = function ProCollapse(props) {
141
141
  var rect = proCollapseNoTitles[0].getBoundingClientRect();
142
142
  if ((rect === null || rect === void 0 ? void 0 : rect.height) < window.innerHeight - rect.top) {
143
143
  proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + 16, "px)");
144
+ } else {
145
+ proCollapseNoTitles[0].style.minHeight = 'auto';
144
146
  }
145
147
  if (proFooterNode) {
146
148
  proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + proFooterNode.offsetHeight + 16, "px)");
@@ -141,14 +141,10 @@ function useStepTab() {
141
141
  setLoading(false);
142
142
  return _context.abrupt("return", false);
143
143
  case 13:
144
- _context.prev = 13;
145
- setLoading(false);
146
- return _context.finish(13);
147
- case 16:
148
144
  case "end":
149
145
  return _context.stop();
150
146
  }
151
- }, _callee, null, [[1, 9, 13, 16]]);
147
+ }, _callee, null, [[1, 9]]);
152
148
  }));
153
149
  }, []);
154
150
  // 注册步骤处理函数
@@ -261,7 +257,7 @@ function useStepTab() {
261
257
  case 0:
262
258
  handler = handlesState[activeKey];
263
259
  if (!handler) {
264
- _context4.next = 14;
260
+ _context4.next = 15;
265
261
  break;
266
262
  }
267
263
  _context4.next = 4;
@@ -269,29 +265,33 @@ function useStepTab() {
269
265
  case 4:
270
266
  result = _context4.sent;
271
267
  if (!(result && autoNext)) {
272
- _context4.next = 11;
268
+ _context4.next = 12;
273
269
  break;
274
270
  }
275
271
  // 只有当activeKey能转换为数字时才执行自动跳转
276
272
  currentKeyNum = Number(activeKey);
277
273
  if ((0, _lodash.isNaN)(currentKeyNum)) {
278
- _context4.next = 11;
274
+ _context4.next = 12;
279
275
  break;
280
276
  }
281
- nextKey = String(currentKeyNum + 1); // 自动跳转到下一个tab
282
- _context4.next = 11;
283
- return setCheckActiveKey(nextKey);
284
- case 11:
277
+ nextKey = String(currentKeyNum + 1);
278
+ if (Number(nextKey) > queueSteps) {
279
+ nextKey = String(queueSteps);
280
+ }
281
+ // 自动跳转到下一个tab
282
+ _context4.next = 12;
283
+ return setCheckActiveKey(nextKey, false);
284
+ case 12:
285
285
  if (!(result === false)) {
286
- _context4.next = 13;
286
+ _context4.next = 14;
287
287
  break;
288
288
  }
289
289
  return _context4.abrupt("return", Promise.reject());
290
- case 13:
291
- return _context4.abrupt("return", result);
292
290
  case 14:
293
- return _context4.abrupt("return", Promise.resolve(true));
291
+ return _context4.abrupt("return", result);
294
292
  case 15:
293
+ return _context4.abrupt("return", Promise.resolve(true));
294
+ case 16:
295
295
  case "end":
296
296
  return _context4.stop();
297
297
  }
@@ -28,6 +28,9 @@
28
28
 
29
29
  .@{ant-prefix}-table-content {
30
30
  > table {
31
+ .@{ant-prefix}-table-cell-fix-left-last:after{
32
+ width: 8px;
33
+ }
31
34
  .@{ant-prefix}-table-summary {
32
35
  color: var(--zaui-text, #343434);
33
36
  font-weight: 600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.0",
3
+ "version": "3.13.1-beta.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",