Browse Source

Add title for toc items

pull/3050/head
afc163 8 years ago
parent
commit
01161ab8cd
  1. 2
      site/theme/template/Content/ComponentDoc.jsx

2
site/theme/template/Content/ComponentDoc.jsx

@ -65,7 +65,7 @@ export default class ComponentDoc extends React.Component {
const title = demo.meta.title;
const localizeTitle = title[locale] || title;
return (
<li key={demo.meta.id}>
<li key={demo.meta.id} title={localizeTitle}>
<a href={`#${demo.meta.id}`}>
{localizeTitle}
</a>

Loading…
Cancel
Save