提交 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>
<#if ctrl.getControlType()??>
<#if ctrl.getHookEventNames()??>
<#list ctrl.getHookEventNames() as eventName>
/**
* ${ctrl.name} 部件 ${eventName?lower_case} 事件
*
......@@ -562,28 +561,37 @@
* @memberof ${srfclassname('${view.name}')}Base
*/
public ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if ctrl.getPSControlLogics(eventName)??>
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
<#if ctrl.getPSControlLogics(eventName)??>
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
this.${ctrlLogic.getPSAppViewEngine().getName()}.onCtrlEvent('${ctrl.name}', '${eventName?lower_case}', $event);
<#else>
<#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0>
<#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);
}
<#else>
<#else>
this.${ctrlLogic.name}($event, '', $event2);
</#if>
</#if>
</#list>
</#if>
</#if>
</#if>
</#if>
</#list>
</#if>
}
</#list>
</#if>
</#if>
</#list>
</#if>
</#if>
</#list>
</#if>
</#if>
<#if view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as logic>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册