mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
fix: renderer-core 在非设计渲染态时, 不应处理 hidden 属性
This commit is contained in:
parent
67a69ea6cb
commit
7857096c0f
@ -365,7 +365,7 @@ export default function baseRenererFactory() {
|
|||||||
if (!isSchema(schema)) return null;
|
if (!isSchema(schema)) return null;
|
||||||
let Comp = components[schema.componentName] || engine.getNotFoundComponent();
|
let Comp = components[schema.componentName] || engine.getNotFoundComponent();
|
||||||
|
|
||||||
if (schema.hidden) {
|
if (schema.hidden && engine?.props?.designMode) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -63,6 +63,7 @@ export interface JSSlot {
|
|||||||
// 函数的入参
|
// 函数的入参
|
||||||
params?: string[];
|
params?: string[];
|
||||||
value?: NodeData[] | NodeData;
|
value?: NodeData[] | NodeData;
|
||||||
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface JSBlock {
|
export interface JSBlock {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user