@blocklet/pages-kit-block-studio 0.5.10 → 0.5.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.
|
@@ -392,7 +392,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
392
392
|
}, children: staticDataInRoute.blockName || routeName }) }) }) }, route));
|
|
393
393
|
})
|
|
394
394
|
.filter(Boolean) })) : (_jsx(Box, { display: "flex", justifyContent: "center", alignItems: "center", height: "100%", children: _jsx(Empty, { children: _jsx(Typography, { variant: "body2", color: "text.secondary", children: t('themeTranslations.noRoutesFound') }) }) }))] }));
|
|
395
|
-
}, [routes, staticData, state.allComponents, state.searchValue, state.draggingSplitPane, locale]);
|
|
395
|
+
}, [routes, staticData, state.allComponents, state.searchValue, state.draggingSplitPane, locale, mode]);
|
|
396
396
|
// 修改 middlePanelContent - iframe 内部监听消息
|
|
397
397
|
const middlePanelContent = useMemo(() => {
|
|
398
398
|
// 如果在iframe内部,添加消息接收逻辑
|
|
@@ -573,6 +573,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
573
573
|
isInsideIframe,
|
|
574
574
|
state.iframeLoaded,
|
|
575
575
|
locale,
|
|
576
|
+
mode,
|
|
576
577
|
]);
|
|
577
578
|
const rightPanelContent = useMemo(() => {
|
|
578
579
|
if (state.draggingSplitPane) {
|
|
@@ -733,6 +734,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
733
734
|
JSON.stringify(mergedPropertiesValues || {}),
|
|
734
735
|
getStaticData,
|
|
735
736
|
state.draggingSplitPane,
|
|
737
|
+
mode,
|
|
736
738
|
]);
|
|
737
739
|
if (isInsideIframe) {
|
|
738
740
|
return middlePanelContent;
|