ant-design-vue
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.
- [ ] 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
Steps to reproduce
1.选择一个日期 2.点击年月随意改变值,选择的结果不变,也不会触发change事件 3.此时valueFormat并未生效,双绑的值会自动变成dayjs类型
What is expected?
在点击年、月进行时间改变时,触发change事件,并变改显示框值,且value经过valueFormat格式化
What is actually happening?
仅点击月份或者年份的改变,不会触发change事件,且valueFormat对于双绑的值失效
仅点击月份或者年份,之后直接确定? 这样就是没有变化的,你切换月份后,日期面板并没有选中项啊,所以日期还是之前的值
仅点击月份或者年份,之后直接确定? 这样就是没有变化的,你切换月份后,日期面板并没有选中项啊,所以日期还是之前的值 这里的问题是绑定一个值是字符串类型,但是通过上述的操作实际并未对值做出改变,再次获取绑定值的时候变成了dayjs对象,配置的valueFormat未生效
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
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.