Config

优质
小牛编辑
114浏览
2023-12-01

用来配置整个应用程序。

属性

名称IOS默认MD默认
activatorhighlightripple
actionSheetEnteraction-sheet-slide-inaction-sheet-md-slide-in
actionSheetLeaveaction-sheet-slide-outaction-sheet-md-slide-out

alertEnter|alert-pop-in |alert-md-pop-in
alertLeave|alert-pop-out|alert-md-pop-out
backButtonText| Back
backButtonIcon| ion-ios-arrow-back| ion-md-arrow-back
iconMode| ios |md
menuType |reveal |overlay
modalEnter| modal-slide-in| modal-md-slide-in
modalLeave| modal-slide-out| modal-md-slide-out
pageTransition| ios-transition| md-transition
pageTransitionDelay| 16| 120
tabbarPlacement |bottom| top
tabbarHighlight | |top
tabbarLayout|
tabSubPages| |true

实例方法

get(key, fallbackValue)

  • key string

    config的键

  • fallbackValue any

getBoolean(key)

set(platform,key,value)

  • platform string

    “ios”或者”android”