mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +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;
|
||||
let Comp = components[schema.componentName] || engine.getNotFoundComponent();
|
||||
|
||||
if (schema.hidden) {
|
||||
if (schema.hidden && engine?.props?.designMode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@ export interface JSSlot {
|
||||
// 函数的入参
|
||||
params?: string[];
|
||||
value?: NodeData[] | NodeData;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface JSBlock {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user