mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(itemSliding): enableSlidingItems
This commit is contained in:
@ -77,8 +77,6 @@ export class List extends Ion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enableSlidingItems(shouldEnable) {
|
enableSlidingItems(shouldEnable) {
|
||||||
if (this._init) {
|
|
||||||
|
|
||||||
if (this._enableSliding !== shouldEnable) {
|
if (this._enableSliding !== shouldEnable) {
|
||||||
this._enableSliding = shouldEnable;
|
this._enableSliding = shouldEnable;
|
||||||
|
|
||||||
@ -95,21 +93,11 @@ export class List extends Ion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
closeSlidingItems() {
|
closeSlidingItems() {
|
||||||
this.slidingGesture && this.slidingGesture.closeOpened();
|
this.slidingGesture && this.slidingGesture.closeOpened();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ngAfterViewInit() {
|
|
||||||
this._init = true;
|
|
||||||
if (this._enableSliding) {
|
|
||||||
this.enableSlidingItems(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user