-
Notifications
You must be signed in to change notification settings - Fork 310
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
fix: input 输入框添加clearable属性并输入内容,hover时宽度进行变化 #1419
base: develop
Are you sure you want to change the base?
The head ref may contain hidden characters: "fix/input\u7EC4\u4EF6clearable\u5C5E\u6027,hover\u65F6\u5BBD\u53D8\u5316"
fix: input 输入框添加clearable属性并输入内容,hover时宽度进行变化 #1419
Conversation
opacity: 1; | ||
visibility: visible; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 common 因为涉及到 Vue2/Vue3/React 多个框架,所以变更需谨慎。
看了下当前的变更,存在 Breaking Change,会影响 Vue2/React。有种选择:
- 选择一:基于当前的 CSS 内容实现效果
- 选择二:实在要调整 CSS,是否可以兼容变更
- 选择三:实在要调整 CSS,且一定存在不兼容变更(BreakingChange),则需要 3 个框架一起提 PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
选择二。发现react版本也存在此问题,故修改了公共样式,初步测了一下,可以兼容此变更。react故障演示如下:https://codesandbox.io/s/tdesign-react-demo-7ytwwz?file=/src/main.jsx
909dbc5
to
7f58649
Compare
style/web/components/form/_var.less
Outdated
@@ -50,3 +50,6 @@ | |||
@input-box-shadow-color-warning-focus: @warning-color-focus; | |||
@input-border-color-error: @error-color; | |||
@input-box-shadow-color-error-focus: @error-color-focus; | |||
|
|||
// inline | |||
@form-inline-content-width: 200px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改动不符合预期,会导致 autoWidth
失效
7f58649
to
f695f9d
Compare
🤔 这个 PR 的性质是?
🔗 相关 Issue
#3001
💡 需求背景和解决方案
修复前:
修复后:
📝 更新日志
fix(input): input 输入框添加clearable属性并输入内容,hover时宽度进行变化
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单