Skip to content

Commit

Permalink
feat(*): update tests and variable names
Browse files Browse the repository at this point in the history
rename props to something that makes more sense. add animated test example
  • Loading branch information
web-mech committed Dec 12, 2019
1 parent 9a7d9b2 commit 5787a67
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/PercentageCircle.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<div
@click="(e) => $emit('click', e)"
class="c100"
:class="[`p${percent}`, complete ? primary : secondary, size]">
:class="[`p${percent}`, !complete ? activeColor : completeColor, size]">
<span>{{percent}}%</span>
<div class="slice">
<div class="bar"></div>
Expand All @@ -21,11 +22,11 @@
type: String,
default: 'small'
},
primary: {
activeColor: {
type: String,
default: 'green'
default: 'blue'
},
secondary: {
completeColor: {
type: String,
default: ''
}
Expand Down

0 comments on commit 5787a67

Please sign in to comment.