shineout 3.5.5-beta.1 → 3.5.5-beta.3

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/cjs/index.js CHANGED
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5-beta.1'
510
+ version: '3.5.5-beta.3'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5-beta.1');
12043
+ /* harmony default export */ var version = ('3.5.5-beta.3');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -47927,6 +47927,8 @@ var useForm = function useForm(props) {
47927
47927
  return;
47928
47928
  }
47929
47929
  context.submitLock = true;
47930
+ var activeEl = document.activeElement;
47931
+ if (activeEl) activeEl.blur();
47930
47932
  setTimeout(function () {
47931
47933
  // 防止连续点击
47932
47934
  context.submitLock = false;
@@ -47952,16 +47954,17 @@ var useForm = function useForm(props) {
47952
47954
  case 5:
47953
47955
  result = _context.sent;
47954
47956
  if (!(result === true)) {
47955
- _context.next = 10;
47957
+ _context.next = 11;
47956
47958
  break;
47957
47959
  }
47958
47960
  (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
47959
- _context.next = 12;
47961
+ if (activeEl) activeEl.focus();
47962
+ _context.next = 13;
47960
47963
  break;
47961
- case 10:
47964
+ case 11:
47962
47965
  handleSubmitError(result);
47963
47966
  return _context.abrupt("return");
47964
- case 12:
47967
+ case 13:
47965
47968
  case "end":
47966
47969
  return _context.stop();
47967
47970
  }
@@ -60491,9 +60494,6 @@ var virtualScrollerStyle = {
60491
60494
  overflow: 'auto',
60492
60495
  width: '100%'
60493
60496
  };
60494
- var table_emptyStyle = objectSpread2_default()(objectSpread2_default()({}, virtualScrollerStyle), {}, {
60495
- height: 0
60496
- });
60497
60497
  var scrollWrapperStyle = {
60498
60498
  flex: 1,
60499
60499
  minHeight: 0,
@@ -60521,6 +60521,15 @@ var emptyRef = {
60521
60521
  var mirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60522
60522
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60523
60523
  var browserScrollbarWidth = useScrollbarWidth();
60524
+ var emptyStyle = objectSpread2_default()(objectSpread2_default()({}, virtualScrollerStyle), {}, {
60525
+ overflow: 'auto hidden',
60526
+ position: 'absolute',
60527
+ zIndex: 1,
60528
+ bottom: 0,
60529
+ left: 0,
60530
+ right: 0,
60531
+ height: browserScrollbarWidth
60532
+ });
60524
60533
  if (props.fixed) {
60525
60534
  table_devUseWarning.deprecated('fixed', 'virtual', 'Table');
60526
60535
  }
@@ -60865,7 +60874,7 @@ var emptyRef = {
60865
60874
  })
60866
60875
  })), /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
60867
60876
  style: scrollWrapperStyle,
60868
- scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : table_emptyStyle,
60877
+ scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : emptyStyle,
60869
60878
  wrapperRef: scrollRef,
60870
60879
  scrollWidth: width || 1,
60871
60880
  scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
@@ -61114,7 +61123,6 @@ var TabsPanel = function TabsPanel(props) {
61114
61123
  active = _useTabsContext.active,
61115
61124
  lazy = _useTabsContext.lazy,
61116
61125
  setTabs = _useTabsContext.setTabs,
61117
- tabs = _useTabsContext.tabs,
61118
61126
  color = _useTabsContext.color;
61119
61127
  var isActive = active === id;
61120
61128
  var keekAlive = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
@@ -61141,9 +61149,6 @@ var TabsPanel = function TabsPanel(props) {
61141
61149
  return function () {
61142
61150
  // Panel卸载了通知父组件,去销毁相应的TabsHeader
61143
61151
  setTabs(function (prev) {
61144
- var index = prev.findIndex(function (item) {
61145
- return item.id === id;
61146
- });
61147
61152
  return prev.filter(function (item) {
61148
61153
  return item.id !== id;
61149
61154
  });
@@ -67180,7 +67185,7 @@ var upload_interface = __webpack_require__(8821);
67180
67185
 
67181
67186
 
67182
67187
  /* harmony default export */ var src_0 = ({
67183
- version: '3.5.5-beta.1'
67188
+ version: '3.5.5-beta.3'
67184
67189
  });
67185
67190
  }();
67186
67191
  /******/ return __webpack_exports__;