File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1+ const EVENT_CHANGE = 'change'
2+
13export default {
24 methods : {
5+ changeHander ( e ) {
6+ this . $emit ( EVENT_CHANGE , e )
7+ } ,
38 focus ( ) {
49 this . $refs . input . focus ( )
510 } ,
Original file line number Diff line number Diff line change 3333 import inputMixin from ' ../../common/mixins/input'
3434 const COMPONENT_NAME = ' cube-input'
3535 const EVENT_INPUT = ' input'
36- const EVENT_CHANGE = ' change'
3736 const EVENT_BLUR = ' blur'
3837 const EVENT_FOCUS = ' focus'
3938
145144 }
146145 },
147146 methods: {
148- changeHander (e ) {
149- this .$emit (EVENT_CHANGE , e)
150- },
151147 formatClearable () {
152148 if (typeof this .clearable === ' boolean' ) {
153149 this .formatedClearable .visible = this .clearable
Original file line number Diff line number Diff line change 99 :maxlength =" maxlength"
1010 :disabled =" disabled"
1111 @focus =" handleFocus"
12- @blur =" handleBlur" >
12+ @blur =" handleBlur"
13+ @change =" changeHander"
14+ >
1315 </textarea >
1416 <span v-if =" indicator" v-show =" expanded" class =" cube-textarea-indicator" >{{indicatorConf.remain ? remain : count}}</span >
1517 </div >
You can’t perform that action at this time.
0 commit comments