stateless-with-props.vdom.js 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. listData: [
  5. { type: 'A', poster: 'xx', title: 'x' },
  6. { type: 'A', poster: 'yy', title: 'y' }
  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. '@isComponentRoot': true,
  18. '@componentProps': {
  19. imageUrl: { '@binding': 'item.poster' },
  20. title: { '@binding': 'item.title' }
  21. }
  22. },
  23. children: [{
  24. type: 'image',
  25. style: {
  26. width: '750px',
  27. height: '1000px'
  28. },
  29. attr: {
  30. src: { '@binding': 'imageUrl' }
  31. }
  32. }, {
  33. type: 'text',
  34. style: {
  35. fontSize: '80px',
  36. textAlign: 'center',
  37. color: '#E95659'
  38. },
  39. attr: {
  40. value: { '@binding': 'title' }
  41. }
  42. }]
  43. }, {
  44. type: 'text',
  45. attr: {
  46. value: 'content'
  47. }
  48. }]
  49. }]
  50. })