提交 2012e58f 编写于 作者: KK's avatar KK

滑动界面行为

上级 73fd4216
......@@ -726,22 +726,7 @@
$event.stopPropagation();
this.selectedArray = [];
this.selectedArray.push(item);
<#if ctrl.getPSDEUIActionGroup()?? && ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()??>
<#assign details = ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()>
<#list details as detail>
if (Object.is(tag, '${detail.getName()}')) {
this.mdctrl_${detail.getName()}_click();
}
</#list>
</#if>
<#if ctrl.getPSDEUIActionGroup2()?? && ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()??>
<#assign details = ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()>
<#list details as detail>
if (Object.is(tag, '${detail.getName()}')) {
this.mdctrl_${detail.getName()}_click();
}
</#list>
</#if>
this.$emit("mdctrl_click",item,tag);
let curr :any = this.$refs[item.srfkey];
curr[0].closeOpened();
}
......
......@@ -13,6 +13,7 @@
:uiActions="UIActions"
<#if view.getViewType?? && view.getViewType()?? && view.getViewType() == 'DEMOBMDVIEW' || view.getViewType() == 'DEMOBMDVIEW9'>
:showCheack="showCheack"
@mdctrl_click="mdctrl_click"
@showCheackChange="showCheackChange"
</#if>
:isTempMode="<#if ctrl.isTempMode?? && ctrl.isTempMode()??>${ctrl.isTempMode()?c}</#if>"
......
......@@ -157,8 +157,44 @@
}
/**
* 部件滑动行为逻辑
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public mdctrl_click(item:any,tag:string){
<#if mdctrl.getPSDEUIActionGroup()?? && ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()??>
<#assign details = ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()>
<#list details as detail>
if (Object.is(tag, '${detail.getName()}')) {
this.mdctrl_${detail.getName()}_click();
}
</#list>
</#if>
<#if mdctrl.getPSDEUIActionGroup2()?? && ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()??>
<#assign details = ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()>
<#list details as detail>
if (Object.is(tag, '${detail.getName()}')) {
this.mdctrl_${detail.getName()}_click();
}
</#list>
</#if>
}
/**
* 获取部件数据
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public getDatas(){
let xData :any= this.$refs.mdctrl
if (xData.getDatas && xData.getDatas instanceof Function) {
return [...xData.getDatas()];
}
return [];
}
<#if !mdctrl.isNoSort()>
<#assign state = false />
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册