vue prevent event bubble All In One
vue prevent event bubble All In One
Event Modifiers
事件修饰符
https://vuejs.org/v2/guide/events.html#Event-Modifiers
demo
<div
v-if="video.isEmpty"
class="video-box"
:class="leftNum < 2 &&'video-full'"
@click="addVideoTemplate">
<span
v-if="maxLimit !== 1"
class="video-box-delete"
@click.stop="deleteVideoTemplate(index)">
<icon-svg icon-class="tianjia1" class="delete-icon"/>
</span>
<div
class="video-box-desc"
:class="showInValid && 'video-box-invalid'"
@click.stop="selectMaterials(index)">
<span class="desc-title">点击选择素材</span>
<span class="desc-info">{{video.desc}}</span>
</div>
</div>
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/15108250.html
未经授权禁止转载,违者必究!