@flatbiz/pro-layout 5.2.11 → 5.2.12
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/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2548,7 +2548,7 @@ var MenuNoChildrenTextView = function MenuNoChildrenTextView(props) {
|
|
|
2548
2548
|
|
|
2549
2549
|
var Sider = Layout.Sider;
|
|
2550
2550
|
var SiderBar = function SiderBar() {
|
|
2551
|
-
var _layoutCtx$sidebarThe, _layoutCtx$sidebarThe2, _layoutCtx$sidebarThe3, _layoutCtx$sidebarThe4, _layoutCtx$
|
|
2551
|
+
var _layoutCtx$sidebarThe, _layoutCtx$sidebarThe2, _layoutCtx$sidebarThe3, _layoutCtx$sidebarThe4, _layoutCtx$sidebarThe5, _layoutCtx$sidebarThe6, _layoutCtx$sidebarThe7, _layoutCtx$sidebarThe8, _layoutCtx$sidebarThe9, _layoutCtx$sidebarThe0, _layoutCtx$sidebarThe1, _layoutCtx$sidebarThe10, _layoutCtx$sidebarThe11, _layoutCtx$sidebarThe12, _layoutCtx$sidebarThe13;
|
|
2552
2552
|
var _useState = useState(),
|
|
2553
2553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2554
2554
|
searchValue = _useState2[0],
|
|
@@ -2822,13 +2822,14 @@ var SiderBar = function SiderBar() {
|
|
|
2822
2822
|
trailing: false
|
|
2823
2823
|
}),
|
|
2824
2824
|
onMouseEnter = _useDebounceFn.run;
|
|
2825
|
-
console.log('layoutCtx', layoutCtx.opendKeys, (_layoutCtx$siderBarMe2 = layoutCtx.siderBarMenuActiveItem) === null || _layoutCtx$siderBarMe2 === void 0 ? void 0 : _layoutCtx$siderBarMe2.id);
|
|
2826
2825
|
var onChangeTargetKeys = useMemoizedFn(function (activeId) {
|
|
2827
2826
|
var parentsList = treeNodeParentsList(activeId, menusTreeListNew || [], false, {
|
|
2828
2827
|
value: 'id',
|
|
2829
2828
|
children: 'children'
|
|
2830
2829
|
});
|
|
2831
|
-
layoutCtx.onChangeOpendKeys(parentsList)
|
|
2830
|
+
layoutCtx.onChangeOpendKeys(parentsList.map(function (item) {
|
|
2831
|
+
return String(item);
|
|
2832
|
+
}));
|
|
2832
2833
|
});
|
|
2833
2834
|
return /*#__PURE__*/jsxs(Sider, {
|
|
2834
2835
|
theme: "light",
|
|
@@ -2872,8 +2873,8 @@ var SiderBar = function SiderBar() {
|
|
|
2872
2873
|
},
|
|
2873
2874
|
children: /*#__PURE__*/jsx(IconWrapper, {
|
|
2874
2875
|
onClick: function onClick() {
|
|
2875
|
-
var _layoutCtx$
|
|
2876
|
-
var activeId = (_layoutCtx$
|
|
2876
|
+
var _layoutCtx$siderBarMe2, _layoutCtx$opendKeys;
|
|
2877
|
+
var activeId = (_layoutCtx$siderBarMe2 = layoutCtx.siderBarMenuActiveItem) === null || _layoutCtx$siderBarMe2 === void 0 ? void 0 : _layoutCtx$siderBarMe2.id;
|
|
2877
2878
|
if (!activeId) {
|
|
2878
2879
|
layoutCtx.onChangeOpendKeys([]);
|
|
2879
2880
|
return;
|