同一个WXML里两个action-sheet会错位?
同一个WXML里面,写了两个底部弹出框,如下代码,运行时错位。点击上面的tag按钮,console.log()看了显示settagchange,这时是对的,但是底部弹出框出现的是删除subject、修改subject,点击取消也console.log()显示setsubjectchange了。(如下图)
将tag和subject上下交换后,点击上面的subject按钮,底部弹出框也会是下面的删除tag、修改tag。按理</action-sheet>这些齐全,不知道问题在哪,求解决~
<button bindtap='settagchange'>tag</button>
<action-sheet hidden="{{onOff}}" bindchange='settagchange'>
<action-sheet-item bindtap='deletetag'>删除tag</action-sheet-item>
<action-sheet-item bindtap='changetag'>修改tag</action-sheet-item>
<action-sheet-cancel>取消</action-sheet-cancel>
</action-sheet>
<button bindtap='setsubjectchange'>subject</button>
<action-sheet hidden="{{onOff}}" bindchange='setsubjectchange'>
<action-sheet-item bindtap='deletesubject'>删除subject </action-sheet-item>
<action-sheet-item bindtap='changesubject'>修改subject </action-sheet-item>
<action-sheet-cancel>取消</action-sheet-cancel>
</action-sheet>