CONTROL.html.ftl 547 字节
Newer Older
yanshaowei's avatar
yanshaowei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<#-- ctrl document  -->
<view_${ctrl.getName()} 
    viewState={this.viewState} 
    loadAction='get'  
    name='${ctrl.name}' 
    ref='${ctrl.name}' 
    <#if ctrl.getHookEventNames()??>
    <#list ctrl.getHookEventNames() as eventName>
    on-${eventName?lower_case}={($event: any) => this.${ctrl.name}_${eventName?lower_case}($event)} 
    </#list>
    </#if>
    on-closeview={($event: any) => this.closeView($event)}>
    <#if view.hasPSControl('form')>
    ${P.getCtrlCode('form', 'CONTROL.html').code}
    </#if>
</view_${ctrl.getName()}>