使用wux-filterbar,用change事件记录选择的内容变化,有包含上一次的内容吗?
发布于 6 年前 作者 fugang 713 次浏览 来自 官方Issues

附上代码

wxml

<wux-filterbar :items="activeSelectItems" @change="onSelectBar" />

js

onSelectBar (e) {
      console.log(e)
},

console

  1. currentTarget{id""dataset{…}}

  2. mp{type"change"timeStamp517918target{…}currentTarget{…}mark{…}, …}

  3. preventDefaultƒ noop(a, b, c)

  4. stopPropagationƒ noop(a, b, c)

  5. target{id""dataset{…}checkedItemsArray(1)itemsArray(2)checkedValuesArray(2)}

  6. timeStamp517918

  7. type"change"

  8. xundefined

  9. yundefined


  10. 主要是想找到 变更筛选内容的时候,能不能拿到上一次的选择内容

回到顶部