@blocklet/pages-kit-block-studio 0.4.149 → 0.4.151
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.
|
@@ -383,8 +383,10 @@ function Layout({ loadState, loadedData }) {
|
|
|
383
383
|
return null;
|
|
384
384
|
}
|
|
385
385
|
return ((0, jsx_runtime_1.jsx)(material_1.ListItem, { disablePadding: true, children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { selected: currentPage.pageId === route, onClick: () => {
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
if (route !== currentPage.pageId) {
|
|
387
|
+
navigate(route);
|
|
388
|
+
state.iframeLoaded = false;
|
|
389
|
+
}
|
|
388
390
|
}, sx: {
|
|
389
391
|
borderRadius: 1,
|
|
390
392
|
mb: 1,
|
|
@@ -579,10 +581,19 @@ function Layout({ loadState, loadedData }) {
|
|
|
579
581
|
'& .MuiListItem-root': {
|
|
580
582
|
pointerEvents: notSelectedBlock ? 'none' : 'auto',
|
|
581
583
|
opacity: notSelectedBlock ? 0.5 : 1,
|
|
582
|
-
backdropFilter: notSelectedBlock ? 'blur(10px) !important' : 'none',
|
|
583
584
|
userSelect: notSelectedBlock ? 'none' : 'auto',
|
|
585
|
+
filter: notSelectedBlock ? 'blur(5px)' : 'none',
|
|
584
586
|
},
|
|
585
|
-
}, children: [
|
|
587
|
+
}, children: [notSelectedBlock && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
588
|
+
position: 'absolute',
|
|
589
|
+
top: 0,
|
|
590
|
+
left: 0,
|
|
591
|
+
right: 0,
|
|
592
|
+
bottom: 0,
|
|
593
|
+
display: 'flex',
|
|
594
|
+
justifyContent: 'center',
|
|
595
|
+
alignItems: 'center',
|
|
596
|
+
}, 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.selectBlockAndContinue') }) }) })), (0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%' }, children: (0, jsx_runtime_1.jsx)(components_1.BasicInfo, { config: state.metadata }) }) }), (0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: '100%' }, children: [(0, jsx_runtime_1.jsx)(components_1.PropertiesConfig, { config: state.metadata, currentLocale: locale, defaultLocale: defaultLocale, allComponents: mergedAllBlocks, onUpdateConfig: (updater) => {
|
|
586
597
|
updater(state.metadata);
|
|
587
598
|
}, useI18nEditor: false }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "column", spacing: 1, sx: { mt: 1 }, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", size: "small", color: "primary", onClick: async () => {
|
|
588
599
|
try {
|
|
@@ -856,6 +867,7 @@ function CreateResource({ open, onClose }) {
|
|
|
856
867
|
// 这里我们在运行时扩展 translations 对象,而不是修改源文件
|
|
857
868
|
if (!locales_1.translations.en.themeTranslations) {
|
|
858
869
|
locales_1.translations.en.themeTranslations = {
|
|
870
|
+
selectBlockAndContinue: 'Select a component and continue',
|
|
859
871
|
search: 'Search Components...',
|
|
860
872
|
createNewBlock: 'Create New Component',
|
|
861
873
|
name: 'Name',
|
|
@@ -904,6 +916,7 @@ if (!locales_1.translations.en.themeTranslations) {
|
|
|
904
916
|
}
|
|
905
917
|
if (!locales_1.translations.zh.themeTranslations) {
|
|
906
918
|
locales_1.translations.zh.themeTranslations = {
|
|
919
|
+
selectBlockAndContinue: '选择一个组件并继续',
|
|
907
920
|
search: '搜索组件...',
|
|
908
921
|
createNewBlock: '创建新组件',
|
|
909
922
|
name: '名称',
|