Skip to content

Commit

Permalink
feat(index-bar): add highlight-color prop
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed May 7, 2021
1 parent 5be6322 commit b4d38f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/varlet-ui/src/index-bar/IndexBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:key="anchorName"
class="var-index-bar__anchor-item"
:class="{ 'var-index-bar__anchor-item--active': active === anchorName }"
:style="{ color: active === anchorName && highlightColor ? highlightColor : '' }"
@click="anchorClick(anchorName)"
>
{{ anchorName }}
Expand Down

0 comments on commit b4d38f4

Please sign in to comment.