el-select/el-option 点击获取所在项的信息

1、获取所在项的label:

this.$refs.facility.selected.label

2、获取所在项的对象:

给el-option标签绑定方法  --->   @click.native = "方法名(当前对象)"

 

posted @ 2024-03-20 09:14  seeBetter  阅读(1)  评论(0编辑  收藏  举报