inline-style.vdom.js 526 B

1234567891011121314151617181920212223242526272829
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. append: 'tree',
  5. listData: [
  6. { type: 'A', color: '#606060' },
  7. { type: 'A', color: '#E5E5E5' }
  8. ],
  9. switch: 'type',
  10. alias: 'item'
  11. },
  12. children: [{
  13. type: 'cell-slot',
  14. attr: { append: 'tree', case: 'A' },
  15. style: {
  16. backgroundColor: '#FF6600'
  17. },
  18. children: [{
  19. type: 'text',
  20. style: {
  21. fontSize: '100px',
  22. color: { '@binding': 'item.color' }
  23. },
  24. attr: {
  25. value: 'content'
  26. }
  27. }]
  28. }]
  29. })