Skip to content

[DateRangePickerPanel] 面板的年月不能跟随value值的变化而响应 #3793

@C1rq

Description

@C1rq

tdesign-react 版本

1.14.5

重现链接

No response

重现步骤

Image

1.使用组件自带API presets={{"custom":["2024-06-23","2025-09-04"]}}
2. 设置组件value为受控
3. 在点击preset时 setValue 观察面板

期望结果

希望面板第一页在value变化时,跳到起始日期的年月日,第二个面板同理,

实际结果

现在是区间响应式更新了,但是年月日没有跳到value对应起始日期的面板

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

18

补充说明

这里我使用的是自己封装的快捷日期选择的组件,不好用,但是我用了官方提供的API presets,结果相同

Metadata

Metadata

Assignees

No one assigned

    Labels

    to be publishedfixed, not be published🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions