shineout 3.9.3-beta.11 → 3.9.3-beta.13

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.3-beta.11'
525
+ version: '3.9.3-beta.13'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
12401
12401
  };
12402
12402
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12403
12403
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12404
- /* harmony default export */ var version = ('3.9.3-beta.11');
12404
+ /* harmony default export */ var version = ('3.9.3-beta.13');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -44192,7 +44192,12 @@ var useFieldSetConsumer = function useFieldSetConsumer(props) {
44192
44192
  path = _React$useContext.path,
44193
44193
  validateFieldSet = _React$useContext.validateFieldSet;
44194
44194
  var bind = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
44195
- return path ? (props.bind || []).concat(path) : props.bind;
44195
+ var _bind = path ? (props.bind || []).concat(path) : props.bind;
44196
+ // 只有当路径中包含超过1个索引时才需要去掉最后一个索引
44197
+ return _bind === null || _bind === void 0 ? void 0 : _bind.map(function (b) {
44198
+ var indexCount = (b.match(/\[\d+\]/g) || []).length;
44199
+ return indexCount > 1 ? b.replace(/\[\d+\]$/, '') : b;
44200
+ });
44196
44201
  }, [path, props.bind]);
44197
44202
  var name = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
44198
44203
  return extendName(path, props.name);
@@ -58091,12 +58096,6 @@ var Tree = function Tree(props) {
58091
58096
  if (getDatum) getDatum(datum);
58092
58097
  context.mounted = true;
58093
58098
  }, []);
58094
- var providerValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
58095
- return objectSpread2_default()(objectSpread2_default()({}, datum), {}, {
58096
- size: props.size,
58097
- leafIcon: leafIcon
58098
- });
58099
- }, [datum, props.size, leafIcon]);
58100
58099
  var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
58101
58100
  fieldId = _useContext.fieldId;
58102
58101
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
@@ -58105,7 +58104,10 @@ var Tree = function Tree(props) {
58105
58104
  id: fieldId
58106
58105
  }, rest), {}, {
58107
58106
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(tree_context_Provider, {
58108
- value: providerValue,
58107
+ value: objectSpread2_default()(objectSpread2_default()({}, datum), {}, {
58108
+ size: props.size,
58109
+ leafIcon: leafIcon
58110
+ }),
58109
58111
  children: renderList()
58110
58112
  })
58111
58113
  }));
@@ -67835,9 +67837,9 @@ function Table(props) {
67835
67837
  return {
67836
67838
  width: width,
67837
67839
  borderSpacing: 0,
67838
- tableLayout: isVirtualColumnEnabled ? 'initial' : 'fixed'
67840
+ tableLayout: 'fixed'
67839
67841
  };
67840
- }, [width, isVirtualColumnEnabled]);
67842
+ }, [width]);
67841
67843
  var renderTable = function renderTable() {
67842
67844
  var _props$summary, _sticky$top, _props$data2;
67843
67845
  var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
@@ -74720,7 +74722,7 @@ var upload_interface = __webpack_require__(8821);
74720
74722
 
74721
74723
 
74722
74724
  /* harmony default export */ var src_0 = ({
74723
- version: '3.9.3-beta.11'
74725
+ version: '3.9.3-beta.13'
74724
74726
  });
74725
74727
  }();
74726
74728
  /******/ return __webpack_exports__;