uni-app小程序 icon 阻止冒泡
原以为阻止冒泡不就是像vue
里面一样,在元素上加上.stop
修饰符么:
<uni-icons type="clear" class="remove-icon" @click.stop="del_goods(item)" color="#cdd0d2" size="30"></uni-icons>
结果发现这样不生效,在icon
外面包裹一层后生效了:
<view class="remove-icon" @click.stop="del_goods(item)"><uni-icons type="clear" color="#cdd0d2" size="30"></uni-icons></view>
发表评论 (审核通过后显示评论):