v-for-iterator.vdom.js 841 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. listData: [
  5. { type: 'A' },
  6. { type: 'A' }
  7. ],
  8. templateKey: 'type',
  9. alias: 'item'
  10. },
  11. children: [{
  12. type: 'cell-slot',
  13. attr: { templateType: 'A' },
  14. children: [{
  15. type: 'div',
  16. attr: {
  17. '[[repeat]]': {
  18. '@expression': 'item.list',
  19. '@index': 'index',
  20. '@alias': 'object'
  21. }
  22. },
  23. children: [{
  24. type: 'text',
  25. attr: {
  26. value: {
  27. '@binding': 'object.name'
  28. }
  29. }
  30. }, {
  31. type: 'text',
  32. attr: {
  33. '[[repeat]]': {
  34. '@expression': 'object',
  35. '@alias': 'v',
  36. '@key': 'k',
  37. '@index': 'i'
  38. },
  39. value: {
  40. '@binding': 'v'
  41. }
  42. }
  43. }]
  44. }]
  45. }]
  46. })