maoyingjie 658dfbb7d9 fix(table): full-width empty state, sort focus ring and fr column widths
HD-08 scope, against heroui ce90ea3 table sources and their
react-aria/react-stately dependencies:

- TableBody empty state now spans every real leaf column by default
  (self-registered TableColumns — selection and wrapper-rendered ones
  included — reactively following column changes), explicit colspan
  still wins, and the vnode-level empty detection keeps avoiding
  unknown-component setup/render probing
- sorting keeps one activation per click/Enter/Space (single sort path
  via the column) while the baseline focus ring returns: the trigger
  button keeps keyboard focus and forwards its real :focus-visible
  state to the th's existing [data-focus-visible] hook, so the inset
  ring lands on the column header like the pinned source and the UA
  outline is suppressed only inside a column; aria-sort="none" on
  sortable unsorted columns matches useTableColumnHeader and stays
- defaultWidth="Nfr" distributes the remaining width by weight
  instead of silently becoming auto: widths.ts ports react-stately's
  calculateColumnSizes (static px/% first, fr flex-grow sharing,
  min/max violation freezing, cascade rounding); fr mode locks
  table-layout: fixed for exact geometry, re-shares on container
  resize, freezes dragged columns to their pixel width and keeps
  geometry (with flipped drag direction) in RTL; unmeasured
  environments keep native widths
- .table__cell's text-start/font-normal verified to block caller
  inheritance and narrowed to th.hv-table__cell { inherit }, keeping
  the baseline td row-header typography while ancestor align/weight
  cascade into cells again; th scope=row, corner selectors and the
  resizer z-index fix are untouched
- tests/fixtures/table-layout.vue (playground) drives the real-browser
  geometry/drag/RTL/theme verification; m35-m36 contract pins the two
  new CSS markers in the final tarball

Full suite 111 files / 1657 tests, typecheck, build:docs and the
m35-m36 + handbook-styles tarball contracts pass.
2026-10-29 10:59:24 +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%