<span @dblclick.stop.prevent @click.stop.prevent> <el-switch ... /> </span> 在外面包裹一层span标签并给上阻止冒泡事件,我最初是想在组件上直接写事件,不知道为什么不生效。 所以采用了下下解, 多包了一层结构