@apexcura/ui-components 0.0.16-Beta44 → 0.0.16-Beta46
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 +14 -18
- package/dist/index.mjs +14 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -793,24 +793,20 @@ var Sidebar = (props) => {
|
|
|
793
793
|
onClick: () => handleChange(item)
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
childItems,
|
|
811
|
-
eachItem
|
|
812
|
-
);
|
|
813
|
-
});
|
|
796
|
+
function mapItems(items2, parentKey = "") {
|
|
797
|
+
return items2.map((eachItem, index) => {
|
|
798
|
+
const key = parentKey ? `${parentKey}-${index}` : index.toString();
|
|
799
|
+
const childItems = eachItem.items ? mapItems(eachItem.items, key) : void 0;
|
|
800
|
+
return getItem(
|
|
801
|
+
eachItem.label,
|
|
802
|
+
key,
|
|
803
|
+
eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: eachItem.icon, alt: "" }) : null,
|
|
804
|
+
childItems,
|
|
805
|
+
eachItem
|
|
806
|
+
);
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
const items = props.items ? mapItems(props.items) : [];
|
|
814
810
|
return /* @__PURE__ */ import_react16.default.createElement(import_antd11.Layout, { style: { minHeight: "100vh" } }, /* @__PURE__ */ import_react16.default.createElement(
|
|
815
811
|
Sider,
|
|
816
812
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -722,24 +722,20 @@ var Sidebar = (props) => {
|
|
|
722
722
|
onClick: () => handleChange(item)
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
childItems,
|
|
740
|
-
eachItem
|
|
741
|
-
);
|
|
742
|
-
});
|
|
725
|
+
function mapItems(items2, parentKey = "") {
|
|
726
|
+
return items2.map((eachItem, index) => {
|
|
727
|
+
const key = parentKey ? `${parentKey}-${index}` : index.toString();
|
|
728
|
+
const childItems = eachItem.items ? mapItems(eachItem.items, key) : void 0;
|
|
729
|
+
return getItem(
|
|
730
|
+
eachItem.label,
|
|
731
|
+
key,
|
|
732
|
+
eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ React15.createElement("img", { src: eachItem.icon, alt: "" }) : null,
|
|
733
|
+
childItems,
|
|
734
|
+
eachItem
|
|
735
|
+
);
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
const items = props.items ? mapItems(props.items) : [];
|
|
743
739
|
return /* @__PURE__ */ React15.createElement(Layout, { style: { minHeight: "100vh" } }, /* @__PURE__ */ React15.createElement(
|
|
744
740
|
Sider,
|
|
745
741
|
{
|