mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(config): set the properties for each mode and add defaults
closes #6132
This commit is contained in:
@@ -232,8 +232,8 @@ export class Tabs extends Ion {
|
||||
super(_elementRef);
|
||||
this.parent = parent;
|
||||
this.id = ++tabIds;
|
||||
this.subPages = _config.getBoolean('tabSubPages');
|
||||
this._useHighlight = _config.getBoolean('tabbarHighlight');
|
||||
this.subPages = _config.getBoolean('tabSubPages', false);
|
||||
this._useHighlight = _config.getBoolean('tabbarHighlight', false);
|
||||
this._sbPadding = _config.getBoolean('statusbarPadding', false);
|
||||
|
||||
if (parent) {
|
||||
|
||||
@@ -37,8 +37,11 @@ Config.setModeConfig('ios', {
|
||||
|
||||
spinner: 'ios',
|
||||
|
||||
tabbarHighlight: false,
|
||||
tabbarPlacement: 'bottom',
|
||||
|
||||
tabSubPages: false,
|
||||
|
||||
toastEnter: 'toast-slide-in',
|
||||
toastLeave: 'toast-slide-out',
|
||||
});
|
||||
@@ -72,6 +75,7 @@ Config.setModeConfig('md', {
|
||||
|
||||
pickerEnter: 'picker-slide-in',
|
||||
pickerLeave: 'picker-slide-out',
|
||||
pickerRotateFactor: 0,
|
||||
|
||||
popoverEnter: 'popover-md-pop-in',
|
||||
popoverLeave: 'popover-md-pop-out',
|
||||
@@ -116,6 +120,7 @@ Config.setModeConfig('wp', {
|
||||
|
||||
pickerEnter: 'picker-slide-in',
|
||||
pickerLeave: 'picker-slide-out',
|
||||
pickerRotateFactor: 0,
|
||||
|
||||
popoverEnter: 'popover-md-pop-in',
|
||||
popoverLeave: 'popover-md-pop-out',
|
||||
|
||||
Reference in New Issue
Block a user