mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(windows): initial add of windows mode
basically a copy of md for now references #5565
This commit is contained in:
@@ -81,7 +81,7 @@ function setupDom(window, document, config, platform, clickBlock, featureDetect)
|
||||
}
|
||||
|
||||
// set the mode class name
|
||||
// ios/md
|
||||
// ios/md/wp
|
||||
bodyEle.classList.add(mode);
|
||||
|
||||
// language and direction
|
||||
|
||||
@@ -57,3 +57,33 @@ Config.setModeConfig('md', {
|
||||
|
||||
tabSubPages: true,
|
||||
});
|
||||
|
||||
|
||||
// Windows Mode Settings
|
||||
Config.setModeConfig('wp', {
|
||||
activator: 'highlight',
|
||||
|
||||
actionSheetEnter: 'action-sheet-md-slide-in',
|
||||
actionSheetLeave: 'action-sheet-md-slide-out',
|
||||
|
||||
alertEnter: 'alert-md-pop-in',
|
||||
alertLeave: 'alert-md-pop-out',
|
||||
|
||||
backButtonText: '',
|
||||
backButtonIcon: 'md-arrow-back',
|
||||
|
||||
iconMode: 'md',
|
||||
|
||||
menuType: 'overlay',
|
||||
|
||||
modalEnter: 'modal-md-slide-in',
|
||||
modalLeave: 'modal-md-slide-out',
|
||||
|
||||
pageTransition: 'md-transition',
|
||||
pageTransitionDelay: 96,
|
||||
|
||||
tabbarHighlight: true,
|
||||
tabbarPlacement: 'top',
|
||||
|
||||
tabSubPages: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user