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

InputDate日期建议添加readonly,只可选日期,不可输入 #11401

Open
wanquantong opened this issue Dec 19, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@wanquantong
Copy link

No description provided.

@wanquantong wanquantong added the enhancement New feature or request label Dec 19, 2024
@lhtuling
Copy link

确实也有这个必要,还是经常用到的场景的

测了下,暂时可以用自定义代码进行实现
给组件设置className方便定位
然后组件聚焦事件里面进行操作

document.querySelectorAll(".indr input").forEach(it=>{it.readOnly=true})

完美实现

Amis低代码前端框架交流群【QQ1群】:717791727
Amis低代码前端框架交流群【QQ2群】:721182449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants