index.js 431 B

12345678910111213141516171819202122
  1. Component({
  2. properties: {
  3. list: Array,
  4. fast: Boolean,
  5. fastCallBack: Function
  6. },
  7. options: {
  8. addGlobalClass: true
  9. },
  10. methods: {
  11. handleFast(e) {
  12. const {
  13. name,
  14. item
  15. } = e.currentTarget.dataset;
  16. this.triggerEvent("fastCallBack", {
  17. name,
  18. item
  19. })
  20. },
  21. }
  22. })