@zat-design/sisyphus-react 3.5.1-beta.16 → 3.5.1-beta.17

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.
@@ -52,9 +52,9 @@ var OpenMenu = function OpenMenu(props) {
52
52
  }
53
53
  var menuDeep = function menuDeep(data) {
54
54
  data.forEach(function (item) {
55
- var _item$children;
55
+ var _item$keyIdPath, _item$keyIdPath2, _item$children;
56
56
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
57
- var isFirstMenu = item.keyIdPath.length === 1 || sideMenu && item.keyIdPath.length === 2;
57
+ var isFirstMenu = ((_item$keyIdPath = item.keyIdPath) === null || _item$keyIdPath === void 0 ? void 0 : _item$keyIdPath.length) === 1 || sideMenu && ((_item$keyIdPath2 = item.keyIdPath) === null || _item$keyIdPath2 === void 0 ? void 0 : _item$keyIdPath2.length) === 2;
58
58
  // 第一级菜单显示icon
59
59
  item.label = _jsxs("div", {
60
60
  className: classnames({
@@ -58,9 +58,9 @@ var OpenMenu = function OpenMenu(props) {
58
58
  }
59
59
  var menuDeep = function menuDeep(data) {
60
60
  data.forEach(function (item) {
61
- var _item$children;
61
+ var _item$keyIdPath, _item$keyIdPath2, _item$children;
62
62
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
63
- var isFirstMenu = item.keyIdPath.length === 1 || sideMenu && item.keyIdPath.length === 2;
63
+ var isFirstMenu = ((_item$keyIdPath = item.keyIdPath) === null || _item$keyIdPath === void 0 ? void 0 : _item$keyIdPath.length) === 1 || sideMenu && ((_item$keyIdPath2 = item.keyIdPath) === null || _item$keyIdPath2 === void 0 ? void 0 : _item$keyIdPath2.length) === 2;
64
64
  // 第一级菜单显示icon
65
65
  item.label = (0, _jsxRuntime.jsxs)("div", {
66
66
  className: (0, _classnames2.default)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.5.1-beta.16",
3
+ "version": "3.5.1-beta.17",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",