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> <template>
<div class='markdown api-container'> <div class='markdown api-container' id="component-api">
<slot v-if="isZhCN" name="cn"></slot> <slot v-if="isZhCN" name="cn"></slot>
<slot v-else></slot> <slot v-else></slot>
</div> </div>

View File

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