fix: 形状配置渲染问题,当前形状如果没有特殊配置及全局配置时,不进行渲染操作

This commit is contained in:
qinoy 2024-10-31 15:16:35 +08:00
parent 149fe66ed5
commit 9237bbf35b
3 changed files with 9 additions and 3 deletions

View File

@ -4239,7 +4239,10 @@ var Designer = {
var u = [p];
this.renderPath(n, q, u);
this.renderText(q, t);
this.renderDataAttributes(q, t);
let tmpCommonShapeConfig = Utils.copy(Model.define.commonShapeConfig);
if (specialShapeConfig !== undefined || tmpCommonShapeConfig[key] !== undefined){ // 如果特殊与全局都没有配置,则不显示
this.renderDataAttributes(q, t);
}
this.renderTitleShow(q, t);
Designer.painter.renderShapeLink(o, q); //节点链接
Designer.painter.renderSahpeAttachment(o, q); //节点附件

View File

@ -4180,7 +4180,10 @@ var Designer = {
var u = [p];
this.renderPath(n, q, u);
this.renderText(q, t);
this.renderDataAttributes(q, t);
let tmpCommonShapeConfig = Utils.copy(Model.define.commonShapeConfig);
if (specialShapeConfig !== undefined || tmpCommonShapeConfig[key] !== undefined){ // 如果特殊与全局都没有配置,则不显示
this.renderDataAttributes(q, t);
}
Designer.painter.renderShapeLink(o, q); //节点链接
Designer.painter.renderSahpeAttachment(o, q); //节点附件
if (q.attributesJsonArray != undefined && q.attributesJsonArray.length > 0) {