element-ui 笔记

组件方法是主动调用的
组件事件是监听的

<el-input ref="input" @blur="handlerBlur" />
...
mounted(){
    this.$refs.input.focus()
}
methods:{
    handlerBlur(e){
        //todo
    },    
}

@keyup.enter.native="searchTodo()"

posted @ 2022-04-28 21:25  Chiffon1996  阅读(43)  评论(0)    收藏  举报