提交 041c612e 编写于 作者: KK's avatar KK

Revert "滑动界面行为"

This reverts commit 2012e58f.
上级 1d7afee1
...@@ -726,7 +726,22 @@ ...@@ -726,7 +726,22 @@
$event.stopPropagation(); $event.stopPropagation();
this.selectedArray = []; this.selectedArray = [];
this.selectedArray.push(item); this.selectedArray.push(item);
this.$emit("mdctrl_click",item,tag); <#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>
let curr :any = this.$refs[item.srfkey]; let curr :any = this.$refs[item.srfkey];
curr[0].closeOpened(); curr[0].closeOpened();
} }
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
:uiActions="UIActions" :uiActions="UIActions"
<#if view.getViewType?? && view.getViewType()?? && view.getViewType() == 'DEMOBMDVIEW' || view.getViewType() == 'DEMOBMDVIEW9'> <#if view.getViewType?? && view.getViewType()?? && view.getViewType() == 'DEMOBMDVIEW' || view.getViewType() == 'DEMOBMDVIEW9'>
:showCheack="showCheack" :showCheack="showCheack"
@mdctrl_click="mdctrl_click"
@showCheackChange="showCheackChange" @showCheackChange="showCheackChange"
</#if> </#if>
:isTempMode="<#if ctrl.isTempMode?? && ctrl.isTempMode()??>${ctrl.isTempMode()?c}</#if>" :isTempMode="<#if ctrl.isTempMode?? && ctrl.isTempMode()??>${ctrl.isTempMode()?c}</#if>"
......
...@@ -157,44 +157,8 @@ ...@@ -157,44 +157,8 @@
} }
/**
* 部件滑动行为逻辑
*
* @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()> <#if !mdctrl.isNoSort()>
<#assign state = false /> <#assign state = false />
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册