v-on-inline.vdom.js 715 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. append: 'tree',
  5. listData: [
  6. { type: 'A' },
  7. { type: 'A' }
  8. ],
  9. switch: 'type',
  10. alias: 'item'
  11. },
  12. children: [{
  13. type: 'cell-slot',
  14. attr: { append: 'tree', case: 'A' },
  15. children: [{
  16. type: 'text',
  17. event: ['click', {
  18. type: 'longpress',
  19. params: [{ '@binding': 'item.key' }]
  20. }]
  21. }, {
  22. type: 'text',
  23. event: [{
  24. type: 'appear',
  25. params: [
  26. { '@binding': 'item.index' },
  27. { '@binding': 'item.type' }
  28. ]
  29. }],
  30. attr: { value: 'Button' }
  31. }, {
  32. type: 'text',
  33. event: [{ type: 'disappear' }],
  34. attr: { value: 'Tips' }
  35. }]
  36. }]
  37. })