Skip to content

Commit

Permalink
fix(ui/input): 修复line在error状态下没变红色的BUG
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Jan 15, 2021
1 parent d945477 commit 7f8298d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/varlet-ui/src/input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
<div
class="var-input__line"
:class="[
disabled ? 'var-input--line-disabled' : null
disabled ? 'var-input--line-disabled' : null,
errorMessage ? 'var-input--line-error': null
]"
:style="{
background: inactiveColor
Expand Down
7 changes: 7 additions & 0 deletions packages/varlet-ui/varlet.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ module.exports = {
en_US: 'Rate',
},
doc: 'rate'
},
{
text: {
zh_CN: 'Input 输入框',
en_US: 'Input',
},
doc: 'input'
},
],
language: 'zh_CN',
Expand Down

0 comments on commit 7f8298d

Please sign in to comment.