@plasmicpkgs/plasmic-rich-components 1.0.152 → 1.0.153
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
CHANGED
|
@@ -1037,6 +1037,7 @@ function RichLayout(_a) {
|
|
|
1037
1037
|
"logoElement"
|
|
1038
1038
|
]);
|
|
1039
1039
|
var _a2, _b2, _c, _d, _e;
|
|
1040
|
+
const $ctx = host.useDataEnv();
|
|
1040
1041
|
const isClient = useIsClient();
|
|
1041
1042
|
const [pathname, setPathname] = React.useState(void 0);
|
|
1042
1043
|
React.useEffect(() => {
|
|
@@ -1044,7 +1045,7 @@ function RichLayout(_a) {
|
|
|
1044
1045
|
setPathname(location.pathname);
|
|
1045
1046
|
}
|
|
1046
1047
|
}, []);
|
|
1047
|
-
const
|
|
1048
|
+
const PlasmicLink = (_b2 = (_a2 = host.usePlasmicLink) == null ? void 0 : _a2()) != null ? _b2 : AnchorLink;
|
|
1048
1049
|
const { token } = antd.theme.useToken();
|
|
1049
1050
|
const origTextColor = token.colorTextBase;
|
|
1050
1051
|
function getNavBgColor() {
|
|
@@ -1163,9 +1164,10 @@ function RichLayout(_a) {
|
|
|
1163
1164
|
return footerChildren;
|
|
1164
1165
|
},
|
|
1165
1166
|
onMenuHeaderClick: (e) => console.log(e),
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
selectedKeys: [$ctx == null ? void 0 : $ctx.pagePath],
|
|
1168
|
+
menuItemRender: (item, dom) => /* @__PURE__ */ React__default.default.createElement(PlasmicLink, { href: item.path }, dom),
|
|
1169
|
+
headerTitleRender: (logoEl, title, _) => {
|
|
1170
|
+
return /* @__PURE__ */ React__default.default.createElement(PlasmicLink, { href: rootUrl }, logoEl, title);
|
|
1169
1171
|
}
|
|
1170
1172
|
}),
|
|
1171
1173
|
children
|