mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
baby config
This commit is contained in:
@ -10,6 +10,13 @@ let platformMode = Platform.getMode();
|
||||
// BackButton.config.bind.icon.value = 'ion-chevron-right'
|
||||
// BackButton.config._computeDefaultValue(BackButton.config.bind.icon)
|
||||
|
||||
export function Config(instance, config){
|
||||
//todo: user config
|
||||
for (var setting in config) {
|
||||
instance[setting] = config[setting][platformMode];
|
||||
}
|
||||
}
|
||||
|
||||
export class ModeComponent extends Component {
|
||||
constructor(config) {
|
||||
config.hostAttributes = config.hostAttributes || {};
|
||||
|
Reference in New Issue
Block a user