Skip to content

update: support multi tabs in one page#679

Open
kkkbird wants to merge 1 commit into
GoAdminGroup:mainfrom
kkkbird:master
Open

update: support multi tabs in one page#679
kkkbird wants to merge 1 commit into
GoAdminGroup:mainfrom
kkkbird:master

Conversation

@kkkbird

@kkkbird kkkbird commented Jul 16, 2026

Copy link
Copy Markdown

tabs 模板使用 range 循环索引 $key(0, 1, 2...)作为 tab 的 id(#tab_0, #tab_1)。每次调用 Tabs() 都会重新从 0 开始计数,因此同一页面上的多个 Tabs 组件会生成相同的 id,导致 Bootstrap 的 data-toggle="tab" 锚点冲突,点击 tab 时会错误地激活另一个 Tabs 组件的面板。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant