add api nav
parent
024bd35c0f
commit
035f7a3f08
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue