text-node.vdom.js 734 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. append: 'tree',
  5. listData: [
  6. { type: 'A', dynamic: 'decimal', two: '2', four: '4' },
  7. { type: 'A', dynamic: 'binary', two: '10', four: '100' }
  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. attr: {
  18. value: 'static'
  19. }
  20. }, {
  21. type: 'text',
  22. attr: {
  23. value: { '@binding': 'item.dynamic' }
  24. }
  25. }, {
  26. type: 'text',
  27. attr: {
  28. value: [
  29. 'one ',
  30. { '@binding': 'item.two' },
  31. ' three ',
  32. { '@binding': 'item.four' },
  33. ' five'
  34. ]
  35. }
  36. }]
  37. }]
  38. })