1.阻止向下冒泡

<div class="content" @click.self="cancelFunc"></div>

2.阻止向上冒泡

<div class="item" @click.stop="function">

 

Logo

前往低代码交流专区

更多推荐