feat: migrate public DateRangePicker with shared range field and calendar owners
This commit is contained in:
@@ -276,3 +276,9 @@ Vue 模型、具名导出、原生事件/作用域插槽与共享日期 owner
|
||||
DatePicker CSS/variants 仅加 hv- 前缀,弹层 origin/placement 与进入退出状态映射到 Reka;默认日历图标取自上游 `icons.tsx` 的 IconCalendar,保留 Apache-2.0 来源,示例自定义图标改用 Tabler Vue。Vue 侧复用既有 DateField 接受值/字段校验/原生提交与 Calendar/RangeCalendar 视图、年份层、Popover 协议;从 DateField 抽取内部 owner,供独立 DateField 与 Picker 共用,未复制第二套字段状态。无新增依赖,构建不依赖相邻 React 仓库。
|
||||
|
||||
框架差异(`v-model`、`v-model:open`、具名导出、作用域插槽、默认 slot 的 `state.timeValue`/`setTimeValue`、`render` 映射到 `as`/原生 attrs)见 [组件文档](../apps/docs/components/date-picker.md) 与 [结果](tasks/results/DATE-PICKER.md)。
|
||||
|
||||
## DATE-RANGE-PICKER(2026-10-26)
|
||||
|
||||
固定 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)。
|
||||
|
||||
Reference in New Issue
Block a user