0
我在我的離子2頁腳有一個按鈕。它推動滑動確定,但不是彈出和後退過渡。它消失然後再現並且看起來不太好。我如何才能讓它像前向轉換那樣滑動?導航控制器彈出。工具欄按鈕消失,然後重新出現方向倒退。離子2
<ion-footer class="has-back-btn">
<ion-toolbar class="no-padding transparent">
<ion-buttons start>
<button class="back-btn" tappable (click)="goBack()" ion-button icon-left>
<i class="fa fa-chevron-left " aria-hidden="true"></i> Back
</button>
</ion-buttons>
</ion-toolbar>
</ion-footer>
enter code here
goBack() {
var navOptions = {
animation: 'ios-transition',
direction: back,
animate: true,
};
if(this.isModal == true){
this.navCtrl.pop();
}else{
this.navCtrl.pop(navOptions);
}
}
請分享一些截圖。 –
我已經更新了屏幕截圖。 –