@blocklet/pages-kit-block-studio 0.5.9 → 0.5.11
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.
|
@@ -430,7 +430,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
430
430
|
}, children: staticDataInRoute.blockName || routeName }) }) }) }, route));
|
|
431
431
|
})
|
|
432
432
|
.filter(Boolean) })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", justifyContent: "center", alignItems: "center", height: "100%", children: (0, jsx_runtime_1.jsx)(Empty_1.default, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", color: "text.secondary", children: t('themeTranslations.noRoutesFound') }) }) }))] }));
|
|
433
|
-
}, [routes, staticData, state.allComponents, state.searchValue, state.draggingSplitPane, locale]);
|
|
433
|
+
}, [routes, staticData, state.allComponents, state.searchValue, state.draggingSplitPane, locale, mode]);
|
|
434
434
|
// 修改 middlePanelContent - iframe 内部监听消息
|
|
435
435
|
const middlePanelContent = (0, react_1.useMemo)(() => {
|
|
436
436
|
// 如果在iframe内部,添加消息接收逻辑
|
|
@@ -611,6 +611,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
611
611
|
isInsideIframe,
|
|
612
612
|
state.iframeLoaded,
|
|
613
613
|
locale,
|
|
614
|
+
mode,
|
|
614
615
|
]);
|
|
615
616
|
const rightPanelContent = (0, react_1.useMemo)(() => {
|
|
616
617
|
if (state.draggingSplitPane) {
|
|
@@ -771,6 +772,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
771
772
|
JSON.stringify(mergedPropertiesValues || {}),
|
|
772
773
|
getStaticData,
|
|
773
774
|
state.draggingSplitPane,
|
|
775
|
+
mode,
|
|
774
776
|
]);
|
|
775
777
|
if (isInsideIframe) {
|
|
776
778
|
return middlePanelContent;
|