@blocklet/pages-kit-block-studio 0.4.89 → 0.4.90
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.
|
@@ -456,7 +456,13 @@ function Layout({ loadState, loadedData }) {
|
|
|
456
456
|
Toast.error('生成接口预览失败');
|
|
457
457
|
}
|
|
458
458
|
}, children: "Properties \u2192 Interface" })] })] }) }), state.metadata.id && (_jsx(ListItem, { children: _jsx(Box, { sx: { width: '100%' }, children: _jsx(ParametersConfig, { config: state.metadata, allComponents: mergedAllBlocks, defaultLocale: defaultLocale, locale: locale, propertiesValue: mergedPropertiesValues, onChange: ({ key, value, id, path, ...rest }) => {
|
|
459
|
-
const
|
|
459
|
+
const realPath = [...path, 'data'];
|
|
460
|
+
const property = get(state.metadata, realPath);
|
|
461
|
+
// ensure property exist
|
|
462
|
+
if (!property) {
|
|
463
|
+
Toast.warning(`无法找到属性,请检查在 @metadata.json 中,是否存在该属性: ${realPath.join('.')}`);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
460
466
|
const realValue = parsePropertyValue(property, value.value, {
|
|
461
467
|
locale,
|
|
462
468
|
defaultLocale,
|