tiny-vue/examples/sites
vitlot-Hongchujie fdb2129f86
fix(tabs): 修复 showMoreTabs 模式下 overflow 计算滞后导致下拉菜单未及时更新(#4279) (#4272)
* fix(tabs): fix showMoreTabs overflow calculation lag caused by CSS transition

The nav element has CSS transition: transform 0.3s, which causes
getBoundingClientRect() to return pre-transition positions when
calcMorePanes runs in requestAnimationFrame (before the transition
has advanced).

Fix: use tab-relative-to-nav position delta (transition-invariant
since both share the same transform coordinate space) plus navOffset
to compute the final expected positions, bypassing the transition
intermediate state entirely.

Also replace nextTick with requestAnimationFrame in deferred
calcMorePanes calls to ensure all cascading DOM updates from
scrollToActiveTab -> updated() chains have settled.

* fix(tab-nav): trigger calcMorePanes after scrollPrev/scrollNext arrow click

* test(tabs): 修正 custom-more-icon 溢出下拉数量断言

showMoreTabs 溢出计算修正后按真实布局计算,容器 400px 减去
更多按钮占位后仅 5 个 tab 完整可见,下拉应为 Tab 6/7/8 共 3 项,
原断言 2 是基于旧实现 mount 早期量宽了 navScroll 的错误结果。
2026-08-05 09:19:25 +08:00
..
demos fix(tabs): 修复 showMoreTabs 模式下 overflow 计算滞后导致下拉菜单未及时更新(#4279) (#4272) 2026-08-05 09:19:25 +08:00
env docs(site): 隐藏没有适配saas主题的组件并在pages模式下将target设置成open (#3866) 2025-12-03 11:52:16 +08:00
mobile refactor: refactor mobile site (#2808) 2025-02-10 10:53:00 +08:00
playground docs: add 3.31.0's changelog (#4275) 2026-07-30 09:32:54 +08:00
public fix(mobile): add mobile dark theme switching (#4033) 2026-02-03 10:24:40 +08:00
src fix: svg function supports a bottom padding style across multiple devices. (#4289) 2026-08-04 09:32:10 +08:00
tiny-uno fix: fix features page style (#3161) 2025-03-21 14:51:22 +08:00
.gitignore chore: remove modules that are not to be maintained (#2790) 2025-01-13 19:35:45 +08:00
.prettierignore feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00
.prettierrc feat: support react and add new components: rich-text-editor/color-picker/divider/calendar-view 2023-10-11 04:04:12 -07:00
.stylelintignore feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00
.stylelintrc.js feat(site): connect next-sdk and ai dialog box to realize dynamic switching routing function of large models (#3619) 2025-07-28 11:35:40 +08:00
cp-component-md.sh ci: auto deploy site (#2617) 2024-12-06 15:44:54 +08:00
favicon.ico chore: add favicon (#1611) 2024-05-09 17:33:22 +08:00
index.html fix: fixed the problem of global search js resource access failure (#2623) 2024-12-11 14:30:46 +08:00
md.extend.config.js feat: support react and add new components: rich-text-editor/color-picker/divider/calendar-view 2023-10-11 04:04:12 -07:00
mobile.html feat: add mobile demo preview (#2807) 2025-01-15 15:03:10 +08:00
package.json chore: update docs version 2026-07-27 19:13:29 +08:00
playground.html docs(changelog): update changelog and runtime doc (#1749) 2024-07-17 11:04:52 +08:00
postcss.config.cjs feat: modify the resource file loading mode and add postcss plugin configuration. (#3615) 2025-07-28 11:34:47 +08:00
tailwind.config.cjs chore: sync release-3.26.0 to dev branch (#3716) 2025-09-18 11:51:26 +08:00
tiny.config.js feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00
tsconfig.json feat: support react and add new components: rich-text-editor/color-picker/divider/calendar-view 2023-10-11 04:04:12 -07:00
tsconfig.node.json feat(site): connect next-sdk and ai dialog box to realize dynamic switching routing function of large models (#3619) 2025-07-28 11:35:40 +08:00
uno.config.js docs: add test in the features page (#3255) 2025-04-07 15:24:11 +08:00
vite.config.ts fix(sites): conditionally apply icon source plugins based on config mode (#4181) 2026-04-16 10:16:08 +08:00
vite.extend.ts feat:支持演练场以及华为云风格文档 (#4030) 2026-01-27 10:30:48 +08:00