Skip to content

Commit

Permalink
fix: 更新code-input事件注释
Browse files Browse the repository at this point in the history
  • Loading branch information
sadais-lwt committed Mar 9, 2021
1 parent e3f3bf5 commit 3a683c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/pi-code-input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export default {
this.handleEmitChange()
}
if (value.length === this.getLength) {
/**
* 当输入的数字位数与length属性相等时触发
* @arg string 输入的数字
*/
this.$emit('end', this.val)
}
}
Expand Down

0 comments on commit 3a683c6

Please sign in to comment.