提交 a5514d16 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc

上级 0db009c0
<a-button class="app-form-button app-form-button-${item.getName()}" type="primary" style="<#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if>" @click="${item.getName()}_click($event)">
<a-button class="app-form-button app-form-button-${item.getName()}" type="primary" style="<#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if>" @click="button_click($event,'${item.getCaption()}')">
<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)><i className="${img.getCssClass()}"></i></#if></#if>
<#if item.isShowCaption()><span ><#if item.getCaptionItemName()?? && item.getCaptionItemName()?length gt 0>this.data.${item.getCaptionItemName()}<#else>${item.getCaption()}</#if></span></#if>
</a-button>
\ No newline at end of file
......@@ -114,20 +114,14 @@ export default {
});
});
},
<#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#if logic.getLogicTrigger() == "CUSTOM" || logic.getLogicTrigger() == "CTRLEVENT">
/**
* ${logic.name?lower_case} 事件
* 按钮点击事件
*
*/
${logic.name}(){
alert("触发了${logic.name}点击事件");
},
</#if>
</#list>
</#if>
button_click($event,caption{
alert("点击了"+caption+"事件");
}
}
};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册