add api nav

pull/9/head
tjz 2018-04-05 00:07:04 +08:00
parent 024bd35c0f
commit 035f7a3f08
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class='markdown api-container'>
<div class='markdown api-container' id="component-api">
<slot v-if="isZhCN" name="cn"></slot>
<slot v-else></slot>
</div>

View File

@ -46,6 +46,14 @@ export default {
<a-affix>
<ul id='demo-toc' class='toc'>
{lis}
<li title='API' key='API'>
<a
href='#component-api'
class={{
current: window.location.hash === '#component-api',
}}
>API</a>
</li>
</ul>
</a-affix>
)