add[example]: add nested routes example (#789)

This commit is contained in:
花裤衩
2018-06-21 14:26:25 +08:00
committed by GitHub
parent cbc3ddd827
commit d995cdb332
7 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<template>
<div class="app-container">
<code>Parent View: Bar</code>
<img src="https://wpimg.wallstcn.com/be29a7d2-5ccf-4a2b-888d-8a6c2bbb7aac.png">
<router-view></router-view>
</div>
</template>

View File

@@ -0,0 +1,6 @@
<template>
<div style="margin-top:30px;">
<el-alert title="Children: Posts" type="warning" :closable="false">
</el-alert>
</div>
</template>

View File

@@ -0,0 +1,6 @@
<template>
<div style="margin-top:30px;">
<el-alert title="Children: Profile" type="success" :closable="false">
</el-alert>
</div>
</template>