shineout 3.9.3-beta.12 → 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.12'
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.12');
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);
@@ -74717,7 +74722,7 @@ var upload_interface = __webpack_require__(8821);
74717
74722
 
74718
74723
 
74719
74724
  /* harmony default export */ var src_0 = ({
74720
- version: '3.9.3-beta.12'
74725
+ version: '3.9.3-beta.13'
74721
74726
  });
74722
74727
  }();
74723
74728
  /******/ return __webpack_exports__;