mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00

committed by
mhartington

parent
60adf7bbd8
commit
e56028ef68
@ -353,9 +353,9 @@ export class Slides extends Ion {
|
||||
return this._slidesPerView;
|
||||
}
|
||||
set slidesPerView(val: any) {
|
||||
this._slidesPerView = parseInt(val, 10);
|
||||
this._slidesPerView = val === 'auto' ? 'auto' : parseInt(val, 10);
|
||||
}
|
||||
private _slidesPerView = 1;
|
||||
private _slidesPerView: number|string = 1;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
Reference in New Issue
Block a user