mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
select tabs update
This commit is contained in:
@ -190,24 +190,6 @@ export class NavBase {
|
||||
return promise;
|
||||
}
|
||||
|
||||
select(enteringItem, opts = {}) {
|
||||
if (!enteringItem || !enteringItem.instance || this.isTransitioning()) {
|
||||
return;
|
||||
}
|
||||
|
||||
enteringItem.instance.loadInitial();
|
||||
|
||||
opts.animation = 'none';
|
||||
|
||||
let leavingItem = this.getActive() || new NavItem();
|
||||
leavingItem.shouldDestroy = false;
|
||||
leavingItem.shouldCache = true;
|
||||
leavingItem.willCache();
|
||||
|
||||
this.transition(enteringItem, leavingItem, opts, () => {
|
||||
});
|
||||
}
|
||||
|
||||
transition(enteringItem, leavingItem, opts, callback) {
|
||||
if (!enteringItem || enteringItem === leavingItem) {
|
||||
return callback();
|
||||
|
Reference in New Issue
Block a user