提交 ec51ce9f 编写于 作者: Mosher's avatar Mosher

update:更新

上级 6e58a9dd
...@@ -548,12 +548,11 @@ ...@@ -548,12 +548,11 @@
</#if> </#if>
} }
<#if view.getPSControls()??> <#if view.getPSControls()??>
<#list view.getPSControls() as ctrl> <#list view.getPSControls() as ctrl>
<#if ctrl.getControlType()??> <#if ctrl.getControlType()??>
<#if ctrl.getHookEventNames()??> <#if ctrl.getHookEventNames()??>
<#list ctrl.getHookEventNames() as eventName> <#list ctrl.getHookEventNames() as eventName>
/** /**
* ${ctrl.name} 部件 ${eventName?lower_case} 事件 * ${ctrl.name} 部件 ${eventName?lower_case} 事件
* *
...@@ -567,6 +566,15 @@ ...@@ -567,6 +566,15 @@
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??> <#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
this.${ctrlLogic.getPSAppViewEngine().getName()}.onCtrlEvent('${ctrl.name}', '${eventName?lower_case}', $event); this.${ctrlLogic.getPSAppViewEngine().getName()}.onCtrlEvent('${ctrl.name}', '${eventName?lower_case}', $event);
<#else> <#else>
<#assign isCtrlEvent = true>
<#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as viewLogic>
<#if viewLogic.getLogicTrigger() == "CTRLEVENT" && viewLogic.name == eventName>
<#assign isCtrlEvent = false>
</#if>
</#list>
</#if>
<#if isCtrlEvent>
<#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0> <#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0>
if (Object.is($event.tag, '${ctrlLogic.getEventArg()}')) { if (Object.is($event.tag, '${ctrlLogic.getEventArg()}')) {
this.${ctrlLogic.name}(null, '', $event2); this.${ctrlLogic.name}(null, '', $event2);
...@@ -575,15 +583,15 @@ ...@@ -575,15 +583,15 @@
this.${ctrlLogic.name}($event, '', $event2); this.${ctrlLogic.name}($event, '', $event2);
</#if> </#if>
</#if> </#if>
</#if>
</#list> </#list>
</#if> </#if>
} }
</#list> </#list>
</#if> </#if>
</#if> </#if>
</#list> </#list>
</#if> </#if>
<#if view.getPSAppViewLogics()??> <#if view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as logic> <#list view.getPSAppViewLogics() as logic>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册