HD-02 scope, all against heroui ce90ea3 cn sources:
- card: add the text-primary class to the coin icons (source parity);
card-with-form drops the added required validation and inline business
note, restores the plain href="#" forgot-password link and the baseline
alert("表单提交成功!") submit feedback (autocomplete kept: no visible
impact, allowed by the task card)
- input-group-with-textarea: restore the four Tooltips and the Enter Kbd
hint; drop the stale "Tooltip 组件尚未迁移" note from input-group.md
- alert-dialog: restore the h-px top light line in custom-styles and the
truncated/missing description text in sizes/custom-portal/
custom-animations (+ controlled); align the fluid-slide icon with the
modal mapping (IconArrowBarUp for gravity-ui:arrow-up-from-line)
- toast: restore the upstream demo layout shells (variants/simple/
custom-indicator/custom-queue) and the action button default variant:
ToastActionButton now falls back to the Button defaults (primary/md)
like upstream ToastActionButton, so variants' actions render primary,
danger stays danger and default stays tertiary; toast.md defaults fixed
- submit demos: restore baseline feedback and structure — alert() for
card/fieldset/form/checkbox/checkbox-group/switch/select/combo-box/
autocomplete and console.log for search/number/time field form examples;
modal-with-form returns to the close-only footer (no submit/result row);
drop the added inline status/result rows and the max-w-full/
max-sm:min-w-0 width guards from the restored demos
- radio-group-validation: add the missing text-muted to the result line;
label.md invalid example gives the real control its invalid state and
matches the baseline input shape
Tests re-pinned to the baseline contracts (alert/console/close behavior,
four tooltips + Kbd, positional modal footer); full suite 110 files /
1617 tests, typecheck, build:docs and the m35-m36 tarball contract pass.
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>。