当前位置:网站首页>Click to trigger other DOM elements: < $refs, $El >
Click to trigger other DOM elements: < $refs, $El >
2022-04-22 06:38:00 【Crazy_ GirlLL】

The effect to be achieved is :
Click on span, Show the drop-down box select
Structure display :
<div class="jobCon">
<a-select ref="selectCom" :value="jobIdItem.name" @change="changeStationName" style="width: 100%;opacity:0" :disabled="isNowOfferApproval">
<a-select-option :key="item.id">
<div class="fl">123</div>
</a-select-option>
</a-select>
<span class="name" @click="clickSpan">{
{jobIdItem.name}}</span>
</div>
js Exhibition : It should be noted that , What you currently get selectCom Is it a , If more than one , We need to find the corresponding one , To operate ,$el, except click also select And other trigger events
clickSpan (idx) {
console.log('=============span', this.$refs.selectCom[idx])
this.$refs.selectCom[idx].$el.click()
}
版权声明
本文为[Crazy_ GirlLL]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220554364411.html
边栏推荐
- MYSQL事务之事务隔离级别
- 在PGConf.Asia-中文技术论坛,聆听腾讯云专家对数据库技术的深度理解
- Liang Kun, CTO of Shumei technology, suggested: technology + operation combination to prevent and control "pig killing plate"
- synchronized 关键字和volatile关键字的作用和区别
- 在PostgreSQL中使用ltree处理层次结构数据
- The difference between equalsignorecase() and equals()
- kubectl命令自动补齐
- 使用@Autowired出现Field injection is not recommended
- 一个三目表达式,引起的空指针
- Mapping of oid and relfilenode in PostgreSQL
猜你喜欢

COM in Wine(2)——基本代码分析

Kyushu cloud won the honorary award of "enterprise of 2021"

Sort sort

Generation principle and recurrence of epic vulnerability log4j2 that is popular in it circle

在PGConf.Asia-中文技术论坛,聆听腾讯云专家对数据库技术的深度理解

浅谈流量限制

Understanding distributed transactions through code: XA pattern

Heavy! Kyushu cloud won the award of "best partner of operators in 2020"

Kyushu cloud passes the authoritative evaluation of EC ready edge cloud

一套sql语句同时支持Oracle跟Mysql?
随机推荐
POM文件浅析
Shumei technology was selected into the top 20 of Chaoyang high tech high growth in 2021
Postgreshub中文资源网介绍
uglifyjs压缩JS
MySQL high performance index
MySQL basics 2
数美科技荣登“北京民营企业科技创新百强榜单”
Pgbackrest practice
《信息系统项目管理师总结》第一章 项目整体管理
scala中的函数和方法、函数的创建、闭包、柯里化
Kyushu cloud passes the authoritative evaluation of EC ready edge cloud
OLAP和OLTP的区别及所对应模型(基础知识)
Understanding distributed transactions through code: XA pattern
数美2022数字风控峰会开启,五大看点提前曝光
一套sql语句同时支持Oracle跟Mysql?
出海美利坚 不可忽视的未成年人法律红线
2021-07-07
logrus设置日志格式与输出函数名
Golang select优先级执行
congratulations! China Mobile Smart Home Center was selected in the list of ICT industry in 2020