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 同时为 true clearable input-readonly 无法清除 #6658

Open
5 tasks done
AuYuHui opened this issue Dec 30, 2024 · 9 comments
Open
5 tasks done

DatePicker 同时为 true clearable input-readonly 无法清除 #6658

AuYuHui opened this issue Dec 30, 2024 · 9 comments

Comments

@AuYuHui
Copy link

AuYuHui commented Dec 30, 2024

描述错误

当 NDatePicker clearable input-readonly 同时 为 true , 清除按钮无法显示

复现步骤

当 NDatePicker clearable input-readonly 同时 为 true , 清除按钮无法显示

最小复现链接

https://play.pro-components.cn/#eNp9ks1u2zAQhF9ly4sdwLYQtCdDCdC0Adoe3KAtmgsvDLWWmVAkwR/FhqB375KqVR+K3LQzw+W3Kw7so3ObPiHbsjpIr1yEgDG5W25U56yPMIDHPYyw97aDBUUXF9buLsVozQp2n0XEByVf0M9ZI1SP66ToADfSmhChCy3c5IbLxRfU2sKj9bp5t7g6Bxpq81vohBRb5p4bY1+XV+TX1cRHZFRE7JwmmyqA+nANUosQbjiTa48NZ7ePqKXtsK4O11PGrJ8KK8STQwo6rzrhTxQdhsI1jnV1DpVL6NDFWLkG6NedbVBv+8xIXWZezqbA3+5Z98K0s66MS5HYRGONPk2a1Ci8eNKYy4rurKuLudiKxUBb2at28xysoV805CDNaDunNPrvLiraGmdbKE72BG319VvRok+4OuvygPLlP/pzOGaNswePAX1PwLMXhW8xTvb9zx0e6Xs2aQ+JyN8yf2CwOmXGKXaXTEPYF7lC+7W8JmXaX+H+GNGE81AZNCfHkueMHt+nN0b/h/t+86Gc42Zk4x9SMPd6

系统信息

浏览器

使用的包管理器

npm

验证

@AuYuHui AuYuHui added the untriaged need to sort label Dec 30, 2024
@jahnli
Copy link
Collaborator

jahnli commented Jan 1, 2025

image

@jahnli jahnli added waiting for response and removed untriaged need to sort labels Jan 1, 2025
@AuYuHui
Copy link
Author

AuYuHui commented Jan 1, 2025

无法显示 clear 图标

@AuYuHui
Copy link
Author

AuYuHui commented Jan 1, 2025

image
通过 这个 icon 清除

@jahnli
Copy link
Collaborator

jahnli commented Jan 1, 2025

Code looks as expected, clear button cannot be displayed in readonly mode

@AuYuHui
Copy link
Author

AuYuHui commented Jan 1, 2025

感觉不合理,能设置 value ,无法 清除

@Zheng-Changfu
Copy link
Collaborator

是合理的,因为它是 input-readonly,作用是不让 input 人机交互,设置 value 是通过面板交互的

@surge-squirrel
Copy link

这个不合理,input-readonly只是让人不要通过键盘输入,移动端友好,而可清除并不和这个冲突,点清除图标键盘依然不会弹出

@surge-squirrel
Copy link

是合理的,因为它是 input-readonly,作用是不让 input 人机交互,设置 value 是通过面板交互的

close图标本身也不是input的的啊

而且这个只读并不是不能修改值,只是不能通过键盘输入值,有了close图标依然可以做到不能输入值啊

@AuYuHui
Copy link
Author

AuYuHui commented Jan 17, 2025

是合理的,因为它是 input-readonly,作用是不让 input 人机交互,设置 value 是通过面板交互的

close图标本身也不是input的的啊

而且这个只读并不是不能修改值,只是不能通过键盘输入值,有了close图标依然可以做到不能输入值啊

这不太合理,clearable 控制是否显示清除按钮,在 input-readonly 是无法显示 close 图标, 这两个属性的功能都是独立的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants