ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

After the date component selects a date, clicks the year and month, and clicks OK without clicking the day. The selected value will not change, then the valueFormat will be invalid, resulting in inconsistent value patterns.

Open atom-git opened this issue 2 years ago • 2 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.11

Environment

ant design vue 3.2.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.选择一个日期 2.点击年月随意改变值,选择的结果不变,也不会触发change事件 3.此时valueFormat并未生效,双绑的值会自动变成dayjs类型

What is expected?

在点击年、月进行时间改变时,触发change事件,并变改显示框值,且value经过valueFormat格式化

What is actually happening?

仅点击月份或者年份的改变,不会触发change事件,且valueFormat对于双绑的值失效

atom-git avatar Aug 18 '22 16:08 atom-git

仅点击月份或者年份,之后直接确定? 这样就是没有变化的,你切换月份后,日期面板并没有选中项啊,所以日期还是之前的值

tangjinzhou avatar Sep 01 '22 08:09 tangjinzhou

仅点击月份或者年份,之后直接确定? 这样就是没有变化的,你切换月份后,日期面板并没有选中项啊,所以日期还是之前的值 这里的问题是绑定一个值是字符串类型,但是通过上述的操作实际并未对值做出改变,再次获取绑定值的时候变成了dayjs对象,配置的valueFormat未生效

atom-git avatar Sep 15 '22 23:09 atom-git

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 15 '22 03:11 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 24 '23 00:11 github-actions[bot]