v-if.vdom.js 485 B

12345678910111213141516171819202122232425262728
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. listData: [
  5. { type: 'A' },
  6. { type: 'A' }
  7. ],
  8. templateKey: 'type',
  9. alias: 'item'
  10. },
  11. children: [{
  12. type: 'cell-slot',
  13. attr: { templateType: 'A' },
  14. children: [{
  15. type: 'image',
  16. attr: {
  17. '[[match]]': 'item.source',
  18. src: { '@binding': 'item.source' }
  19. }
  20. }, {
  21. type: 'text',
  22. attr: {
  23. '[[match]]': '!item.source',
  24. value: 'Title'
  25. }
  26. }]
  27. }]
  28. })