Skip to content

Commit

Permalink
Add allowBlank option to <money> component
Browse files Browse the repository at this point in the history
  • Loading branch information
nholden committed May 8, 2018
1 parent 2524120 commit a205557
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<input type="tel"
:value="formattedValue"
@change="change"
v-money="{precision, decimal, thousands, prefix, suffix}"
v-money="{precision, decimal, thousands, prefix, suffix, allowBlank}"
class="v-money" />
</template>

Expand Down Expand Up @@ -42,6 +42,10 @@ export default {
suffix: {
type: String,
default: () => defaults.suffix
},
allowBlank: {
type: Boolean,
default: () => defaults.allowBlank
}
},
Expand Down

0 comments on commit a205557

Please sign in to comment.