Files
mini-yu/uni_modules/tdesign-uniapp/components/indexes
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00
..
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00
2026-02-10 08:05:03 +08:00

:: BASE_DOC ::

API

Indexes Props

name type default description required
custom-style Object - CSS(Cascading Style Sheets) N
current String / Number - v-model:current is supported N
default-current String / Number - uncontrolled property N
index-list Array - TypescriptArray<string | number> N
list Array [] deprecated。TypescriptListItem[] interface ListItem { title: string; index: string; children: { title: string; [key: string]: any} [] }see more ts definition N
sticky Boolean true TypescriptBoolean N
sticky-offset Number 0 - N

Indexes Events

name params description
change (context: { index: string | number }) -
select (context: { index: string | number }) -

Indexes Slots

name Description
- -

IndexesAnchor Props

name type default description required
custom-style Object - CSS(Cascading Style Sheets) N
index String / Number - - N

IndexesAnchor Slots

name Description
- -

IndexesAnchor External Classes

className Description
t-class class name of root node
t-class-sidebar -
t-class-sidebar-item -

CSS Variables

The component provides the following CSS variables, which can be used to customize styles.

Name Default Value Description
--td-indexes-sidebar-active-bg-color @brand-color -
--td-indexes-sidebar-active-color @text-color-anti -
--td-indexes-sidebar-color @text-color-primary -
--td-indexes-sidebar-font @font-body-small -
--td-indexes-sidebar-item-size 40rpx -
--td-indexes-sidebar-right 16rpx -
--td-indexes-sidebar-tips-bg-color @brand-color-light -
--td-indexes-sidebar-tips-color @brand-color -
--td-indexes-sidebar-tips-font @font-title-extraLarge -
--td-indexes-sidebar-tips-right calc(100% + 32rpx) -
--td-indexes-sidebar-tips-size 96rpx -
--td-indexes-anchor-active-bg-color @bg-color-container -
--td-indexes-anchor-active-color @brand-color -
--td-indexes-anchor-active-font-weight 600 -
--td-indexes-anchor-bg-color @bg-color-secondarycontainer -
--td-indexes-anchor-border-color @component-border -
--td-indexes-anchor-color @text-color-primary -
--td-indexes-anchor-font @font-body-medium -
--td-indexes-anchor-padding 8rpx 32rpx -
--td-indexes-anchor-top 0 -