feat: 添加 u-input 组件禁用状态样式#155
Merged
Merged
Conversation
添加 u-input--disabled 类及对应样式,使禁用状态下输入框与文本域呈现灰色背景与文字颜
✅ Deploy Preview for h5-uview-pro ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
anyup
reviewed
May 14, 2026
anyup
left a comment
Owner
There was a problem hiding this comment.
--u-disabled-color 这个色值目前没有,在theme.scss中挑选合适的禁用色值,不要使用硬编码色值
anyup
reviewed
May 14, 2026
anyup
left a comment
Owner
There was a problem hiding this comment.
这样修改,副作用很多,内部都是以children做的处理,导致不同步,这个先不用改了~
- 阻止禁用状态下触发 click 事件 - 更新禁用状态背景色变量 - 修复禁用状态下输入框和文本域的缩进及样式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
本 PR 包含以下两个修复:
u-input组件添加 disabled 状态样式支持Changes
u-input disabled 样式支持
u-input--disabledclass索引列表滑动修复
Testing