v-for-iterator.vdom.js 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: 'div',
  17. attr: {
  18. '[[repeat]]': {
  19. '@expression': 'item.list',
  20. '@index': 'index',
  21. '@alias': 'object'
  22. }
  23. },
  24. children: [{
  25. type: 'text',
  26. attr: {
  27. value: {
  28. '@binding': 'object.name'
  29. }
  30. }
  31. }, {
  32. type: 'text',
  33. attr: {
  34. '[[repeat]]': {
  35. '@expression': 'object',
  36. '@alias': 'v',
  37. '@key': 'k',
  38. '@index': 'i'
  39. },
  40. value: {
  41. '@binding': 'v'
  42. }
  43. }
  44. }]
  45. }]
  46. }]
  47. })