Panel.tsx页面无法正常显示,什么原因???
weiwangda2014 opened this issue · 1 comments
weiwangda2014 commented
return () => (
<>
{contextState.businessObject && contextState.activeBindDefine && (
<>
<div
class="bpmn-panel-shrinkage"
onClick={() => (panelState.shrinkageOff = !panelState.shrinkageOff)}
>
{panelState.shrinkageOff ? (
<i class="el-icon-s-fold" />
) : (
<i class="el-icon-s-unfold" />
)}
</div>
<div class="bpmn-panel" v-show={!panelState.shrinkageOff}>
<div class="title">{bpmnContext.getActiveElementName()}</div>
<ElCollapse class="bpmn-panel-collapse" v-model={panelState.elCollapses}>
{contextState.activeBindDefine.map((groupItem) => {
return (
<ElCollapseItem name={groupItem.name} v-slots={getSlotObject(groupItem)} />
);
})}
</ElCollapse>
</div>
</>
)}
</>
);
这部分代码
contextState.activeBindDefine永远是NULL,其结果返回也是NULL,导致panel部分不能正常显示。
Yiuman commented
点击界面或者节点就会显示了