shineout 3.9.7-beta.5 → 3.9.7-beta.7

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.7-beta.5'
525
+ version: '3.9.7-beta.7'
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.7-beta.5');
12404
+ /* harmony default export */ var version = ('3.9.7-beta.7');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -21744,7 +21744,11 @@ var menuStyle = {
21744
21744
  transform: 'rotate(90deg)'
21745
21745
  }
21746
21746
  },
21747
- icon: {},
21747
+ icon: {
21748
+ '& > svg': {
21749
+ width: '100%'
21750
+ }
21751
+ },
21748
21752
  expandHover: {
21749
21753
  '&:hover': {
21750
21754
  backgroundColor: src.menuExpandHoverBackgroundColor
@@ -40857,7 +40861,7 @@ var useTree = function useTree(props) {
40857
40861
  var indexPath = [].concat(toConsumableArray_default()(index), [i]);
40858
40862
  ids.push(id);
40859
40863
  var children = [];
40860
- if (Array.isArray(item[childrenKey])) {
40864
+ if (item && Array.isArray(item[childrenKey])) {
40861
40865
  var _children = initData(item[childrenKey], [].concat(toConsumableArray_default()(path), [id]), mode === MODE.MODE_4 ? disabled : _isDisabled, indexPath, level + 1, id);
40862
40866
  if (_children) children = _children;
40863
40867
  }
@@ -40893,7 +40897,7 @@ var useTree = function useTree(props) {
40893
40897
  result.push(node);
40894
40898
  }
40895
40899
  }
40896
- if (Array.isArray(item[childrenKey])) {
40900
+ if (item && Array.isArray(item[childrenKey])) {
40897
40901
  initFlatData(item[childrenKey], [].concat(toConsumableArray_default()(path), [id]), level + 1, id, result);
40898
40902
  }
40899
40903
  }
@@ -75049,7 +75053,7 @@ var upload_interface = __webpack_require__(8821);
75049
75053
 
75050
75054
 
75051
75055
  /* harmony default export */ var src_0 = ({
75052
- version: '3.9.7-beta.5'
75056
+ version: '3.9.7-beta.7'
75053
75057
  });
75054
75058
  }();
75055
75059
  /******/ return __webpack_exports__;