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

update:更新

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