docs: record ColorField migration and client verification

This commit is contained in:
maoyingjie
2026-10-27 11:55:00 +08:00
parent 6a7a89be6b
commit 71b8c77ba8
9 changed files with 144 additions and 42 deletions
+6
View File
@@ -298,3 +298,9 @@ DatePicker CSS/variants 仅加 hv- 前缀,弹层 origin/placement 与进入退
固定 HeroUI 3.2.6 / `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`:`packages/react/src/components/date-range-picker/{index.ts,date-range-picker.tsx}`、`packages/styles/components/date-range-picker.css`、`packages/styles/src/components/date-range-picker/date-range-picker.styles.ts`、中文 `(date-and-time)/date-range-picker.mdx` 与 `apps/docs/src/demos/cn/date-range-picker/` 全部 10 个页面预览;`index.ts` 额外导出的 release-input-container 中文页未引用,按非页面示例核对。同时对照 React Aria Components 1.21.1 发布的 DateRangePicker/DateRangeField/useDateRangePickerState 声明确认完整范围、时间范围与 `shouldCloseOnSelect` 语义,未安装或执行 React。
CSS/variants 仅加 hv- 前缀并保留 Apache-2.0 来源;弹层 origin/placement 与进入退出状态映射到 Reka,默认日历图标取自上游 `icons.tsx` 的 IconCalendar。Vue 侧复用既有接受值/字段/范围选择/日历视图/弹层设施:从 DateField owner 抽取双端点字段适配,RangeCalendar 增加可选继承接口;没有复制第二套范围状态或另一个接受值。固定源 `slot="start"/"end"` 改为 `DateFieldInput endpoint`;格式选项的 `w-full` 弹层在 Portal 自动宽度下映射为日历宽度加内边距。无新增依赖,构建不依赖相邻 React 仓库;差异、宽度适配和验证见 [组件文档](../apps/docs/components/date-range-picker.md) 与 [结果](tasks/results/DATE-RANGE-PICKER.md)。
## COLOR-FIELD 公共迁移(2026-10-27)
固定 HeroUI 3.2.6 / `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`:读取 `packages/react/src/components/color-field`、`color-input-group` 的 index/实现、ColorField 基线测试、两套 CSS/tv、中文 `(colors)/color-field.mdx` 和引用的全部 13 个演示(顺序见任务卡 sources)。复用此前私有字段/颜色适配与源 CSS;本轮公开具名部件/变体/文档,不复制 React hook、不执行 React,不新增底座/依赖。
variants 保留 ce90ea3 结构并加 hv-;原 CSS 来源及 Apache 声明保留。唯一布局适配是在 `.hv-color-input-group__input` 增加 min-width:0,修正原生 Vue input 在 100px 通道组内的固有最小宽度及后缀越界;浏览器几何和兼容差异见 [COLOR-FIELD 结果](tasks/results/COLOR-FIELD.md)。上游 render 换标签通过 Vue as/attrs 实现,渲染状态通过作用域插槽/styleFn 暴露。