fix: renderer-core 在非设计渲染态时, 不应处理 hidden 属性

This commit is contained in:
力皓 2021-03-22 09:52:36 +08:00
parent 67a69ea6cb
commit 7857096c0f
2 changed files with 2 additions and 1 deletions

View File

@ -365,7 +365,7 @@ export default function baseRenererFactory() {
if (!isSchema(schema)) return null;
let Comp = components[schema.componentName] || engine.getNotFoundComponent();
if (schema.hidden) {
if (schema.hidden && engine?.props?.designMode) {
return null;
}

View File

@ -63,6 +63,7 @@ export interface JSSlot {
// 函数的入参
params?: string[];
value?: NodeData[] | NodeData;
name?: string;
}
export interface JSBlock {