Files
heroui-vue/tests/package/b02-consumer-app/README.md
T

13 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# B02 独立浏览器消费
将本目录内容复制到工作区外的独立目录。安装最终 pnpm pack 产生的 components/styles 两份 tarball、Vue与Vite;pnpm-workspace.yaml的styles override指向该样式tarball。不能配置指向源码的alias。main.js只从包根/发布CSS导入,使用render函数不依赖Vue模板编译器。
运行 `pnpm exec vite --host 127.0.0.1 --port 5184 --strictPort`(先确认空闲;也可使用已安装的Vite二进制作为开发工具),打开实际返回URL。
1. 点ComboBox箭头,面板在视口内/锚点旁,鼠标点狗后关闭、文本狗、焦点留在输入。
2. 点Autocomplete,搜索Texas,鼠标选择后单选关闭;点清除后恢复占位,焦点与Tab/外部点击不反跳。
3. 长列表展开,按End,活动Row99实际在受限滚动区可见;不是仅DOM/aria-activedescendant存在。
4. 嵌套Modal内展开列表,两次Escape分别关闭列表/Modal,焦点恢复。快速关闭重开同样可用。
记录真实坐标、滚动、焦点与截图;不能因DOM已挂载或CSS文本存在就通过。构建产物还应执行 `vite build`,类型正反例使用上级b02-pickers-contract.ts两种解析模式。