ionic3解决多个ion-content push pop动画效果问题(含有侧边栏)

//都是在原有基础上添加下面
import {ViewController} from 'ionic-angular';
constructor(private viewCtrl: ViewController) {
  this.patchViewControllerContent(this.viewCtrl);
}

patchViewControllerContent(viewCtrl: ViewController) {
const _setIONContent = viewCtrl._setIONContent;
viewCtrl._setIONContent = (...args) => {
if (!viewCtrl.getIONContent()) {
_setIONContent.apply(viewCtrl, args);
}
};

const _setIONContentRef = viewCtrl._setIONContentRef;
viewCtrl._setIONContentRef = (...args) => {
if (!viewCtrl.getIONContentRef()) {
_setIONContentRef.apply(viewCtrl, args);
}
};
}
 
posted @ 2019-10-10 16:43  进军码农  阅读(335)  评论(0编辑  收藏  举报