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