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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CherishIt committed Apr 12, 2019
1 parent a4d384e commit 2f884f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -178,6 +178,11 @@ export default class YourComponent extends Vue {
return 10
}

@Emit()
onInputChange(e) {
return e.target.value
}

@Emit()
promise() {
return new Promise(resolve => {
Expand Down Expand Up @@ -210,6 +215,9 @@ export default {
returnValue() {
this.$emit('return-value', 10)
},
onInputChange(e) {
this.$emit('on-input-change', e.target.value, e)
},
promise() {
const promise = new Promise(resolve => {
setTimeout(() => {
Expand Down

0 comments on commit 2f884f7

Please sign in to comment.