v-for.vdom.js 562 B

123456789101112131415161718192021222324252627282930313233
  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. '@alias': 'panel'
  21. }
  22. },
  23. children: [{
  24. type: 'text',
  25. attr: {
  26. value: {
  27. '@binding': 'panel.label'
  28. }
  29. }
  30. }]
  31. }]
  32. }]
  33. })