mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
zIndex views
This commit is contained in:
@@ -511,6 +511,10 @@ export class ViewController extends Ion {
|
||||
util.array.remove(this.items, itemOrIndex);
|
||||
}
|
||||
|
||||
indexOf(item) {
|
||||
return this.items.indexOf(item);
|
||||
}
|
||||
|
||||
length() {
|
||||
return this.items.length;
|
||||
}
|
||||
|
||||
@@ -170,6 +170,10 @@ export class ViewItem {
|
||||
this.instance._viewItem = this;
|
||||
}
|
||||
|
||||
get index() {
|
||||
return (this.viewCtrl ? this.viewCtrl.indexOf(this) : -1);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
for (let i = 0; i < this.disposals.length; i++) {
|
||||
this.disposals[i]();
|
||||
|
||||
Reference in New Issue
Block a user