maoyingjie 123e3f9cba fix(dropdown): keep dropdown trigger positional inside ButtonGroup
Review of the restored button-group demos found the merged pull-request
group's seam broken: DropdownRoot renders a .hv-dropdown wrapper (a recorded
Vue adaptation) so the trigger button stopped being a positional child of
.button-group and matched :first-child:last-child, taking a full 24px radius
against the merge button's 24/0 end cap. The internal __button_group_child
marker also leaked onto the DOM.

Upstream Dropdown has no DOM root (RAC MenuTrigger renders a bare
SlotProvider and drops root props), so the trigger naturally occupies the
group's :last-child slot and the shared seam rules apply unchanged.

- DropdownRoot absorbs the ButtonGroup direct-child marker and skips the
  wrapper when marked, restoring positional seam radii and outline seam
  borders without touching the styles package (kept line-parity with the
  pinned source)
- wrapper contract (data-slot=dropdown-root, data-trigger, root class host)
  unchanged outside ButtonGroup; documented in dropdown.md
- regression tests: positional trigger + no marker leak in groups, wrapper
  still hosts root class standalone
2026-10-28 11:39:39 +08:00

HeroUI Vue

当前仅支持浏览器客户端使用,暂不支持SSR、服务端水合或Nuxt服务端渲染。除用户明确重新启用外,不开发、不修复、不新增也不运行相关专项;历史通过记录不构成支持承诺。

独立的 Vue 3 组件库项目,以 HeroUI v3 为设计参考。社区实验项目,非官方发行版,当前包均未发布。

本地运行

需要 Node.js 22.12+(使用 Node 22 时)和 pnpm 11。更高 Node 主版本需符合 Vite 的支持范围。

pnpm install --frozen-lockfile
pnpm dev

默认启动组件文档:http://127.0.0.1:5173/components/button。pnpm dev:playground 启动独立验证页。

文档开发模式直接加载工作区组件与样式源码,支持热更新,启动时不再预构建全库;生产构建仍使用包产物。文档端口固定为 5173,占用时会报错,请先停止已有文档进程,避免打开不同实例。

pnpm build
pnpm typecheck
pnpm test
pnpm build:playground
pnpm build:docs

packages/vue 为组件包,packages/styles 为独立样式包;apps/playground 用于交互验证,apps/docs 提供 VitePress 文档。构建库不需要旁边的原 React 仓库。

当前公共展示、表单、弹层、集合、Toast/Table及DateField/Calendar已集成,颜色与范围日历等仍有待公开家族。具体进度见 当前进度,能力和限制见 兼容矩阵,不能据此声明完整兼容。

临时包名为 @heroui-vue/components、@heroui-vue/styles,均设置 private: true;发布前需确认包名、许可证与版本策略。

当前文档采用上游中文标题、说明和示例次序,并提供同一 SFC 源码的可运行演示。样式来源与许可见 上游记录,尚未覆盖的能力见 兼容矩阵。

独立会话协作

实施者和集成人统一从 任务入口 开始;读取 AGENTS.md 与指定任务卡,运行 node scripts/task-check.mjs <ID>。任务范围、起点、依赖、验证及交付记录保存在仓库,不依赖聊天历史或临时文件。

日常按 验证入口 选择相关套件;pnpm test用于完整集成回归。历史返修材料默认不读,查询方法见 历史入口。

暂不投入逐像素自动对比、完整读屏矩阵、真机矩阵和Nuxt集成。重点浏览器交互、键盘与基础可访问性检查保留。公开产物验收统一使用node scripts/check-package.mjs <相关契约ID>。

S
Description
No description provided
Readme 11 MiB
Languages
TypeScript 50.1%
Vue 41.6%
CSS 7.4%
JavaScript 0.9%