init
This commit is contained in:
27
xhs-mini-demos/api-case/navigator/navigator.xhsml
Normal file
27
xhs-mini-demos/api-case/navigator/navigator.xhsml
Normal file
@@ -0,0 +1,27 @@
|
||||
<view class="container">
|
||||
<showbox title="通过调用api进行跳转">
|
||||
<box>
|
||||
<view class="_ui-space">
|
||||
<navigator url="./navigate" open-type="navigate">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">navigate</button>
|
||||
</navigator>
|
||||
<navigator url="./navigate" open-type="redirect">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">redirect</button>
|
||||
</navigator>
|
||||
<navigator url="/entry/component/component" open-type="switchTab">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">switchTab</button>
|
||||
</navigator>
|
||||
<navigator url="/entry/component/component" open-type="reLaunch">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">reLaunch</button>
|
||||
</navigator>
|
||||
<navigator open-type="navigateBack">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">navigateBack</button>
|
||||
</navigator>
|
||||
<navigator open-type="exit">
|
||||
<button class="_ui-button" hover-class="_ui-button-hover">exit</button>
|
||||
</navigator>
|
||||
</view>
|
||||
</box>
|
||||
</showbox>
|
||||
</view>
|
||||
<include src="templates.xhsml" />
|
||||
Reference in New Issue
Block a user