v-else.vdom.js 536 B

1234567891011121314151617181920212223242526272829
  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: 'image',
  17. attr: {
  18. '[[match]]': 'item.source',
  19. src: { '@binding': 'item.source' }
  20. }
  21. }, {
  22. type: 'image',
  23. attr: {
  24. '[[match]]': '!(item.source)',
  25. src: { '@binding': 'item.placeholder' }
  26. }
  27. }]
  28. }]
  29. })