Skip to content

Commit

Permalink
fix:input event
Browse files Browse the repository at this point in the history
  • Loading branch information
Nottwoc committed Nov 16, 2021
1 parent f304867 commit 9c26c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uni_modules/uview-ui/components/u-input/u-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ export default {
this.innerFormatter = e
},
// 当键盘输入时,触发input事件
onInput(event) {
let { value = "" } = event.detail || {};
onInput(e) {
let { value = "" } = e.detail || {};
// 格式化过滤方法
const formatter = this.formatter || this.innerFormatter
const formatValue = formatter(value)
Expand Down

0 comments on commit 9c26c2e

Please sign in to comment.