Skip to content

Commit

Permalink
feat(Counter): 新增 lininput 事件
Browse files Browse the repository at this point in the history
close #1004
  • Loading branch information
juzi214032 committed Aug 10, 2020
1 parent 40d1746 commit d5cf6e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/counter/index.js
Expand Up @@ -146,5 +146,9 @@ Component({
composed: true
});
},

onInput(e){
eventUtil.emit(this,'lininput',e.detail);
}
}
});
1 change: 1 addition & 0 deletions src/counter/index.wxml
Expand Up @@ -11,6 +11,7 @@
type="number"
focus="{{focus}}"
value="{{result}}"
bind:input="onInput"
bindblur="onBlur"/>
<view wx:else class="l-count-class count" mut-bind:tap="onCount">{{result}}</view>
<view class="l-symbol-class symbol {{result>=max|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}"
Expand Down

0 comments on commit d5cf6e8

Please sign in to comment.