Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DatePicker] 日期选择器confirm事件不起作用? #2827

Closed
Barry-Flynn opened this issue Oct 1, 2023 · 3 comments
Closed

[DatePicker] 日期选择器confirm事件不起作用? #2827

Barry-Flynn opened this issue Oct 1, 2023 · 3 comments
Assignees
Labels
to be published fixed, not be published

Comments

@Barry-Flynn
Copy link

tdesign-vue 版本

^1.3.3

重现链接

重现步骤

HTML部分:

<t-date-picker allow-input enable-time-picker size="small" @change="onDatePickerChange" @confirm="onDatePickerConfirm" />

JS部分:

    // 日期时间选择器的值改变时
    onDatePickerChange(value, context) {
      console.log('日期时间选择器的值改变')
      console.log(value)
      console.log(context)
    },
    // 日期时间选择器的值确定时
    onDatePickerConfirm(context) {
      console.log('日期时间选择器的值确定')
      console.log(context)
    },

期望结果

confirm绑定事件生效

实际结果

打印结果:

日期时间选择器的值改变
2023-10-12 02:02:01
{dayjsValue: M, trigger: 'confirm'}

点击确定时,只有change事件生效,confirm不生效。

看样子change事件做的是confirm事件的工作,那confirm函数存在的意义是?

框架版本

^2.6.14

浏览器版本

Chrome(116.0.5845.141)

系统版本

Microsoft Windows [版本 10.0.19044.3086]

Node版本

v16.18.0

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2023

👋 @Barry-Flynn,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2023

♥️ 有劳 @zhwachen @xiaosansiji @honkinglin @Ericleungs 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Barry-Flynn

@uyarn uyarn added the to be published fixed, not be published label Oct 7, 2023
@uyarn
Copy link
Collaborator

uyarn commented Oct 12, 2023

fixed in 1.7.0

@uyarn uyarn closed this as completed Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

4 participants