Skip to content

Commit

Permalink
feat(classes): iZ-select--with-value class if select has value
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyaZelenko committed Sep 18, 2019
1 parent 9698298 commit c978a76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
:tabindex="disableSearch ? 0 : -1"
:class="{
'IZ-select': true,
'IZ-select--sm': size === SIZES.SMALL,
'IZ-select--lg': size === SIZES.LARGE
'IZ-select--with-value': inputValue,
// ставит класс размера если prop size не дефолтное
...(size === SIZES.DEFAULT
? null
: ({ ['IZ-select--' + size]: true })
)
}"
@keydown.up="onSelectByArrow"
@keydown.down="onSelectByArrow"
Expand Down

0 comments on commit c978a76

Please sign in to comment.