提交 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} 事件
* *
...@@ -562,28 +561,37 @@ ...@@ -562,28 +561,37 @@
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) { public ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if ctrl.getPSControlLogics(eventName)??> <#if ctrl.getPSControlLogics(eventName)??>
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic> <#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#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>
<#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0> <#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()}')) { if (Object.is($event.tag, '${ctrlLogic.getEventArg()}')) {
this.${ctrlLogic.name}(null, '', $event2); this.${ctrlLogic.name}(null, '', $event2);
} }
<#else> <#else>
this.${ctrlLogic.name}($event, '', $event2); this.${ctrlLogic.name}($event, '', $event2);
</#if> </#if>
</#if> </#if>
</#list> </#if>
</#if> </#list>
</#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册