提交 1077b54f 编写于 作者: KK's avatar KK

分页部件调整

上级 87987de1
......@@ -120,7 +120,7 @@
*/
public mounted(){
if(this.items.length>0){
this.isShowSlot?this.tabPanelClick({detail:{tab:this.items[0].name}}):this.items.length>1?this.tabPanelClick({detail:{tab:this.items[1].name}}):()=>{};
this.isShowSlot?this.tabPanelClick({detail:{tab:this.items[0].name}},true):this.items.length>1?this.tabPanelClick({detail:{tab:this.items[1].name}},true):()=>{};
}
}
......@@ -259,12 +259,14 @@
* @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public tabPanelClick($event: any): void {
public tabPanelClick($event: any,isMounted :boolean= false): void {
const item = this.getItem($event);
if (Object.is(item.id, this.selection.id)) {
return;
}
this.$emit('selectionchange', [item]);
if(!isMounted){
this.$emit('selectionchange', [item]);
}
let localNavParam:any = this.initNavParam(item);
const refview = this.getDRTabItem({ nodetype: item.id });
this.selection = {};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册