mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
chore(): remove navbarStyle/tabbarStyle configs
This commit is contained in:
@ -82,8 +82,7 @@ class ToolbarBackground {
|
||||
'class': 'toolbar'
|
||||
},
|
||||
inputs: [
|
||||
'hideBackButton',
|
||||
'navbarStyle'
|
||||
'hideBackButton'
|
||||
],
|
||||
directives: [BackButton, BackButtonText, Icon, ToolbarBackground]
|
||||
})
|
||||
@ -100,11 +99,6 @@ export class Navbar extends ToolbarBase {
|
||||
this.app = app;
|
||||
this.renderer = renderer;
|
||||
|
||||
let navbarStyle = config.get('navbarStyle');
|
||||
if (navbarStyle) {
|
||||
renderer.setElementAttribute(elementRef, navbarStyle, '');
|
||||
}
|
||||
|
||||
viewCtrl && viewCtrl.setNavbar(this);
|
||||
|
||||
this.bbIcon = config.get('backButtonIcon');
|
||||
@ -120,10 +114,6 @@ export class Navbar extends ToolbarBase {
|
||||
if (typeof hideBackButton === 'string') {
|
||||
this.hideBackButton = (hideBackButton === '' || hideBackButton === 'true');
|
||||
}
|
||||
|
||||
if (this.navbarStyle) {
|
||||
this.renderer.setElementAttribute(this.elementRef, this.navbarStyle, '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -39,7 +39,6 @@ import {rafFrames} from '../../util/dom';
|
||||
defaultInputs: {
|
||||
'tabbarPlacement': 'bottom',
|
||||
'tabbarIcons': 'top',
|
||||
'tabbarStyle': 'default',
|
||||
'preloadTabs': false
|
||||
},
|
||||
template:
|
||||
@ -47,7 +46,7 @@ import {rafFrames} from '../../util/dom';
|
||||
'<template navbar-anchor></template>' +
|
||||
'</ion-navbar-section>' +
|
||||
'<ion-tabbar-section>' +
|
||||
'<tabbar role="tablist" [attr]="tabbarStyle">' +
|
||||
'<tabbar role="tablist">' +
|
||||
'<a *ng-for="#t of _tabs" [tab]="t" class="tab-button" role="tab">' +
|
||||
'<icon [name]="t.tabIcon" [is-active]="t.isSelected" class="tab-button-icon"></icon>' +
|
||||
'<span class="tab-button-text">{{t.tabTitle}}</span>' +
|
||||
|
@ -104,11 +104,7 @@ class Tab3 {}
|
||||
<ion-tab tab-title="Schedule" tab-icon="globe" [root]="root2"></ion-tab>
|
||||
<ion-tab tab-title="Stopwatch" tab-icon="stopwatch" [root]="root3"></ion-tab>
|
||||
</ion-tabs>
|
||||
`,
|
||||
config: {
|
||||
navbarStyle: 'secondary',
|
||||
tabbarStyle: 'secondary'
|
||||
}
|
||||
`
|
||||
})
|
||||
export class TabsPage {
|
||||
constructor() {
|
||||
|
Reference in New Issue
Block a user