element-ui 笔记
组件方法是主动调用的
组件事件是监听的
<el-input ref="input" @blur="handlerBlur" />
...
mounted(){
this.$refs.input.focus()
}
methods:{
handlerBlur(e){
//todo
},
}
@keyup.enter.native="searchTodo()"
组件方法是主动调用的
组件事件是监听的
<el-input ref="input" @blur="handlerBlur" />
...
mounted(){
this.$refs.input.focus()
}
methods:{
handlerBlur(e){
//todo
},
}
@keyup.enter.native="searchTodo()"