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 日期选择器] 点击月份范围选择器 #3293

Open
979680721 opened this issue Aug 30, 2024 · 0 comments
Open

[DatePicker 日期选择器] 点击月份范围选择器 #3293

979680721 opened this issue Aug 30, 2024 · 0 comments
Labels
🎨 design the issue about design or style

Comments

@979680721
Copy link

tdesign-vue 版本

1.6.3

重现链接

No response

重现步骤

当点击日期范围选择器中间的横杠或者点击日期范围选择器右边的小图标的时候,聚焦事件没有触发。但是实际上已经聚焦到左边,如图所示:imageimage。我的业务场景是开始日期和结束日期相差至少要大于2月,至多要小于或等于12月,我设了一个变量用来记录他当前的时间,只有聚焦的才会赋值,聚焦左边的时候就以右边的日期作为基准进行日期范围的控制,聚焦右边的时候就以左边的日期为基准就行日期范围控制,点击日期的时候也会重新赋值,此时就以点击的当前日期为基准进行右边日期的范围控制,但是由于点击右边图标或者中间横杠导致聚焦事件不会触发,这个时候就没有赋上值,就会导致日期被全部禁用,效果如上图,我的代码如下:
image

期望结果

点击日期右边那个图标或者整个输入框的时候均能触发聚焦事件,因为你此时左边的输入框已经亮起,要让聚焦事件触发必须再点击一次左边的输入框,我觉得这不合理。

实际结果

No response

框架版本

Vue(2.6.14)

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@uyarn uyarn added the 🎨 design the issue about design or style label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 design the issue about design or style
Projects
None yet
Development

No branches or pull requests

2 participants