From de2aee711907f9898faa598244fc231bf190d697 Mon Sep 17 00:00:00 2001 From: wuyiping0628 <1106773985@qq.com> Date: Mon, 22 Sep 2025 16:54:04 -0700 Subject: [PATCH] fix: resolve the issue of token style in the example --- examples/sites/src/components/anchor.vue | 79 +++---------------- .../sites/src/views/components-doc/common.vue | 73 ++++++++++++++--- 2 files changed, 76 insertions(+), 76 deletions(-) diff --git a/examples/sites/src/components/anchor.vue b/examples/sites/src/components/anchor.vue index d972c02e69..c46a1eecc3 100644 --- a/examples/sites/src/components/anchor.vue +++ b/examples/sites/src/components/anchor.vue @@ -1,17 +1,16 @@ - + diff --git a/examples/sites/src/views/components-doc/common.vue b/examples/sites/src/views/components-doc/common.vue index 96062bcc61..e565fb5f27 100644 --- a/examples/sites/src/views/components-doc/common.vue +++ b/examples/sites/src/views/components-doc/common.vue @@ -75,16 +75,18 @@ - +
+ +
@@ -526,6 +528,57 @@ defineExpose({ loadPage }) overflow: visible; } } + .cmp-page-anchor { + :deep(.tiny-anchor__affix) { + top: unset !important; + overflow-y: auto; + overflow-x: hidden; + max-height: calc(100vh - 300px); + } + + :deep(.tiny-anchor-link) { + font-size: 12px; + + a { + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } + } + + .catalog { + flex: none; + width: 200px; + height: calc(100vh - 280px); + padding-top: 16px; + overflow: hidden; + + .tiny-anchor__dot { + max-height: calc(100vh - 300px); + width: 200px; + + :deep(.tiny-anchor) { + --ti-anchor-width: auto; + background-color: transparent; + } + } + } + + .catalog:hover { + overflow-y: auto; + } + + .catalog::-webkit-scrollbar { + width: 10px; + background-color: #f5f5f5; + } + + .catalog::-webkit-scrollbar-thumb { + border-radius: 10px; + background-color: #c1c1c1; + } } .one-demo-col2 {