Skip to content

Commit 1cd7702

Browse files
committed
chore: add custom tag
1 parent 3e4b8f7 commit 1cd7702

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/site-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tdesign/site-components",
3-
"version": "0.18.0-alpha.3",
3+
"version": "0.18.0-alpha.4",
44
"license": "MIT",
55
"main": "lib/site.es.js",
66
"type": "module",

packages/site-components/src/components/td-doc-aside/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,8 @@ function renderNav(host, nav, deep = 0) {
7575
class="TDesign-doc-sidenav-link ${isActive ? 'active' : ''}"
7676
onclick=${(host, e) => handleLinkClick(host, e, nav.path)}
7777
>
78-
${nav.title}
79-
${hasUpdate()
80-
? html`<span class="TDesign-doc-sidenav-link__tag">Update</span>`
81-
: nav.customTag
82-
? html`<span class="TDesign-doc-sidenav-link__tag">${nav.customTag}</span>`
83-
: null}
78+
${nav.title} ${hasUpdate() ? html`<span class="TDesign-doc-sidenav-link__tag">Update</span>` : null}
79+
${nav.customTag ? html`<span class="TDesign-doc-sidenav-link__tag">${nav.customTag}</span>` : null}
8480
</a>
8581
</div>
8682
`;

0 commit comments

Comments
 (0)