Skip to content

Commit ddc17a9

Browse files
committed
add api nav
1 parent b5de11f commit ddc17a9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

site/components/api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class='markdown api-container'>
2+
<div class='markdown api-container' id="component-api">
33
<slot v-if="isZhCN" name="cn"></slot>
44
<slot v-else></slot>
55
</div>

site/components/demo.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ export default {
4646
<a-affix>
4747
<ul id='demo-toc' class='toc'>
4848
{lis}
49+
<li title='API' key='API'>
50+
<a
51+
href='#component-api'
52+
class={{
53+
current: window.location.hash === '#component-api',
54+
}}
55+
>API</a>
56+
</li>
4957
</ul>
5058
</a-affix>
5159
)

0 commit comments

Comments
 (0)