Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
feat(clear): expose clear() method
Browse files Browse the repository at this point in the history
  • Loading branch information
softbeehive committed Jan 29, 2018
1 parent b93daf8 commit 7e01c51
Show file tree
Hide file tree
Showing 9 changed files with 921 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

914 changes: 913 additions & 1 deletion package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-stripe-elements-plus",
"version": "0.2.7",
"version": "0.2.8",
"description": "Stripe Elements components for Vue",
"main": "./dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
components: { StripeElement },
methods: {
blur () { this.$refs.element.blur() },
clear () { this.$refs.element.clear() },
focus () { this.$refs.element.focus() },
update (options) { this.$refs.element.update(options) }
}
Expand Down
1 change: 1 addition & 0 deletions src/CardCvc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
components: { StripeElement },
methods: {
blur () { this.$refs.element.blur() },
clear () { this.$refs.element.clear() },
focus () { this.$refs.element.focus() },
update (options) { this.$refs.element.update(options) }
}
Expand Down
1 change: 1 addition & 0 deletions src/CardExpiry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
components: { StripeElement },
methods: {
blur () { this.$refs.element.blur() },
clear () { this.$refs.element.clear() },
focus () { this.$refs.element.focus() },
update (options) { this.$refs.element.update(options) }
}
Expand Down
1 change: 1 addition & 0 deletions src/CardNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
components: { StripeElement },
methods: {
blur () { this.$refs.element.blur() },
clear () { this.$refs.element.clear() },
focus () { this.$refs.element.focus() },
update (options) { this.$refs.element.update(options) }
}
Expand Down
1 change: 1 addition & 0 deletions src/PostalCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
components: { StripeElement },
methods: {
blur () { this.$refs.element.blur() },
clear () { this.$refs.element.clear() },
focus () { this.$refs.element.focus() },
update (options) { this.$refs.element.update(options) }
}
Expand Down
1 change: 1 addition & 0 deletions src/StripeElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default {
methods: {
blur () { this._element.blur() },
clear () { this._element.clear() },
focus () { this._element.focus() },
update () { this._element.update() }
}
Expand Down

0 comments on commit 7e01c51

Please sign in to comment.