|
|
@ -131,9 +131,11 @@ export default {
|
|
|
|
const title = isCN ? cnTitle : usTitle;
|
|
|
|
const title = isCN ? cnTitle : usTitle;
|
|
|
|
lis.push(<a-anchor-link key={id} href={`#${id}`} title={title} />);
|
|
|
|
lis.push(<a-anchor-link key={id} href={`#${id}`} title={title} />);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
const showApi = this.$route.path.indexOf('/components/') !== -1;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<a-anchor offsetTop={100} class="demo-anchor">
|
|
|
|
<a-anchor offsetTop={100} class="demo-anchor">
|
|
|
|
{lis}
|
|
|
|
{lis}
|
|
|
|
|
|
|
|
{showApi ? <a-anchor-link key="API" title="API" href="#api" /> : ''}
|
|
|
|
</a-anchor>
|
|
|
|
</a-anchor>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|