tiny-vue/packages/renderless
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
..
scripts fix(renderless): fix renderless publish error and fix button-group apis (#2983) 2025-03-03 10:48:57 +08:00
src fix(tabs): 修复 showMoreTabs 模式下 overflow 计算滞后导致下拉菜单未及时更新(#4279) (#4272) 2026-08-05 09:19:25 +08:00
types fix(drawer): add drag and drop icon(mobile-first) (#4249) 2026-07-22 09:44:49 +08:00
README.md feat(readme): add readme files to main packages (#1826) 2024-08-05 15:22:50 +08:00
README.zh-CN.md feat(readme): add readme files to main packages (#1826) 2024-08-05 15:22:50 +08:00
package.json chore: update to version 3.31.0 (#4255) 2026-07-23 14:27:08 +08:00
tsconfig.json feat: 还原renderless打包逻辑 2024-12-11 17:17:18 +08:00
tsup.config.ts chore: remove useless runtime-version (#3249) 2025-04-07 11:21:52 +08:00

README.md

@opentiny/vue-renderless

Provides a rendering-free logic layer for the TinyVue component.

You can customize the global configuration of some components

Modify the popup window starting level (z-index)

Add the following code to the entry file main.js:

import PopupManager from '@opentiny/vue-renderless/common/deps/popup-manager'

// Set the starting level to 3000
PopupManager.zIndex = 3000