提交 473dce79 编写于 作者: zhujiamin's avatar zhujiamin

我的地盘ion-segment 点击切换后刷新部件数据 --fix1

上级 2206df9c
...@@ -100,7 +100,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -100,7 +100,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: '<#list ctrl.getPSControls() as tabviewpanel><#if tabviewpanel_index==0>${tabviewpanel.name}</#if></#list>' }) protected activiedTabViewPanel?: string; @Prop({ default: '<#list ctrl.getPSControls() as tabviewpanel><#if tabviewpanel_index==0>${tabviewpanel.name}</#if></#list>' }) protected activiedTabViewPanel?: string;
/**
* 是否开启点击重新渲染
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
@Prop({ default: true }) public isEnableReRender?:boolean;
/** /**
* vue 生命周期 * vue 生命周期
* *
...@@ -200,13 +208,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -200,13 +208,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
if(panel){ if(panel){
this.viewState.next({ tag: panel, action: this.action, data: {}}); this.viewState.next({ tag: panel, action: this.action, data: {}});
} }
if (panel == 'tabviewpanel4') { if (this.isEnableReRender) {
let tabviewpanel:any = this.$refs.tabviewpanel; if (panel == 'tabviewpanel4') {
tabviewpanel.isActivied = false; let tabviewpanel:any = this.$refs.tabviewpanel;
} tabviewpanel.isActivied = false;
if (panel == 'tabviewpanel') { }
let tabviewpanel4:any = this.$refs.tabviewpanel4; if (panel == 'tabviewpanel') {
tabviewpanel4.isActivied = false; let tabviewpanel4:any = this.$refs.tabviewpanel4;
tabviewpanel4.isActivied = false;
}
} }
}); });
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册