提交 18c4e998 编写于 作者: KK's avatar KK

上下文菜单调用方式调整

上级 cb89aea8
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</template> </template>
</ion-radio-group> </ion-radio-group>
</#if> </#if>
<app-mob-context-menu :value="contextMenuShowStatus" @change="(val)=>{this.contextMenuShowStatus=val}"> <app-mob-context-menu ref="contextmenu" :value="contextMenuShowStatus" @change="(val)=>{this.contextMenuShowStatus=val}">
<div slot="content" > <div slot="content" >
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
......
...@@ -177,7 +177,7 @@ import { Util } from '@ibiz-core/utils' ...@@ -177,7 +177,7 @@ import { Util } from '@ibiz-core/utils'
* *
* @param data 节点数据 * @param data 节点数据
* @param event 事件源 * @param event 事件源
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof DocLibTreeProductMobBase
*/ */
public showContext(data:any,event:any){ public showContext(data:any,event:any){
let _this:any = this; let _this:any = this;
...@@ -199,7 +199,7 @@ import { Util } from '@ibiz-core/utils' ...@@ -199,7 +199,7 @@ import { Util } from '@ibiz-core/utils'
}) })
} }
if(flag){ if(flag){
(_this.$refs[data.id] as any).showContextMenu(event.clientX, event.clientY); (_this.$refs.contextmenu as any).showContextMenu();
} }
}); });
} }
...@@ -900,6 +900,11 @@ import { Util } from '@ibiz-core/utils' ...@@ -900,6 +900,11 @@ import { Util } from '@ibiz-core/utils'
} }
/**
* 树前端搜索
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public webLoad(query:string){ public webLoad(query:string){
let reNodes:any = []; let reNodes:any = [];
for (let index = 0; index < this.nodes.length; index++) { for (let index = 0; index < this.nodes.length; index++) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册