5e688680e91ca36a6232af18931138eca2b3d50b
Port the fixed-baseline Autocomplete onto the B02a collection protocol. The trigger is the single Tab entry; opening moves focus to the search box inside the popover, which owns filtering, aria-activedescendant and keyboard navigation while the list only tracks an active row. - Seven parts: root (field, value/open models, form value, owner wiring), trigger (anchor + activation), value (scoped slot with selectedItems and selectedText instead of copied item subtrees), indicator, clear button, popover (measured trigger width), filter (owns the search text and composes the inner SearchFieldInput into the combobox control). - Filter exposes input-value/update:inputValue/inputChange, matching ComboBox. - Confirming the active row in multiple mode now toggles it instead of replacing the accepted set (ComboBox shared the same bug). - ComboBox shows the accepted label on the first render via a display value that falls back to the selected record, so preselected fields are readable before the selection watcher runs (including SSR). - Popovers measure the anchor with a ResizeObserver because Reka does not publish the anchor size; the caller's root class is merged again so the trigger fills the field width. - 24 baseline previews, Chinese doc page, navigation, 17 behaviour tests, 5 demo/document contracts and an independent tarball consumption script for both pickers. Not included: the full bundler/NodeNext type matrix (B02d).
HeroUI Vue
独立的 Vue 3 组件库项目,以 HeroUI v3 为设计参考。社区实验项目,非官方发行版,当前包均未发布。
本地运行
需要 Node.js 22.12+(使用 Node 22 时)和 pnpm 11。更高 Node 主版本需符合 Vite 的支持范围。
pnpm install
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 仓库。
Button、Card、Input、Switch 已移植基线主题、主要变体与组合结构,仍处于完整兼容验收阶段。日期、颜色、弹层等尚未实现。详见 兼容矩阵、实施方案 与 上游基线。
临时包名为 @heroui-vue/components、@heroui-vue/styles,均设置 private: true;发布前需确认包名、许可证与版本策略。
当前文档采用上游中文标题、说明和示例次序,并提供同一 SFC 源码的可运行演示。样式来源与许可见 上游记录,尚未覆盖的能力见 兼容矩阵。
Description
Languages
TypeScript
50.1%
Vue
41.6%
CSS
7.4%
JavaScript
0.9%