# Preset route
In order to reduce the development cost, the basic library presets a number of common routing animation effects.
routeType | Minimum base version |
---|---|
wx://bottom-sheet | 3.1.0 |
wx://upwards | 3.1.0 |
wx://zoom | 3.1.0 |
wx://cupertino-modal | 3.1.0 |
wx://cupertino-modal-inside | 3.1.0 |
wx://modal-navigation | 3.1.0 |
wx://modal | 3.1.0 |
# Methods of Use
You simply need to specify the corresponding routeType
。
Note: The above routing effects can be achieved byCustom RoutingImplementation, can refer to the sample code in the source file, custom effect required.
wx.navigateTo ({
url: 'xxx',
routeType: 'wx://modal
})
# sample code
Preview the effect in developer tools
# Effect demonstration
wx://bottom-sheet
半屏弹窗
wx://upwards
向上进入
wx://zoom
放大进入
wx://cupertino-modal-inside
wx-cupertinao-modal 跳转到 wx-cupertino-modal-inside
wx://modal-navigation
wx-cupertinao-modal 跳转到 wx-modal-navigation
wx://modal
wx-modal 跳转到 wx-modal-navigation