我在流程流节点中添加了两个按钮(批准,拒绝)。但是我不能点击那个按钮。
有人能帮上忙吗,我们怎么能点击那个按钮?
sap.suite.ui.commons.sample.ProcessFlow
码
<ProcessFlow id="processflow1" scrollable="false" nodePress="onNodePress" foldedCorners="true" nodes="{/nodes}" lanes="{/lanes}">
<nodes>
<ProcessFlowNode id="processflownode1" laneId="{lane}" nodeId="{id}"
title="{title}" titleAbbreviation="{titleAbbreviation}"
children="{children}" state="Neutral" stateText="{stateText}"
texts="{texts}" focused="false" selected="false"
highlighted="false" isTitleClickable="false">
<zoomLevelOneContent>
<m:HBox height="100%" justifyContent="SpaceBetween" renderType="Bare">
<m:Button type="Accept" text="Approve" press="onPress"></m:Button>
<m:Button text="Reject" type="Reject"/>
</m:HBox>
</zoomLevelOneContent>
</ProcessFlowNode>
</nodes>
<lanes>
<ProcessFlowLaneHeader laneId="{id}" iconSrc="{icon}" text="{label}" position="{position}"/>
</lanes>
</ProcessFlow>发布于 2021-01-23 19:24:06
这个特性在ProcessFlowNode中是不可能的。您可以根据需要使用https://sapui5.hana.ondemand.com/sdk/#/api/sap.suite.ui.commons.ProcessFlow%23events/nodePress事件为您的操作打开https://sapui5.hana.ondemand.com/#/api/sap.m.ActionSheet或https://sapui5.hana.ondemand.com/#/api/sap.m.Popover。
有关更多信息,请访问:流程流程SAP设计指南
https://stackoverflow.com/questions/65839744
复制相似问题