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

u-input输入框disabled属性新增置灰样式 #1285

Open
ay095411 opened this issue Sep 19, 2023 · 0 comments
Open

u-input输入框disabled属性新增置灰样式 #1285

ay095411 opened this issue Sep 19, 2023 · 0 comments

Comments

@ay095411
Copy link

这个功能解决了什么问题?

表单中引用了其它组件,其它组件在禁用的情况下输入框处于完全置灰状态。但是u-input禁用状态下样式无改变,无法分清是否是禁用状态。 使用css属性input[disabled]无法控制到背景样式,因为它的父元素存在于padding值,与实际想要效果存在差异。这种情况下使整个表单样式变的不统一,并且无法分辨是否禁用状态。

你期望的 API 是怎样的?

新增禁用状态下的css样式,或父元素能够关联出一个u-input的disabled class属性

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

No branches or pull requests

1 participant